After reading a tutorial of how to install Nginx, PHP and MySQL in a difficult way, now I would like to tell ya how to install them in a very easy way.
I found this method was very effective and completed just within few minutes in my Centos VPS.
- Download this shell script to your VPS
[root@power ~]# wget http://freevps.us/downloads/nginx-centos.sh
- Run that bash script
[root@power ~]# bash nginx-centos.sh
- Voila! Nginx, PHP-FPM and MySQL are installed at glance!
Not only that, this shell script also installed a tool to create virtual host in Nginx named
When I made virtual host for this blog, I just need to run this command:
[root@power ~]# setup-vhost sandalian.com
Then I uploaded all my files at
/var/www/sandalian.com and configure database connection etc.
Thanks to you guys at freevps.us, installing this stack never been easier than this!