LNMP V1.4 official version and install the new Let's Encrypt a key installation, and other features

Army brother LNMP a key installation package has been some years, really need to install the WEB user environment provides no small help in Linux VPS, servers, and the annual Children's Day, there will be a larger version updates and upgrades. Old left in February, when there are experienced LNMP  V1.4 test version ( here ), whose function is to see a lot of increase.

The LNMP V1.4 version of the official release, large and small, dozens of improvements and feature updates, including multi-PHP version coexist, Let's Encrypt and other SSL certificate quickly install, upgrade to PHP version PHP7.1.x, increase domestic Analyzing source used. Specific update records can be seen here: https: //lnmp.org/changelog.html.

In this article, the old left to prepare the installation process LNMP V1.4 version of the complete experience lower back, look at the old version before and what difference, and under somewhat different experience of the use of new features, including Let's Encrypt certificate installation.

First, the preparatory work

1, LNMP a key package environment supports CentOS / RHEL / Fedora / Debian / Ubuntu / Raspbian / Deepin Server / Aliyun / Amazon / Mint Linux distributions.

2, personal recommendations VPS configuration at least 512MB of memory and above, and install MySQL 5.6 or 5.7 and MariaDB 10 must be more than 1G of memory.

3, CentOS 5, Debian 6 and earlier versions do not support the installation, the new release needs a little.

Second, LNMP V1.4 script download

yum install wget screen -y
screen -S lnmp
wget -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 lamp or a combination of configuration, you can replace the above lnmp, where we generally use lnmp majority.

Third, LNMP V1.4 installation process configuration parameters

1, select the MySQL database version

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

2, set the database password management

Set the database password management

3, start InnoDB Storage Engine

Start InnoDB Storage Engine

4, install PHP

Select Install PHP version has support PHP7.1, before a version is not supported.

5, the installation caching options

Select the option to install the cache, and then any key installed automatically.

6, installation

We still waited and waited, knowing that see the above screen is not being given, only that the installation is successful. We can access the IP address, and then see the successful installation default interface, as well as the installation of phpmyadmin login, see if you can sign in to the database, so that further verify that the installation complete.

Fourth, choose some new features LNMP

For our establishment in general use, the default function is enough, but some CMS particularity, may need to support the various components needed to support the expansion, and the need for a specific version of PHP. Here the old left to see what the new version adds special features.

Let's Encrypt the like mounted certificate - A

Another oneinstack compared to the familiar script, its function is to install the certificate there, because LNMP V.14 is only updated once a year, so before the release is not, and oneinstack script is timely updated with new city . The LNMP to install the certificate automation also joined.

1, add the site configuration parameters

LNMP V1.4 quickly configure Let's Encrypt certificate

Here we are in accordance with the newly added site, and then add the SSL certificate together, if we have LNMP V1.4 environment, and did not begin to deploy SSL certificates, that is by lnmp ssl add to add a certificate to a separate site.

2, choose to configure SSL certificate manner

选择配置SSL证书方式

Here the old left is hope automatic configuration, as long as we come DNS, mail free, help is automatically configured.

3, complete configuration SSL Certificate

完成配置SSL证书

We can see the configuration interface of the site successfully, here we can open the site to see the success of the certificate has been configured through HTTPS.

We can directly add the site when the certificate is installed up, you can use the free Let's Encrypt certificates or other certificates. Meanwhile, LNMP script can (with no certificate), and then add the certificate to the site already installed separately installed automatically (lnmp ssl add).

B - Cross-site removal of privileges removed basedir

If you use a key package LNMP friends should know that time is added by default to prevent cross-site basedir configuration, if we need to remove out a new version Do not manually removed, the script can automatically be removed directly.

./remove_open_basedir_restriction.sh

Tools in the tool catalog.

移除跨站权限移除basedir

C - Multi PHP support

According to the official description is to support the coexistence of multi-PHP version, but the actual installation and setup have not found the document, so the next left to find old documents and re-use share alone. This is visualized on the panel a little bit worse usability.

Fifth, LNMP V1.4 Experience Summary

1, from a functional point of view, V1.4 is a lot more detail tool, and optimize performance

2, but as the new version, it is inevitable there will still be some problems, so we can test in a test environment for some time, and check whether their own version of the program, and then to be used interchangeably.

3, although upgraded version, but we also want to do a backup job, because there may be adverse reactions after the upgrade.

Guess you like

Origin www.cnblogs.com/phpk/p/10930274.html
Recommended