该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
本来是看到WordPress提示让升级PHP,于是用Entware中的opkg安装了php7-fpm,并修改修改/etc/config/apache/php-fpm.conf中将原指向自带php5的监听改为新安装的php7-fpm。但之后重启NAS,打开WordPress提示错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@NAS to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
然后再修改php-fpm.conf,在[global]段增加include=/opt/etc/php7-fpm.d/*.conf。重启,结果该php-fpm.conf恢复之前的内容了。
修改后的php-fpm.conf内容如下:
[global]
error_log = /dev/null
include=/opt/etc/php7-fpm.d/*.conf
[www]
user = httpdusr
group = administrators
listen = /var/run/php-f