• Hi what are the correct directory and file permissions for a WP installation on linux?

    I have followed the following but it prevents me from updating WP. Plugins are fine

    chown -R XXXXX\: /var/www/html/
    chmod -R 0755 /var/www/html/
    chmod 0755 /var/www/html/wp-includes/
    chmod 0644 /var/www/html/.htaccess
    chmod 0644 /var/www/html/wp-admin/index.php
    chmod 0755 /var/www/html/wp-admin/js/
    chmod 0755 /var/www/html/wp-content/themes/
    chmod 0755 /var/www/html/wp-content/plugins/
    chmod 0755 /var/www/html/wp-admin/
    chmod 0755 /var/www/html/wp-content/
    chmod 0644 /var/www/html/wp-config.php
    chmod 0644 /var/www/html/index.php
    chmod 0644 /var/www/html/wp-blog-header.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Thread Starter londonnet

    (@londonnet)

    Thanks for the link. It made quite interesting reading.

    So let me ask another question. Which of my file permissions is breaking the WordPress upgrade?

    What I’m currently doing is pining everything to 777, doing the upgrade then re applying my security settings. It take 30 seconds but I’m concerned I have a permission which is breaking other stuff I haven’t discovered yet.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User writes – linus host’ is closed to new replies.