[英]Found an error when I open my wordpress website
I see this when I visit my website:当我访问我的网站时,我看到了这个:
Warning: require_once(C:\xampp\htdocs\wordpress\wp-settings.php): failed to open stream: Permission denied in C:\xampp\htdocs\wordpress\wp-config.php on line 90
Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\wordpress/wp-settings.php' (include_path='\xampp\php\PEAR') in C:\xampp\htdocs\wordpress\wp-config.php on line 90
This is a permissions warning and error.这是一个权限警告和错误。 When your xampp server tries to construct a page using Wordpress it needs access to various Wordpress files so that it can take your settings and configuration into account.当您的 xampp 服务器尝试使用 Wordpress 构建页面时,它需要访问各种 Wordpress 文件,以便它可以考虑您的设置和配置。
The warning and the error you have given are saying that the "wp-settings.php" file is not readable by the webserver (xampp in this case).您给出的警告和错误是说网络服务器(在这种情况下为 xampp)无法读取“wp-settings.php”文件。 Make sure that the xampp user has permission to access "C:\xampp\htdocs\wordpress\wp-settings.php".确保 xampp 用户有权访问“C:\xampp\htdocs\wordpress\wp-settings.php”。 If you do not know which user you need to give permission to then you can use the top answer here to help you find out.如果您不知道需要向哪个用户授予权限,则可以使用此处的最佳答案来帮助您找出答案。
Here is a link to an article on Wordpress permissions .这是一篇关于Wordpress 权限的文章的链接。 There are many more out there which can also help you to set the required permissions for Wordpress to run properly.还有很多其他方法也可以帮助您设置 Wordpress 正常运行所需的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.