• Resolved ranastron

    (@ranastron)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @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

    (@ranastron)

    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

    (@ranastron)

    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.