# CentOS Nginx Installer(include PHP-FTP, MYSQL) add website no need restart Nginx

**URL:** <https://www.ruby-forum.com/t/centos-nginx-installer-include-php-ftp-mysql-add-website-no-need-restart-nginx/238334>\
**Category:** NGINX\
**Created:** [January 4, 2014, 7:19am UTC](https://www.ruby-forum.com/t/centos-nginx-installer-include-php-ftp-mysql-add-website-no-need-restart-nginx/238334 "2014-01-04T07:19:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 4, 2014, 7:19am UTC](https://www.ruby-forum.com/t/centos-nginx-installer-include-php-ftp-mysql-add-website-no-need-restart-nginx/238334/1 "2014-01-04T07:19:09Z")

</div>

Some of our clients are not good at SSH command, they just want an easy  
way  
to run their websites. Most of them are less then 1GB memory VPS and  
don’t  
want install control panel.

For this purpose, we wrote a CentOS Nginx Installer script for  
“Nginx+PHP+MySql+phpMyAdmin”

What’s you need to do is: Copy and post/run below single command line  
via  
SSH root login. wait 5-15 minutes(depending on the software download  
speed  
from your server), Everything is Done!

############ Automatically install command line ############

wget -O /tmp/npmp.sh  
[https://raw.github.com/ComfortVPS/Nginx-PHP-MySql-phpMyAdmin/master/install-nginx-php-mysql.sh](https://raw.github.com/ComfortVPS/Nginx-PHP-MySql-phpMyAdmin/master/install-nginx-php-mysql.sh);  
sh /tmp/npmp.sh;

############ Installation Requirement ############

CentOS 5.x/6.x 32bit or 64bit ( We recommend you Reload OS before run  
the  
installer )

Guarantee Memory \>= 128MB

Free Disk space \>=2GB

############ Fetures ############

You can add multiple websites directly via SFTP, no need to login SSH,  
no  
need to restart Nginx

You can easily custom config each website domain’s Nginx config file if  
you  
need

Installed the newest stable version of Nginx, PHP-FPM, MySql by YUM

phpMyAdmin4.x installed and ready for use. Just login and manage mysql  
database as you want

Work perfectly for low memory VPS with ram \>= 128MB

Many tutorials for how to use

Get your password after everything installed

Your SSH console screen will show something like below after  
successfully  
installed, Please record your password. The unique password was random  
generated by openssl, no need to change.

############ Information you will get after installation (below is an  
example) ############

====== Nginx + PHP-FPM + MYSQL Successfully installed  
====== MySql root password is cft.KL7fvW2g  
====== SFTP Username is myweb  
====== SFTP Password is cft.KL7fvW2g  
====== Website document root is /www/yourdomain

====== Add websites tutorials: [How to setup a Nginx website(How to Config Nginx Virtual Host) - VPS Hosting Comparison](http://goo.gl/sdDF9)  
====== Now you can visit [http://your-ip-address/](http://your-ip-address/)

====== Eg. [http://50.3.62.173/](http://50.3.62.173/)  
====== phpMyAdmin: [http://50.3.62.173/phpMyAdmin4U/](http://50.3.62.173/phpMyAdmin4U/)

====== More tutorials: [Tutorials of ComfortVPS Nginx+PHP+MySql Installation Service - VPS Hosting Comparison](http://goo.gl/tNFb0)

############ How to add multiple websites via SFTP ? ############

Step 1, Create a domain name directory under /www via SFTP, eg,  
[yourdomain.com](http://yourdomain.com), [subdomain.abc.com](http://subdomain.abc.com), [domain-name.net](http://domain-name.net)

Step 2, Everything is Done, Config Nginx virtual host is finish, upload  
your  
php/html files to that directory then test it.

############ More tutorials ############

[http://goo.gl/tNFb0](http://goo.gl/tNFb0)

We will continue to write more tutorials for how to use it.

Posted at Nginx Forum:

> **[CentOS Nginx Installer(include PHP-FTP,MYSQL) add website no need restart Nginx](https://forum.nginx.org/read.php?2,246005,246005#msg-246005)**
>
> Some of our clients are not good at SSH command, they just want an easy way to run their websites. Most of them are less then 1GB memory VPS and don't want install control panel. For this purpose, we wrote a CentOS Nginx Installer script for...
