威联通吧 关注:14,941贴子:32,520
  • 0回复贴,共1

求教:TS231P在用opkg安装php7-fpm并修改配置指向后又恢复了

只看楼主收藏回复

本来是看到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@璐村惂鐢ㄦ埛_00Q7VWV馃惥 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-fpm.sock
listen.owner = httpdusr
listen.group = administrators
listen.mode = 0660
pm = dynamic
pm.max_children = 128
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
security.limit_extensions = .php .php3 .php4 .php5 .phtml
env[PATH] = /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
env[HOSTNAME] = $HOSTNAME


IP属地:山东1楼2020-12-14 19:49回复