Title: 403 Error post.php
Last modified: June 14, 2018

---

# 403 Error post.php

 *  Resolved [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/)
 * I just migrated couple sites to a new server. I install SSL with LetsEncrypt,
   and for some reason I can updated or add any post/page.
 * [https://aftercoffeedesigns.com](https://aftercoffeedesigns.com)
    [https://aftercoffeedesigns.com/beginnings](https://aftercoffeedesigns.com/beginnings)
 * php settings [https://aftercoffeedesigns.com/info.php](https://aftercoffeedesigns.com/info.php)
 * Server running Ubuntu with a LAMP stack
    this is the error [https://prnt.sc/jsan31](https://prnt.sc/jsan31)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F403-error-post-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400572)
 * What is the ownership and permissions on that file? Do they match the other files
   in wp-admin, wp-includes, wp-content, etc.? (Hint: they should.)
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400596)
 * permissions of all the files in wp-admin (rwxr-xr-x)
    wp-content and wp-includes
   is a mix of (rwxr-xr-x) and (drwxr-xr-x)
 * all the files are own by the web-server
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400602)
 * That looks correct. When you say “owned by the web server”, what user is that?
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400614)
 * this is the information that i get when I SSH into the server
    -rwxr-xr-x 1 www-
   data www-data 8123 Oct 11 2017 post.php
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400660)
 * OK, phooey, that’s correct.
 * So the 403 is not coming from the file system. Let’s make sure that PHP is running
   as www-data. What do you see for “ps -ef | grep php”?
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400668)
 * root@https:~# ps -ef | grep php”
    root 21989 21974 0 17:50 pts/1 00:00:00 grep–
   color=auto php”
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400672)
 * Odd.
 * What’s in your server’s access and error logs?
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400723)
 *     ```
       172.56.21.58 - - [14/Jun/2018:18:03:10 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 660 "https://aftercoffeedesigns.com/wp-admin/post.php?post$
       172.56.21.58 - - [14/Jun/2018:18:03:10 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 2159 "https://aftercoffeedesigns.com/wp-admin/post.php?pos$
       172.56.21.58 - - [14/Jun/2018:18:03:10 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 2779 "https://aftercoffeedesigns.com/wp-admin/post.php?pos$
       172.56.21.58 - - [14/Jun/2018:18:03:10 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 2587 "https://aftercoffeedesigns.com/wp-admin/post.php?pos$
       172.56.21.58 - - [14/Jun/2018:18:03:11 +0000] "GET /wp-content/uploads/2016/02/mantrans02c-150x150.jpg HTTP/1.1" 200 4585 "https://aftercoffeedesigns$
       ::1 - - [14/Jun/2018:18:03:17 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)"
       172.56.21.58 - - [14/Jun/2018:18:03:18 +0000] "POST /wp-admin/post.php HTTP/1.1" 403 742 "https://aftercoffeedesigns.com/wp-admin/post.php?post=5755&$
       ```
   
    -  This reply was modified 7 years, 11 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400731)
 * Interesting. You get a 200 there. Are you using mod_security?
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400734)
 * yes
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400746)
 * That’s it. Getting mod_security right for WP is a daunting task. Disable it for
   now and study up on Google. (I’ve never gotten it right, FWIW.)
 *  Thread Starter [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * (@ae3erdion)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400851)
 * Thanks that fix it
    -  This reply was modified 7 years, 11 months ago by [ae3erdion](https://wordpress.org/support/users/ae3erdion/).

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘403 Error post.php’ is closed to new replies.

## Tags

 * [page](https://wordpress.org/support/topic-tag/page/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 2 participants
 * Last reply from: [ae3erdion](https://wordpress.org/support/users/ae3erdion/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/403-error-post-php/#post-10400851)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
