LNMP V1.4 official version installation and new Let\\’s Encrypt one-click installation and other functions

888u

Last update at :2024-06-25,Edit by888u

Jung Ge’s LNMP one-click installation package has been around for some years. It really provides a lot of help to users who need to install WEB environments in Linux VPS and servers. Moreover, there will be larger version updates and upgrades every Children’s Day. . Snail experienced the LNMP V1.4 test version (here) in February, and saw that its functions have been greatly increased.

This time LNMP V1.4 is officially released, with dozens of large and small improvements and feature updates, including the coexistence of multiple PHP versions, quick installation of Let\\'s Encrypt and other SSL certificates, and the PHP version has also been upgraded to PHP7 .1.x. Increase the use of judgments from mainland China. The specific update record can be found here: https://lnmp.org/changelog.html.

In this article, Snail is going to re-experience the complete installation process of LNMP V1.4, see the differences from the previous version, and experience the use of some different new features, including Let\ \'s Encrypt certificate installation.

First, preparations

1. The LNMP one-click package environment supports CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian/Deepin Server/Aliyun/Amazon/Mint Linux distributions.

2. Personally, it is recommended that the VPS configuration memory be at least 512MB and above, and the installation of MySQL 5.6 or 5.7 and MariaDB 10 must have 1G or above memory.

3. CentOS 5, Debian 6 and previous versions do not support installation, and the distribution version needs to be slightly newer.

Second, LNMP V1.4 script download

yum install wget screen -yscreen -S lnmpwget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && . /install.sh lnmp

If you need to install lnmpa or lamp combination configuration, you can replace the above lnmp. We generally use lnmp here.

Third, LNMP V1.4 installation and configuration parameter process

1. Select the MySQL database version

Here we can choose the MySQL or MariaDB database version, or not install the database.

2. Set database management password

3. Start InnoDB Storage Engine

4. Install PHP

Choose to install the PHP version, which already supports PHP7.1, but was not supported in the previous version.

5. Install caching options

Select the installation cache option and then press any key to install automatically.

6. Installation completed

We are still waiting and waiting until we see no error in the above interface, which means the installation is successful. We can access the IP address, then see the default interface for successful installation, and log in to the installed phpmyadmin to see if we can log in to the database, so as to further verify whether the installation is complete.

Fourth, select some new LNMP functions

For our general website building purposes, the default functions are sufficient, but some CMS features may require support for various required components, extension support, and specific PHP versions. Here is a snail to see what special features the new version has added.

A – Installation of certificates such as Let\\’s Encrypt

Compared with another oneinstack script we are familiar with, its certificate installation function is available. Because LNMP V.14 is only updated once a year, it is not available in the previous version, and the oneinstack script has new functions. Timely updates. This time LNMP also adds certificate installation automation.

1. Add site configuration parameters

This is based on when we add a new site, and then add the SSL certificate together. If we already have an LNMP V1.4 environment and do not deploy an SSL certificate at the beginning, then we can add the site separately through lnmp ssl add. Certificate.

2. Choose how to configure SSL certificate

Here Snail hopes to automatically configure it. As long as our domain name is resolved and the email address is random, it will automatically help configure it.

3. Complete the configuration of the SSL certificate

We can see the successful interface for configuring the site. At this point we can open the site through HTTPS and see the successfully configured certificate.

We can install the certificate directly when adding the site. You can use a free Let\\’s Encrypt certificate or other certificates. At the same time, the LNMP script can also add separate certificates to automatically install (lnmp ssl add) for sites that have already been installed (without certificates).

B – Remove cross-site permissions and remove basedir

Friends who use LNMP one-click package should know that the basedir configuration to prevent cross-site is added by default. If we need to remove it in the new version, do not remove it manually, we can directly remove it automatically by script.

./remove_open_basedir_restriction.sh

In the tools directory.

C – Multiple PHP support

According to the official description, it supports the coexistence of multiple PHP versions, but the actual installation and settings have not been documented. I will share them separately next time I find the documentation and usage methods. This is slightly less usable than the visualization panel.

Fifth, LNMP V1.4 experience summary

1. From a functional point of view, V1.4 adds many detailed tools and optimizes performance

2. However, as a new version, there will inevitably be some problems, so we can test it in the test environment for a period of time and check whether it is suitable for our own program version, and then replace it.

3. Although an upgraded version is also available, we still need to do a good job of backing it up because there may be adverse reactions after the upgrade.

Recommended site search: Hong Kong virtual host, domain name registration fee, cn domain name registration, Alibaba Cloud free virtual host, ip proxy, what is the server, Hong Kong server, Jiangsu high-defense server, private server website space,

LNMP V1.4 official version installation and new Let\\’s Encrypt one-click installation and other functions

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码