ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Net Web >

LAMP/LNMP pure original one-click installation command Shell development progress

Saturday on February 8th, 2020Net Web

This one-click optimization Shell Command +, now in its fourth edition. 1st, 2nd ed in the previous year, to prepare for their own use last year, when its principle is to install LAMP/LNMP all Shell commands are labeled as a package, because I was using environment is CentOS 5, Ubuntu 12, so that The first time, Version 2 only supports these two systems, and even at that time even CentOS 6, Ubuntu 14 do not support, because undeveloped. This two-month development of version 4, already supports Ubuntu, Debian, CentOS all versions of the system.

The title of "pure original" name, because this is a key Shell command, all commands are official original installation, or rely on third-party original, such as Ubuntu, Debian to install PHP 7.4, you must install the third-party PPA; CentOS to install PHP 7.3, you must install a third-party epel-release. These have been encapsulated in a key Shell command and all the systems, all versions of the system after several successful commissioning.

My personal use, Ubuntu, Debian features, speed is basically no difference. But after Debian 9, removed important rc.local; Ubuntu 16, Ubuntu 18 still retains the rc.local. At this point, Ubuntu will be easy to use it.

Domestic CentOS users a significant proportion. But in debugging them, some more questions CentOS system, at least Ubuntu questions. For example, many domestic businesses of VPS, CentOS 7 system default port 80 is closed, which did not default, even many hosts do not wget, which you need to add the installation, development needed to determine which firewall-cmd, and then firewall- cmd to open port 80.

CentOS 7, the default software source of many domestic businesses of VPS cloud Ali, installation speed quickly. But CentOS 7 will be a lot of error among installed, the software will only be replaced by CentOS official source software source 7 commands in a key Shell, the disadvantage is: due to the VPS in Asia, and is the official source software United States, so this will be a lot slower when you install the software, which is a normal phenomenon.

To avoid the error, simply command will be Ubuntu, Debian, CentOS of all systems, all versions of the software source in a key Shell, eleven replace official source software. Only Ubuntu 18, Ubuntu 19 temporarily replaced because I use VPS temporarily provide these two versions of the real machine, now up to version I use VPS real machine is Ubuntu 16.

Shell command to install a key development progress:

1. Supported systems:

Ubuntu 12,14,16 (18,19 compatibility mode, temporarily unconditional full test) perfect installation

(Ubuntu 15,17 has been abandoned due to the company official, so I can not support these two versions)

Debian 7.X, 8.X, 9.X perfect installation

CentOS 5.X, 6.X, 7.X perfect installation

2. Environment: currently only developed to LAMP.

3. Support for the latest version of PHP 7.4,7.3, etc., can choose to install the default version.

:( optimization may choose not optimized)

1. Turn off the Apache access log, error log Apache, PHP access log, system log perfect optimization

Close all the benefits of the log is as fast as when the host to always relic reinstall the system.

2. short_open_tag instead turned on by default; magic_quotes_gpc unified into off by default, the new version of PHP by default, mostly closed; log_errors changed to off.

3. Ubuntu, Debian installation time, Apache by default does not support .htaccess, do not support Rewrite; does not support headers_module, resulting in pages that can not use gzip and other functions.

It has been modified to support the default .htaccess, support headers_module.

Untapped:

1. LAMP in the MySQL

2. LNMP

Untapped portion of the estimated need to wait until next month to develop. Because in development, you need to reinstall the system frequently to test, reloading several times this month VPS consumed almost finished.

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/LAMP-LNMP-pure-original-one-click-installation-command-Shell-development-progress.htm