Howdy guys , I have been using virtualmin GPL (with all its awesomeness) for a while and i am in love with it , i plan on using it on every new server i setup ..
Since i wanted to setup a server with nginx , php fpm and apc , i had to go through a bit of googling and searching this forum to set it up the way i wanted ....hope this does not end up being to long
Note -- I am using centos 6.3 on this server , but you can google for a specific command for your distro if you are not using centos
Note -- i am also using memcached , but i wont be covering how to install and use it here...
You should use any CLI commands without quotes
Here is a little tutorial on how to--
1.Install virtualmin and use 2.Install nginx with virtualmin and use 3.Install PHP-fpm and use 4.tits, bits and gotchas you need to be careful of...
Note -- Read this tutorial first and see if you are understand everything , if not you might end up ruining your server and may need a Os reload..unless of course you are doing this for learning pupose
Note -- If you just got your dedi with centos on it you should install the development tools using the command below (without quotes) in your terminal screen..
"yum groupinstall 'Development Tools'
Install the Epel library and remi repo --
Note -- the url to epel library keeps on changing itself (bots acting on their own) , so try the url directly on your browser before using the command and save that 'wtf' moment...
Install remi repo (needed for installing php-fpm and depends on epel library we installed in the previous step) -- "rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm"
Run this command to update all the repositories in case the one you downloaded above are outdated --
Now lets install Virtualmin-- (i am assuming you are logged in as root or superuser)--
To install virtualmin either follow the instructions on this page (http://www.virtualmin.com/documentation/installation/automated) or follow the intructions below (for the lazy ones)
The script will execute on its own , so you just need wait till the install finishes (may take a while , so let it install and may be get a cup of coffee...)
Ones virtualmin is installed , you can access it by going to -- https://your-servers-ip:10000
Note -- I was having problem logging into virtualmin when accessing without https (so make sure you are using https instead of http in the url above)...
You'll be told that their something wrong with the ssl certificate by your browser , just accept what it says and add the url to your safe list from that same page..
You need to use the username you used to install virtualmin and the password for the same account to login to virtualmin ...
Once logged in , you might want to change the defualt port IE 10000 to something else , you can do so by
webmin-->webmin-->Webmin Configuration-->Ports and Addresses-->change "Listen on port" and "Listen for broadcasts on UDP port" to whatever port you want to virtualmin to work on ..
Once you update the port , you will probably be logged out and redirected to the new port , just login using the same details you used earlier...
Now lets install nginx -- (I have taken everything from the documentation on this page - http://www.virtualmin.com/documentation/web/nginx)