在开启手机注册验证的时候提示只读权限(忘了截图)
然后按照提示进入后台管理,修改访问限制
但是奇怪的是无论怎么设置,怎么重启服务都无法更改,然后根据这个功能,可以猜测出现这个问题原因是服务器某个目录或者文件的权限不足导致的,然后百度了一下,终于 找到问题所在(的确是权限问题)
首先进入网站根目录,给予conf文件夹777权限
root@tan:~# cd /var/www/html/
root@tan:/var/www/html# chmod 777 conf/*
root@tan:/var/www/html# ll
total 84
drwxr-xr-x 14 root root 4096 Apr 2 11:07 ./
drwxr-xr-x 3 root root 4096 Apr 1 13:29 ../
drwxrwxrwx 4 root root 4096 Mar 18 07:21 admin/
drwxrwxrwx 2 root root 4096 Apr 4 13:54 conf/
-rwxrwxrwx 1 root root 2905 Mar 18 07:21 index.inc.php*
-rwxrwxrwx 1 root root 2203 Mar 18 07:21 index.php*
-rwxrwxrwx 1 root root 431 Mar 18 07:21 INSTALL.txt*
drwxrwxrwx 7 root root 4096 Mar 18 07:21 lang/
-rwxrwxrwx 1 root root 1181 Mar 18 07:21 LICENSE.txt*
drwxrwxrwx 3 root root 4096 Apr 1 13:53 log/
drwxrwxrwx 2 root root 4096 Mar 18 07:21 model/
-rwxrwxrwx 1 root root 1819 Mar 18 07:21 model.inc.php*
drwxrwxrwx 12 root root 4096 Apr 4 13:47 plugin/
-rwxrwxrwx 1 root root 3109 Mar 18 07:21 README.md*
-rwxrwxrwx 1 root root 69 Mar 18 07:21 robots.txt*
drwxrwxrwx 2 root root 4096 Mar 18 07:21 route/
drwxrwxrwx 2 root root 4096 Apr 4 13:56 tmp/
drwxrwxrwx 2 root root 4096 Mar 18 07:21 tool/
drwxrwxrwx 6 root root 4096 Apr 2 11:08 upload/
drwxrwxrwx 7 root root 4096 Mar 18 07:21 view/
drwxrwxrwx 2 root root 4096 Mar 18 07:21 xiunophp/
root@tan:/var/www/html#
然后重启php,Apache服务即可
本文来自博客园,作者:坐公交也用券,转载请注明原文链接:https://www.cnblogs.com/liumou-site/p/17106089.html