What is LNMPA?
Linux + Nginx + MySql + PHP + Apache
How can this architecture be used?
Nginx and Apache are both website servers. How can they be installed? Yes. Nginx is used as a server to process static requests. If dynamic requests are enabled, Apache will be used. After all, Apache has been a Legacy Software for many years.
This construction has great advantages. The official website says, "LNMPA uses Nginx as a front-end service to provide faster and more timely static pages, js, images, etc, when a client requests to access a dynamic page, the Nginx reverse proxy is used by Apache. After Apache completes processing, it is handed over to Nginx and returned to the client.
The adoption of LNMPA can better solve the 502 error caused by PHP-FPM in the lnmp architecture, while providing a safer multi-user multi-site environment ."
What was updated this time?
Optimize the installation process, fix multiple installation errors, add the LNMP to LNMPA upgrade package, and rewrite the PureFTP installation package so that the installation can be successful by entering the password; nginx to 0.8.54, MySQL to 5.1.54, PHP to 5.2.17, PHP upgrade script optimized, Nginx upgrade script optimized, lnmpa php version upgrade tool added, eAccelerator automatic installation script optimized, supports multiple LNMPA installation times without multiple loads; optimizes ionCube Automatic Installation scripts; supports multiple LNMPA installation times without multiple loads; Removes Suhosin; downloads and installs?
Download: http://www.lnmp.org/download.html
Installation: the installation method is the same as that of Lnmp0.6. For details, refer to the installation method.
LNMP0.6 to 0.7?
In the above update records, we also saw that Nginx, MySQL, and PHP were upgraded from 0.7 to 0.6, and Apache was added. Therefore, we only need to decompress the full installation package and enter the directory to execute upgrade_nginx.sh, upgrade_php.sh, then run apache. sh.
For updates, it is best to uninstall 0.6 and then install 0.7.
Status Management
LNMPA status management:/root/lnmpa {start | stop | reload | restart | kill | status}
Nginx status management:/etc/init. d/nginx {start | stop | reload | restart}
PureFTPd status management:/etc/init. d/pureftpd {start | stop | restart | kill | status}
MySQL status management:/etc/init. d/mysql {start | stop | restart | reload | force-reload | status}
Apache status management:/etc/init. d/httpd {start | stop | restart | graceful-stop | configtest | status}
VM management
1. LNMPA:/root/vhost. sh
2. Delete the VM and run rm/usr/local/nginx/conf/vhost/domain name in ssh. conf also requires rm/usr/local/apache/conf/vhost/domain name. conf
Status Management
LNMPA status management:/root/lnmpa {start | stop | reload | restart | kill | status}
Nginx status management:/etc/init. d/nginx {start | stop | reload | restart}
PureFTPd status management:/etc/init. d/pureftpd {start | stop | restart | kill | status}
MySQL status management:/etc/init. d/mysql {start | stop | restart | reload | force-reload | status}
Apache status management:/etc/init. d/httpd {start | stop | restart | graceful-stop | configtest | status}
Graphic Interface Program
Phpinfo: http: // The domain name or IP address entered earlier/phpinfo. php
PhpMyAdmin: http: // The domain name or IP address entered earlier/phpmyadmin/
Probe: http: // The previously entered domain name or IP/p. php
PureFTP Management Interface: http: // The domain name or IP address entered earlier/ftp/
LNMPA directory
Nginx:/usr/local/nginx
Mysql:/usr/local/mysql
Php:/usr/local/php
Apache:/usr/local/apache
Website directory:/home/wwwroot/
Nginx log directory:/home/wwwlogs/
LNMPA-related configuration files
Nginx main configuration file:/usr/local/nginx/conf/nginx. conf
MySQL configuration file:/etc/my. cnf
PHP configuration file:/usr/local/php/etc/php. ini
PureFtpd configuration file:/usr/local/pureftpd/pure-ftpd.conf
PureFtpd MySQL profile:/usr/local/pureftpd/pureftpd-mysql.conf
Apache configuration file:/usr/local/apache/conf/httpd. conf
For more details, see the official http://www.lnmp.org/lnmpa.html