Hi all, I successfully setup a LEMP server and I thought I had everything figured out until I tried to upload files using FTP. When logged in under FTP using CoreFTP I get the error message 553 Can't open that file: Permission denied when trying to upload or overwrite files. I tried chmod, no success. Also, when I try to upload a theme to WP I have IspConfig ERROR 500 - INTERNAL SERVER ERROR! On ls -la /var/www/clients/client1/web1//web I have: drwxrwxr-x 7 root root 4096 Feb 18 15:55 . drwxr-xr-x 9 root root 4096 Feb 17 18:35 .. drwxrwxr-x 2 root root 4096 Feb 17 18:35 error -rwxrwxr-x 1 root root 7358 Feb 17 18:35 favicon.ico -rw-r--r-- 1 root root 358 Feb 18 15:55 .htaccess -rwxrwxr-x 1 root root 418 Feb 17 18:52 index.php -rwxrwxr-x 1 root root 19935 Feb 17 18:52 license.txt -rwxrwxr-x 1 root root 7413 Feb 17 18:52 readme.html -rwxrwxr-x 1 root root 14 Feb 17 18:35 robots.txt drwxrwxr-x 2 root root 4096 Feb 18 00:00 stats -rwxrwxr-x 1 root root 5434 Feb 17 18:52 wp-activate.php drwxrwxr-x 9 root root 4096 Feb 17 18:52 wp-admin -rwxrwxr-x 1 root root 364 Feb 17 18:52 wp-blog-header.php -rwxrwxr-x 1 root root 1627 Feb 17 18:52 wp-comments-post.php -rwxrwxr-x 1 root root 2833 Feb 17 19:07 wp-config.php drwxrwxr-x 4 root root 4096 Feb 17 18:52 wp-content -rwxrwxr-x 1 root root 3669 Feb 17 18:52 wp-cron.php drwxrwxr-x 18 root root 12288 Feb 17 18:52 wp-includes -rwxrwxr-x 1 root root 2422 Feb 17 18:52 wp-links-opml.php -rwxrwxr-x 1 root root 3306 Feb 17 18:52 wp-load.php -rwxrwxr-x 1 root root 36583 Feb 17 18:52 wp-login.php -rwxrwxr-x 1 root root 8048 Feb 17 18:52 wp-mail.php -rwxrwxr-x 1 root root 16246 Feb 17 18:52 wp-settings.php -rwxrwxr-x 1 root root 30071 Feb 17 18:52 wp-signup.php -rwxrwxr-x 1 root root 4620 Feb 17 18:52 wp-trackback.php -rwxrwxr-x 1 root root 3065 Feb 17 18:52 xmlrpc.php Any solution it will be greatly appreciated!
Those files/directories should not be owned by root, look up the correct user/group in /etc/passwd and change then.
Thanks for the reply. I already manage to correct that. To fix it, run: chattr -i /var/www/clients/client0/web7 chown -R web7:client0 /var/www/clients/client0/web7/web chattr +i /var/www/clients/client0/web7