• My wordpress is installed at /var/www/some/path/to/site/public_html

    There are a number of sftp users (NOT ftp) set with their home directories at various places such as /var/www/some/path/to/site/ which lets them access the folder above, plus its vhost log folder, and other stuff.

    so the user owns the “site” folder, and www-data (the apache user group) is the group. This:

    chown -R mysitesftp:www-data public_html/
    chmod -R g+w public_html/

    is not enough.

    is there a way to get wordpress the ability to update itself, update its plugins, and install new plugins from the interface without setting the folder owner to www-data?

Viewing 1 replies (of 1 total)
  • Are you using Linode server?
    First download Putty and install it in your system.

    Open wp-config.php file through FTP and write the below code.
    define('FS_METHOD', 'direct');

    Now run putty->input your hostname->Enter port
    Connection Type->Select SSH
    Now click on open

    Enter your username and password(didn’t show you)
    After successful login run the below code:
    chown -R www-data:www-data /var/www/yourwebsite.com/public_html/wp-content
    That’s it.

    Your Problem resolved. Please let me know this one help you or not.

Viewing 1 replies (of 1 total)
  • The topic ‘permissions to get my site to update and install plugins’ is closed to new replies.