您无权访问此服务器上的/wp-admin/post.php。 WordPress的 [英] You don't have permission to access /wp-admin/post.php on this server. Wordpress

查看:375
本文介绍了您无权访问此服务器上的/wp-admin/post.php。 WordPress的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该问题已被编辑3次,现在包含VPS和Centos标签,因为我认为我的VPS配置文件有问题。

The question was edited 3 times and it now includes VPS and Centos tags, because i think there is something wrong with my VPS config file.

好吧,首先,我已经仔细检查了这里提出的所有问题,但对我遇到的问题没有答案。

Ok, first, I've looked through all the questions asked here, and there is no answer to the issue I have.

问题是当我尝试复制/粘贴和更新或创建WP帖子时,收到以下警告:您无权访问此服务器上的/wp-admin/post.php。

The problem is that when I try to copy/paste and update or create WP post, I get this warning that says: "You don't have permission to access /wp-admin/post.php on this server."

最奇怪的是,当我复制/粘贴时,它大多仅在有某些特殊格式(如斜体或任何符号)时崩溃,而并非每个都像()。因此,如果我粘贴文本,则大多数情况下它会崩溃,但并非总是崩溃。

The strangest thing is that when I copy/paste it mostly crashes only if there are some special format like Italic or any symbol, but not every like (). So if I paste text, it mostly crashes but not always.

现在,为了使事情变得更加陌生,我在一篇帖子中做得很好,我的意思是过去在博客上看起来不错。然后,我尝试创建一个联系人页面,将其发布,但它并未显示在博客上。有一则消息说链接上没有任何内容。然后,我开始四处点击,并且注意到我所做的正确的帖子也消失了。我的意思是它仍然在那里,但是当您点击阅读更多时,它说什么也没找到。

Now, to make the things even stranger, I had a post that was doing just fine, I mean it used to appear fine on the blog. Then I've tried to create a contact page, I've published it and it didn't show on the blog. There was a message saying nothing found there on the link. Then I've started to click around and I've noticed my post that was doing right disappeared too. I mean it's still there, but when you click on read more it says nothing found.

我已经关闭了所有正在使用的插件(实际上只有十四个颜色),并且更改了主题,但完全没有结果。

I've turned off all the plugins I'm using (in fact only Fourteen Color) and have changed the theme, but with no result at all.

有人知道为什么会这样吗?
我将其托管在虚拟服务器上,并且在同一IP上同时运行着两个站点,但我认为这可能不是问题。
以前我使用SSL,我认为这可能是问题所在,但是后来我删除了域并从头开始创建了任何内容,问题仍然存在。

Any idea why does this happen? I'm hosting it on a virtual server and there are running 2 sites more at the same Ip, but I don't think, this could be the problem. Previously I was playing with SSL and I thought that might be the problem, but then I deleted the domain and have created anything from scratch and the issue persists.

钯。当我尝试从键盘上发布原始输入的文本时,我没有问题,但是当我粘贴它时,它通常会使帖子崩溃。

Pd. When I try to publish a raw entered text from the keyboard I've no problems, but when I paste it, it usually crashes the post.

编辑:My .htaccess文件在此处:

My .htaccess file is here:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

编辑2:看来我也无法发布链接。当我尝试发布链接时,出现相同的错误。

Edit 2: It seems I can't post links too. When I try to post a link I get the same error.

编辑3:我正在尝试查找php日志文件,但是似乎那里什么也没有。所以我的想法是:如果错误与试图写入日志但无法获得许可的wp有关,该怎么办?我在配置中启用了php日志,因此应该至少有一个,但是我找不到任何日志。有谁能告诉我,我必须在哪里查找日志。现在,我正在查找/ var / log,但没有php日志文件。

Edit 3: I'm trying to locate the php log file, but it seems there's nothing there. So my thought is: what if the error have to do with wp trying to write the log but it can't get permission? I have the php logs enabled in the config so there should be at least one, but i can't find any. Does anyone can tell me, where I have to look for the logs. Now I'm looking on /var/log but there are no php log file.

推荐答案

好,我必须编辑回答,因为尽管一切正常,问题仍然出现。因此,这一次我更深入地研究,发现问题出在我的mod安全配置中,因此我不得不将SecRuleEngine从On设置为DetectionOnly,现在问题已经解决了。
以前,它检测到每次尝试更新帖子的尝试,例如XSS攻击。

Ok, I have to edit the answer, because despite everything worked fine, the problem appeared again. So, this time I dug deeper only to find out, that the problem were laying in my mod secure conf, so I had to set SecRuleEngine from On to DetectionOnly, and now the issue is gone. Previously it was detecting every attempt to update the post like an XSS attack.

这篇关于您无权访问此服务器上的/wp-admin/post.php。 WordPress的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆