These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Centos-Varnish-Virtualmin-DomainCreate-Composer-LARAVEL Installtion Guide with Sequence Required* on the new forum.
I don't have any direct experience with Laravel, but here's some pointers for genera similar cases:
Virtualmin should come before installing any additional packages, and definitely before enabling any third party yum repos (and third party repositories should be enabled with extreme caution). We have tested with EPEL and SCL repositories enabled after install, and that's generally fine. Other repos will need you to test them yourself before relying on them in production.
You should always perform actions for a domain as the domain owner user. Whether you ssh in as the domain user, or su from root, all of the files for the domain will need to be owned by the domain user; otherwise, Apache suexec will refuse to run them (and programs that update themselves or modify data files on the filesystem won't be able to).
Virtualmin's environment is not abnormal...it's pretty much what every shared hosting account using suexec would look like. So, instructions for things like Composer should Just Work (I use composer on our systems, sometimes...I just followed the instructions for installing it and it worked fine). Just make sure you are using the PHP version that Virtualmin is configuring for use when running any Composer, PEAR, etc. commands, so that the right stuff gets installed.
--
Check out the forum guidelines!
So.. It means even if I have to install composer, I have to ssh using a domain user and not a root user.. As I have complete control over the Dedicated Server. So After using SSH via domain user I have to install composer and Virtualmin, using the supplied PHP version that Virtualmin is configuring?
So Everything will work If I Install >Centos>login into ssh via root and install >Varnish>then install>Virtualmin>then create>DomainVirtualminServer>then login into SSH via Domain User and Install>Composer>LARAVEL.
Let me try the steps, and I will keep updated.