• Jim Hubbard

    (@jimhubbard)


    I just moved a site from bluehost to a Digital Ocean vps (LEMP + WordPress) but I’ve had a couple of issues with permissions that I hope someone can help with.

    During the install, WordPress could not write changes to wp_config.php and it asked me to copy the content for wp_config.php and use ssh to write it out to the wp_config.php file.

    At other WordPress hosts, the install just runs and writes the database name, db username, db password, etc to the wp_config.php file without a problem.

    What file permissions should be set for wp_config.php that would allow that would allow WordPress to write it’s settings (or create the wp_config.php) during the install?

    Then I tried installing W3 Total Cache and it asked over and over for me to either run commands via FTP (clicking a button for

    What permissions are needed for W3 Total Cache (and really any other plugin) to just run without pestering the end user to click a button for each command or asking the end user to run commands via FTP.
    I understand that permissions by default are tight for security. But, there has to be a balance between security and ease of use – especially when the end users are just normal WordPress users and may not be familiar with ssh or executing commands on the server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    wp-config.php should be 644 owned by the server’s user for WordPress to write to it, and then 640 when you’re done with it, just to be safe. In my opinion, it’s always better/safer to keep the configuration file locked down and manually write to it yourself when prompted.

    For W3TC, I recommend asking at https://www.ads-software.com/support/plugin/w3-total-cache#postform so the plugin’s developers and support community can help you with this.

    Regan Khadgi

    (@regankhadgi)

    wp-config file permission should be set as 644 but the plugin such as wp super cache and w3 total cache requires 777 for one time to define its configurations in the wp-config file.So once the configurations are defined after the install of plugin, you can again set the file permission as 644.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wp_config.php and W3 Total Cache permission issues.’ is closed to new replies.