You are on page 1of 2

State management

LNMPA state management: /root/lnmpa {start | stop | reload | restart | kill | status} Nginx state management: /etc/init.d /nginx {start | stop | reload | restart} PHP-FPM state management: /etc/init.d /php-fpm {start | stop | quit | restart | reload | logrotate} PureFTPd state management: /etc/init.d /pureftpd {start | stop | restart | kill | status} MySQL state management: /etc/init.d /mysql {start | stop | restart | reload | force-reload | status} Memcached state management: /etc/init.d /memcached {start | stop | restart} Apache state management: /etc/init.d/httpd {start | stop | restart | graceful | configtest | status}

LNMP related directory


nginx: /usr/local/nginx apache: /usr/local/apache mysql: /usr/local/mysql php: /usr/local/php Site Directory: /home/wwwroot/ Nginx log directory: /home/wwwlogs/ Nginx virtual host configuration file directory: /usr/local/nginx/conf/vhost/

LNMP the configuration file


Main Nginx configuration file: /usr/local/nginx/conf/nginx.conf MySQL configuration file: /etc/my.cnf PHP configuration file: /usr/local/php/etc/php.ini php-fpm configuration file: /usr/local/php/etc/php-fpm.conf PureFtpd configuration file: /usr/local/pureftpd/pure-ftpd.conf PureFtpd MySQL configuration file: /usr/local/pureftpd/pureftpd-mysql.conf Apache configuration file: /usr/local/apache/conf/httpd.conf execute. / apache.sh start the installation, the domain name and email will be prompted to enter the domain name is bound to / home / wwwroot / directory, enter confirmation will automatically start the installation. When prompted to install successfully you can experience LNMPA the.

Install additional components


1, install eAccelerator, execute the following command:. / Eaccelerator.sh, follow the prompts to select the version, press Enter, it will automatically install and restart the web service. 2, the installation of ionCube, execute the following command:. / IonCube.sh Enter to confirm, it will automatically install and restart the web service.

3, the installation imageMagick, execute the following command:. / ImageMagick.sh Enter to confirm, it will automatically install and restart the web service. 4, install memcached, execute the following command:. / Memcached.sh Enter to confirm, it will automatically install and restart the web service. 5, install PureFTPd and management panel, execute the following command:. / Pureftpd.sh prompted, enter your MySQL root password, FTP password for the user management panel, MySQl database password of FTP (which can directly enter, automatically generate a password), Enter to confirm, it will automatically install PureFTPd, installation of PureFTPd, execute in the browser http:// your domain name or IP / ftp / input you previously set the password for the FTP user management panel, you can manage. 6, installation VsFTPD, execute the following command:. / Vsftpd.sh will automatically install vsftpd, only need to execute the command: useradd-d / home / wwwroot-s / sbin / nologin adminftp add a good ftp account specified on the account's root directory , and then execute: passwd adminftp set on the password, log on it. 7, upgrading Nginx version, execute the following command:. / Upgrade_nginx.sh prompted, enter nginx version number, such as 1.0.10, the version number you can get from http://nginx.org/en/download.html. PHP version upgrade, execute the following command:. / Upgrade_lnmpa_php.sh prompted, enter your php versiWeb Host Manager 1, add a virtual host, execute the following command: / root / vhost.sh prompted, enter the domain name to bind, enter, if you need to add more domain names, type y, then enter the other binding domain, a number of domain can be separated by spaces. Then enter the directory binding domain (absolute directory, such as / home / wwwroot / lnmp, if you do not fill the default is / home / wwwroot / binding domain), then choose whether to add the pseudo-static rules, the default has been Discuz, Wordpress , Sablog, emlog, dabr, you can directly enter the above name, if you need to add a custom pseudo-static rules, directly enter a desired name, the program will automatically create a pseudo-static files directly in / usr / local / nginx / conf / you customize the name of the pseudo-static. conf rules which add pseudo-static on the line. Next will be prompted whether logging is enabled, under normal circumstances do not need to start direct input n on the line, To start, enter y, and then input to define the log file name, enter it will automatically add the virtual host.

2sshrm /usr/local/nginx/conf/vhost/.conf 2, delete the virtual host, ssh execute: rm / usr / local / nginx / conf / vhost / domain name. Conf on number, such as 5.3.6.

You might also like