官术网_书友最值得收藏!

  • 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.
主站蜘蛛池模板: 辉南县| 蕲春县| 乐业县| 白玉县| 莆田市| 怀宁县| 库尔勒市| 平阴县| 上犹县| 炎陵县| 资源县| 敦化市| 荥阳市| 屏山县| 乌鲁木齐市| 北碚区| 泾阳县| 威宁| 武汉市| 德昌县| 湄潭县| 兴国县| 肥东县| 大邑县| 北海市| 兴城市| 金塔县| 凌云县| 高青县| 南木林县| 铜鼓县| 洛川县| 昌图县| 京山县| 墨江| 饶河县| 阳山县| 南投市| 泾阳县| 循化| 利辛县|