- NGINX Cookbook
- Tim Butler
- 157字
- 2021-07-03 00:04:22
Getting ready
To compile PHP code and run it via NGINX, the preferred method is via PHP-FPM, a high-speed FastCGI Process Manager. We'll also need to install PHP itself and, for the sake of simplicity, we'll stick with the OS-supplied version. Those seeking the highest possible performance should ensure they're running PHP 7 (released December 3, 2015), which can offer a 2-3 times speed improvement for WordPress, while at the same time being up to four times more memory efficient compared to PHP 5.6.
To install PHP-FPM, you should run the following on a Debian/Ubuntu system:
apt-get install php7.0-fpm
For those running CentOS/RHEL, you should run the following:
sudo yum install php-fpm
As PHP itself is a prerequisite for the php-fpm packages, it will also be installed.
Note: Other packages such as MySQL will be required if you're intending to run this on a single VPS instance. Consult the WordPress documentation for a full list of requirements.
推薦閱讀
- Vue.js快速入門與深入實戰(zhàn)
- 深入淺出Spring Boot 2.x
- 深入淺出DPDK
- 零基礎(chǔ)學MQL:基于EA的自動化交易編程
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- Java EE 7 Development with NetBeans 8
- Python機器學習:手把手教你掌握150個精彩案例(微課視頻版)
- PhpStorm Cookbook
- Java EE 7 Performance Tuning and Optimization
- HTML5與CSS3基礎(chǔ)教程(第8版)
- 批調(diào)度與網(wǎng)絡(luò)問題的組合算法
- Angular應用程序開發(fā)指南
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- 單片機原理及應用技術(shù)
- Training Systems Using Python Statistical Modeling