Skip to content

Instantly share code, notes, and snippets.

@jomurgel
Last active January 7, 2021 18:17
Show Gist options
  • Save jomurgel/9daa972c7990f322859a8d73c9bbc8e9 to your computer and use it in GitHub Desktop.
Save jomurgel/9daa972c7990f322859a8d73c9bbc8e9 to your computer and use it in GitHub Desktop.
Fix FTP issue for WordPress on DigitalOcean

1. Web Server Ownership

#The first level is actually to make sure that your web server has ownership over the directories: chown -R www-data:www-data your-wordpress-directory

2. Directory Permissions

The second level is also required – you must make sure that the directory permissions are properly set:

sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \; sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment