Lnmp Website: http://lnmp.org/faq/lnmp-software-list.html
In addition to the required dependency packages, the lnmp one-click installation package also installs the following software by default: nginx, MySQL/mariadb, PHP, phpMyAdmin, Zend optimizer/Zend guardloader. You can install other components as needed, such as the FTP server and cache components, or upgrade nginx, MySQL, and PHP using the upgrade script.
To install these components or upgrade these components, you must download and decompress the lnmp directory. For example, to download them to the/root directory, go to the/root/lnmp1.1-full directory and run the following command.
FTP Server:
- Optional 1: pureftpd. Run:./pureftpd. Sh installation, http: // yourip/FTP/for management.
- Option 2: ProFTPd. Run:./ProFTPd. Sh to install and run the command:/root/proftpd_vhost.sh to add an FTP account.
Cache acceleration:
- (Optional) 1. eaccelerator. Run:./eaccelerator. Sh to install eaccelerator.
- Optional; 2: memcached. Run:./memcached. Sh to install memcached.
- Optional 3: xcache. You need to select the version and password during installation. http: // yourip/xcache/is used for management. The user name is admin and the password is set when xcache is installed. Run./xcache. Sh.
- (Optional) redis. Run./redis. Sh to install redis.
- Option 5: opcache. Run the following command to install opcache. sh. Http: // yourip/OCP. php for management. Zend opcache conflicts with eaccelerator. You need to uninstall eaccelerator.
Upgrade script:
- You can upgrade the nginx script to any nginx version. Execute:./upgrade_nginx.sh and follow the prompts to upgrade.
- PHP upgrade script, which can be upgraded to most PHP versions. Run:./upgrade_php.sh to upgrade as prompted.
- The MySQL upgrade script can be upgraded to any MySQL version. It is highly risky to upgrade mysql. Although data is automatically backed up, we recommend that you back up the data on your own. Run:./upgrade_mysql.sh to upgrade as prompted.
- MySQL can be upgraded from MySQL to mariadb. Although data is automatically backed up, we recommend that you back up the data. Run:./upgrade_mysql2mariadb.sh to upgrade as prompted.
- The mariadb upgrade script can be used to upgrade the installed mariadb. Although data is automatically backed up, we recommend that you back up the data on your own. Execute:./upgrade_mariadb.sh and follow the prompts to upgrade.
- Lnmpa PHP upgrade script. You can Upgrade PHP of lnmpa to most versions. Run:./upgrade_lnmpa_php.sh to upgrade as prompted.
Image processing:
- Option 1: ImageMagick. Run:./ImageMagick. Sh to install it.
Execute:./ImageMagick. Sh installation. ImageMagick path:/usr/local/ImageMagick/bin /.
Decryption:
- Option 1: ioncube. Run:./ioncube. Sh to install ioncube.
Others:
- Optional 1, run:./php5.2.17.sh to install a PHP 5.2.17 independent of lnmp conflicts, you need to change the php-cgi.sock in the nginx VM configuration file to the php-cgi52.sock when using.
- Optional 2. Run./reset_mysql_root_password.sh to reset the root password of MySQL/mariadb.
- Optional 3. Run:./check502.sh to check whether the PHP-FPM is suspended. restart the system when the 502 error is reported and use it with crontab.
- 4. Run the./cut_nginx_logs.sh log cutting script.
- Optional 5. Run./remove_disable_function.sh to delete the disabled function.
Lnmp-related software installation directory
Nginx Directory:/usr/local/nginx/
MySQL Directory:/usr/local/MySQL/
MySQL database Directory:/usr/local/MySQL/var/
Mariadb Directory:/usr/local/mariadb/
Directory of the mariadb Database:/usr/local/mariadb/var/
PHP Directory:/usr/local/PHP/
PhpMyAdmin Directory: For version 0.9,/home/wwwroot/PHPmyAdmin/1.0 is/home/wwwroot/default/PHPmyAdmin/. We strongly recommend that you rename this directory as a name that is hard to guess. PhpMyAdmin can download and replace the new version from the official website.
Default website directory:/home/wwwroot/0.9/home/wwwroot/default/
Nginx log directory:/home/wwwlogs/
/Root/vhost. sh:/usr/local/nginx/CONF/vhost/
Pureftpd Directory:/usr/local/pureftpd/
Pureftpd web management Directory:/home/wwwroot/default/FTP/0.9/home/wwwroot/default/FTP/
ProFTPD Directory:/usr/local/ProFTPD/
Redis Directory:/usr/local/redis/
Lnmp configuration file location
Nginx main configuration file:/usr/local/nginx/CONF/nginx. conf
/Root/vhost. sh:/usr/local/nginx/CONF/vhost/Domain Name. 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 profile:/usr/local/pureftpd/pureftpd-mysql.conf
ProFTPD configuration file:/usr/local/ProFTPD/etc/ProFTPd. conf
ProFTPD user configuration file:/usr/local/ProFTPD/etc/vhost/user name. conf
Redis configuration file:/usr/local/redis/etc/redis. conf
Lnmpa directory file location
Apache directory:/usr/local/Apache/
Apache configuration file:/usr/local/Apache/CONF/httpd. conf
Apache Virtual Host Configuration File directory:/usr/local/Apache/CONF/vhost/