Title: Unable to edit or create posts
Last modified: March 4, 2020

---

# Unable to edit or create posts

 *  Resolved [ranastron](https://wordpress.org/support/users/ranastron/)
 * (@ranastron)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/unable-to-edit-or-create-posts/)
 * Hello,
 * I am trying to get WordPress working on my Raspberry Pi. I just installed the
   latest version with Apache2. It seems to work, but only if I have the Permalink
   settings at “Simple.” Anything else gives me the “Updating failed. Error message:
   The response is not a valid JSON response.” Or a web page “Not Found” if I try
   to preview my change. Thanks for you help,
 *  >>>Steve<<<
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funable-to-edit-or-create-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Conscience Information Technologies](https://wordpress.org/support/users/wpservicescit/)
 * (@wpservicescit)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/unable-to-edit-or-create-posts/#post-12510372)
 * Hi [@ranastron](https://wordpress.org/support/users/ranastron/),
 * Maybe it seems a permission error to your files due to which wordpress is not
   able to create/update .htaccess file for updating the rewrite rules.
 * Please make sure your file permissions are as follows:
    Directories: 775 Files:
   664 Here is the commad for same: `sudo chmod -R 775 /folder` `sudo chmod -R 664/
   folder/*`
 * Also the group or owner of the files should be ‘www-data’.
    `sudo chown -R www-
   data:username /folder`
 * Once these permissions are set, try changing the permalink structure again.
 * Please let us know your response on this.
 *  Thread Starter [ranastron](https://wordpress.org/support/users/ranastron/)
 * (@ranastron)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/unable-to-edit-or-create-posts/#post-12511090)
 * That was my thought as well, so I had made sure the group was www-data, and the
   permissions were set. I even double checked that Apache2 was running as www-data.
   No change in the behaviour.
 *  >>>Steve<<<
 *  Thread Starter [ranastron](https://wordpress.org/support/users/ranastron/)
 * (@ranastron)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/unable-to-edit-or-create-posts/#post-12518520)
 * a knowledgeable friend advised that I turn on the mod_rewrite module in Apache2.
   That seemed to fix the problem. I wonder why it wasn’t turned on by default?
 *  >>>Steve<<<

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

The topic ‘Unable to edit or create posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [ranastron](https://wordpress.org/support/users/ranastron/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/unable-to-edit-or-create-posts/#post-12518520)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
