我已经通过Softaculous应用安装程序为cpanel安装了wordpress'我安装了主题。一天后主题工作正常我的字体页面无效。
这是错误的。
[29-Apr-2018 07:56:23 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:56:23 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:28 UTC] PHP Fatal error: Class 'FT_scope' not found in /home/eco/public_html/wp-content/themes/Vangard/header.php on line 28
你能告诉我如何解决它。感谢
答案 0 :(得分:0)
在我看来,错误是由于文件权限问题。 如果这是您自己系统上的本地设置,则只需右键单击wordpress安装(根项目文件夹)并将其设置为755 或者设置所有者所有权限,其余只有访问文件
递归地将此应用于所有文件夹
答案 1 :(得分:0)
您的项目拥有不正确的权限/文件所有权。
使用以下方法执行此操作的最佳和最简单方法:
$ sudo find /path/to/site -type f -exec chmod 644 {} \;
$ sudo find /path/to/site -type d -exec chmod 755 {} \;
这将找到站点根目录中的所有文件,并将权限设置为644,然后它将找到目录的所有内容并将其设置为755。
如果权限错误在此之后返回,请检查root是否不是所有者(通过在您的目录上运行ls -la
来显示具有文件权限和所有者的列表视图中的文件)。如果是这种情况,请将其设置为您的家庭用户或apache:
$ sudo chown -R /path/to/site my-user:www-data