Author Topic: WordPress Page Update - 403 Forbidden  (Read 14569 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
WordPress Page Update - 403 Forbidden
« on: May 30, 2019, 02:51:51 AM »
Dear all,
I am facing a problem after the installation of a new WordPress site.  I can update the "Post" by creating new / updating.

Forbidden
You don't have permission to access /wp-admin/post.php on this server.

Unfortunately, I can't do anything on top of pages.  Currently, I have disabled nearly all plugins but only the classic editor.

I have used the "Fix Permission" function in the CWP and checked the folders / files as 755 for the wp-admin and php files within it as 644.  Could anyone suggest any clues?

Thanks.
Regards,
AbsoluteMusik

Offline
**
Re: WordPress Page Update - 403 Forbidden
« Reply #1 on: May 30, 2019, 07:52:03 AM »
is modsecurity enabled?

Offline
*
Re: WordPress Page Update - 403 Forbidden
« Reply #2 on: June 06, 2020, 07:13:44 AM »
I had the same issue for /wp-admin/nav-menus.php when trying to create a new menu.

I disabled mod security for that particular domain in my CWP and it was working after that. (But i don't know whether its safe to leave it like that)



Offline
*
Re: WordPress Page Update - 403 Forbidden
« Reply #3 on: September 24, 2020, 12:19:12 PM »
It worked for me as well...so is there another solution ??? I have used the fix permission many times and did not do anything for my case. Thank you very much.

Re: WordPress Page Update - 403 Forbidden
« Reply #4 on: September 24, 2020, 12:59:19 PM »
IF you want to do this properly then check the mod_sec log just after the the problem arises. It will show the rule ID.
Remove that particular rule from the account's mod_sec settings - there's even a GUI in admin to help you do so.
You might want to exclude it globally and CWP provides a few by default, so you even get to see the syntax.
Couldn't get much easier, if you care to look/try.

Offline
*
Re: WordPress Page Update - 403 Forbidden
« Reply #5 on: September 24, 2020, 02:44:38 PM »
when I check IP address, in the case my own IP-

I get the message:

Ip not found in /usr/local/apache/domlogs/misanthropicradio.com.error.


Thank you very much

Re: WordPress Page Update - 403 Forbidden
« Reply #6 on: September 24, 2020, 03:37:42 PM »
..
Ip not found in /usr/local/apache/domlogs/misanthropicradio.com.error.
..

No-one mentioned Apache dom logs.  ???
It's a mod security issue.
Quote
.. there's even a GUI in admin to help you ..
« Last Edit: September 24, 2020, 03:39:13 PM by cynique »

Offline
*
Re: WordPress Page Update - 403 Forbidden
« Reply #7 on: January 18, 2021, 04:31:23 PM »
When I faced some of these same type issues, I found there was an endless supply of rule IDs to fix in modsec. I saw a note somewhere that switching to Comodo WAF in modsec would solve that issue and indeed it did.
« Last Edit: January 18, 2021, 04:33:03 PM by wshosted »