html, css, jQuery, PHP, mySQL

« | »

WordPress and PHP: the dreaded 403 error

403 access forbidden

403 access forbidden

Well, I just finished trying to make my first ever post on PHP on this WordPress blog, and ran into an interesting problem. Something in my text was screwing up the process – I kept getting this error message when I tried to edit, view, or publish:

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

Fortunately google came to my rescue. It seems that this often happens with WordPress – and perhaps most often when people are using certain terms in their posts. I’m not sure exactly what went wrong – but I found a solution at online-it-support.co.uk:

When you try adding a new post within your WordPress blog, you receive the below error: 

Forbidden. You don’t have permission to access /wp-admin/post.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

To resolve, add the below text to your .htaccess file:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

At least some people have been unable to fix this themselves – in fact, most – and I was afraid I would have to tangle with the dreaded Support Ticket and/or a long-distance phone call to get it sorted out. To be fair, I have found Lunarpages very helpful in the past.

No way of telling if the same fix would have solved the problem in every case – I have no idea about the finer details of server administration. But thanks online-it-support..co.uk! You made my day!

Tags: , , , , , , , , ,

This entry was posted on Monday, February 21st, 2011 at 3:20 am and is filed under Apache, PHP, Wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply