Chinese support for installation, to avoid some of the language related to pit
1 |
sudo apt-get install language-pack-zh-hans |
Installing PHP
Here is the installation of PHP 7.2, for simplicity, we directly use the ready-made package (of course, you can also use the source code to compile).
1 |
# Install the software before you can use it PPA |
Tuning php
We are about to use nginx with php-fpm to use, so the configuration file path /etc/php/7.2/fpm/php.ini
Easily lead to the question of amending a memory overflow php.ini
modify pcre.recursion_limit=5000
Other adjustments
1 |
Big Box ubuntu server php environment to build simple ass = "code">max_input_vars = 20000 |
Installation fpm
1 |
sudo apt-get install php7.2-fpm |
Tuning php-fpm
Modify /etc/php/7.1/fpm/php-fpm.conf
1 |
emergency_restart_threshold = 10 |
FPM-/etc/php/7.2/fpm/pool.d/ modify PHP www.conf
1 |
listen = 127.0.0.1:9000 |
Install nginx
sudo apt-get install nginx
PHP7.2 expand
1 |
sudo apt-get install php7.2-mbstring php7.2-xml php7.2-intl |