Install Nginx, PHP-FPM & MySQL in Centos
Warning: This shell script will remove your previous Apache installation.
Update June, 25 2014:
The following script works on CentOS 5 very well. If you’re using CentOS 6, go to this page instead: http://freevps.us/thread-1434.html
The following script works on CentOS 5 very well. If you’re using CentOS 6, go to this page instead: http://freevps.us/thread-1434.html
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
[[email protected] ~]# wget http://freevps.us/downloads/nginx-centos.sh
- Run that bash script
[[email protected] ~]# bash nginx-centos.sh
then wait..
- 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 setup-vhost
.
When I made virtual host for this blog, I just need to run this command:
[[email protected] ~]# 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!
its woooooooork maaaaaaz, tq 😀
Did it!! thanks a lot!! 🙂
[…] “install nginx vps centos” pada mbah gugle menghasilkan banyak hasil, diantaranya ini, ini, ini dan ini. Karena vps sudah terinstall whm aka cpanel, akhirnya memilih mengikuti cara yang […]
Worked fine.
Do it include any ftp server?
I just test it using Centos 6 and failed to work. So I reinstall my VPS using Centos 5.
i found a working script from this blog, found great, worked for me, i share it to everybody
http://www.discusswire.com/install-nginx-php-fpm-mysql-centos/
i found a great article while googling , I recommend the article to everybody
http://www.discusswire.com/install-nginx-php-fpm-mysql-centos/