简体   繁体   English

打开 wordpress 网站时发现错误

[英]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.

相关问题 当我打开我的 WordPress 网站时出现错误 - I'm getting an error when I open my WordPress site 我如何解决在我的 wordpress 网站上找不到页面的问题 - How can i solve page not found problem on my wordpress website 当我试图隐藏主题时,我的 wordpress 网站上出现此 memory 错误 - I have been getting this memory error on my wordpress website when I tried to covert a theme 我的 wordpress 网站出现致命错误,我该如何解决? - My wordpress website occurred into a fatal error how can I solve it? 当用户访问我的Wordpress网站时,如何强制用户在野生动物园中打开我的网站 - How to force user to open my website in safari when they access my wordpress site 在我的网站中发现opencart错误 - opencart Error Found in my website 尝试打开我的网站时,我不断收到此错误:SQLSTATE [28000] [1045]用户'amaqhawe'@'localhost'的访问被拒绝(使用密码:NO) - I keep getting this error when trying to open my website: SQLSTATE[28000] [1045] Access denied for user 'amaqhawe'@'localhost' (using password: NO) 我的WordPress网站索引URL中有“ /?i = 2” - There is “/?i=2” in my wordpress website index url 检查我的 Wordpress 网站时发现随机代码 - Random codes found while inspecting my Wordpress website 托管网站时出现Mandrill SMTP错误 - Mandrill SMTP error when I hosted my website
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM