This host maintenance note, published on March 18, 2015, is titled "Installing and Configuring LEMP on CentOS 7". The actual environment and tools involved include PHP, MySQL, MariaDB, Apache, and Nginx.
Data center and resources
worker_processes represents the number of CPU cores in the current VPS/server, which can be detected and modified using grep ^processor /proc/cpuinfo | wc -l.
Software and deployment conditions
Parameters recorded in the original text
- Version history:CentOS7, MySQL 5.5, MariaDB 5.5
Matters mentioned in the article
- First, install the EPEL and REMI library files.
- Second, install Nginx.
- Third, install MariaDB 5.5.
- Fourth, install PHP-fpm 5.6.
- Fifth, configure Nginx
- Sixth, add sites and configuration files.
Usage Environment
PHP, MySQL, MariaDB, Apache, Nginx.
Key points to check
Environmental verificationFirst, confirm the actual web server and PHP runtime environment used by the site. Command-line and website processes may use different configuration files; any changes should be verified through the website entry point.
Data verificationWhen databases are involved, the version, character set, and number of tables should be recorded, and it should be verified that the backup can be restored in an independent environment.