刚刚使用本教程https://www.digitalocean.com/community/tutorials/wordpress-lamp-ubuntu-16-04-ru安装了Wordpress,并在打开wp-settings.php时遇到了php错误
Notice: Use of undefined constant ABSPATH - assumed 'ABSPATH' in /var/www/wordpress/wp-settings.php on line 19
Warning: require(ABSPATHwp-includes/load.php): failed to open stream: No such file or directory in /var/www/wordpress/wp-settings.php on line 19
Fatal error: require(): Failed opening required 'ABSPATHwp-includes/load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/wordpress/wp-settings.php on line 19
哦,我试过了
sudo chmod 755 $(find /var/www/wordpress/ -type d)
sudo chmod 644 $(find /var/www/wordpress/ -type f)
尝试在wp-config.php中手动设置WP文件的方式。尝试了另一个版本的WP。将文件和文件夹的所有权设置为非root sudo-user。没有什么变化。尝试清除14.04和16.04 ubuntu并没有。
你的常数需要是字符串。
这是字符串,我没有从repo更改文件。 此外,我的WP无法自行更新,因为
Warning: copy(/var/www/wordpress/wp-admin/includes/update-core.php): failed to open stream: Permission denied in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 257
答案 0 :(得分:0)
我的错误,我应该打开domain / wp-admin / options.php而不是domain / wp-settings.php