wget -c http://soft.vpser.net/lnmp/lnmp0.9-full.tar.gz
wget -c http://soft.vpser.net/lnmp/lnmp0.9.tar.gz
tar zxvf lnmp0.9.tar.gz
cd lnmp0.9
./centos. sh/* If you have Debian or ubuntu, use it/ Debian.sh or/ ubuntu.sh*/
=========================================================================
LNMP V0.9 for CentOS/RadHat Linux VPS Written by Licess
=========================================================================
A tool to auto-compile & install Nginx+MySQL+PHP on Linux
For more information please visit http://www.lnmp.org/
=========================================================================
Please input domain:
(Default domain: www.lnmp.org): myvps.rffan.info /*Here is the domain name, but do not enter the domain name you want to do in the future*/
===========================
domain=myvps.rffan.info
===========================
===========================
Please input the root password of mysql:
(Default password: root): rffan123456 /*Here is the root password of MySQL*/
===========================
mysqlrootpwd=rffan123456
===========================
===========================
Do you want to install the InnoDB Storage Engine?
(Default no, if you want please input: y, if not please press the enter button):*/
INPUT error,The InnoDB Storage Engine will NOT install!
Press any key to start…
========================== Check install ================================
Install lnmp 0.9 completed! enjoy it.
=========================================================================
LNMP V0.9 for CentOS/RadHat Linux VPS Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/
lnmp status manage: /root/lnmp {start|stop|reload|restart|kill|status}
default mysql root password:rffan123456
phpinfo : http://myvps.rffan.info/phpinfo.php
phpMyAdmin : http://myvps.rffan.info/phpmyadmin/
Prober : http://myvps.rffan.info/p.php
Add VirtualHost : /root/vhost.sh
The path of some dirs:
mysql dir: /usr/local/mysql
php dir: /usr/local/php
nginx dir: /usr/local/nginx
web dir : /home/wwwroot
=========================================================================
=========================================================================
Manager for LNMP V0.9 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
php-fpm is runing!
SUCCESS! MySQL running (13615)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
cd /root
sh vhost.sh
[ root@MyVPS ~]# sh vhost.sh
=========================================================================
Add Virtual Host for LNMP V0.9 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to add virtual host for nginx
For more information please visit http://www.lnmp.org/
=========================================================================
Please input domain:
(Default domain: www.lnmp. org): www.rffan.info/* Enter your domain name here*/
===========================
domain=www.rffan.info
===========================
Do you want to add more domain name? (y/n)/* This is to ask whether you want to add a domain name again*/
Y/* Ah Fu chose Y, because Ah Fu still has one without www to bind*/
Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net):
Rffan.info/* Enter the domain name without www here*/
===========================
domain list=rffan.info
===========================
Please input the directory for the domain: www.rffan.info:/**/
(Default directory: /home/wwwroot/www.rffan.info):/home/www/rffan.info
===========================
Virtual Host Directory=/home/www/rffan.info
===========================
===========================
Allow Rewrite rule? (y/n)/* Here you are asked whether to add pseudo static, of course, choose Y*/
===========================
y
Please input the rewrite of programme :
wordpress,discuz,typecho,sablog,dabr rewrite was exist.
(Default rewrite: other): wordpress*/
===========================
You choose rewrite=wordpress
===========================
===========================
Allow access_log? (y/n)/* Log files, SEO analysis spiders, and also useful when being roosted. It is recommended to clean them regularly*/
===========================
y
Type access_log name(Default access log file:www.rffan.info.log):
===========================
You access log file=www.rffan.info.log
===========================
Press any key to start create virtual host.../**/
Create Virtul Host directory……
set permissions of Virtual Host directory……
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.conf
Test Nginx configure file……
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Restart Nginx……
=========================================================================
Add Virtual Host for LNMP V0.9 , Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/
Your domain:www.rffan.info
Directory of www.rffan.info:/home/www/rffan.info
=========================================================================
wget -c http://cn.wordpress.org/wordpress-3.5.1-zh_CN.tar.gz /*This website is the address of the latest Chinese version of wordpress*/
Tar zxvf wordpress-3.5.1-zh_CN.tar.gz If your zip package is zip, unzip wordpress-3.5.1-zh_CN.zip
Cp - a wordpress/*/home/www/rffan.info/* The home/www/rffan.info here can be replaced by your website*/
Chown - R www: www/home/www/rffan. info/* This sentence means to give nginx sufficient permissions */the folder must have sufficient permissions!
http://IP/phpmyadmin/