CentOS 7 is available on Linode. It emploies Apache 2.4 as the default web server, which provides a novel MPM event mode said to be as efficient as Nginx. This document describes a way to install a Linux, Apache, MariaDB and PHP with PHP-FPM server, also known as LAMP stack, on CentOS 7 step by step. It also includes PHP-FPM related configuration for phpMyAdmin.
标签: Apache
Apache + PHP-FPM 与 WordPress 多站点问题
前些天切换服务器到 CentOS 7 上的 Apache 2.4,在使用 MPM event + PHP-FPM 的时候遇到了 ProxyPassMatch 与运行子目录(SubDirectory)形式的 WordPress 多站点(MultiSite)不匹配的问题。结果访问子站点的仪表盘就发现 css 文件和 js文件无法正确加载,遭遇 404 错误。这里是水景一页的修正方法。
Apache httpd 2.4.x 使用 mod_proxy_fcgi 和 PHP-FPM 的方式
Apache + PHP-FPM 与 Mod_deflate
将 VPS 操作系统升级到 CentOS 7,有了 Apache 2.4 便迫不及待的尝试了一下 MPM event + PHP-FPM 组合。使用 Google PageSpeed 测试性能的时候却发现提示没开启网页 gzip 压缩。这个问题的解决很意外,记录在这里与大家分享。
LAMP 服务器 open session 目录 Permission denied 错误一例
今天在一个本地测试服务器上遇到了一次 open(/var/lib/php/session/sess_........., O_RDWR) failed: Permission denied
错误。这个错误是在登录 phpMyAdmin 的时候遇到的。