Wordpress permissions

May 3, 2014 3.1k views
Hi, I know this has been answered before but I still can't get it to work. Basically Wordpress will not update the core or plugins, and instead throws an error message. I have tried: Adding define( 'FS_METHOD', 'direct' ); in the wp-config file sudo chown -R www-data:www-data /srv/users/serverpilot/apps/thetest/public sudo chown -R www-data /srv/users/serverpilot/apps/thetest/public FYI if it means anything the output of ls -la /srv/users/serverpilot/apps/thetest/public is this: drwxrwxr-x 5 www-data www-data 4096 May 1 18:54 . drwxr-xr-x 4 serverpilot serverpilot 4096 Apr 16 08:43 .. -rw-rw-r-- 1 www-data www-data 237 Apr 16 09:06 .htaccess -rw-rw-r-- 1 www-data www-data 418 Sep 24 2013 index.php -rw-rw-r-- 1 www-data www-data 19 Apr 16 18:01 phpinfo.php -rw-rw-r-- 1 www-data www-data 81 Apr 17 07:49 .user.ini -rw-rw-r-- 1 www-data www-data 4892 Oct 4 2013 wp-activate.php drwxrwxr-x 9 www-data www-data 4096 Apr 14 15:08 wp-admin -rw-rw-r-- 1 www-data www-data 271 Jan 8 2012 wp-blog-header.php -rw-rw-r-- 1 www-data www-data 4795 Sep 5 2013 wp-comments-post.php -rw-rw-r-- 1 www-data www-data 3077 May 2 22:20 wp-config.php drwxrwxr-x 6 www-data www-data 4096 May 2 21:38 wp-content -rw-rw-r-- 1 www-data www-data 2932 Sep 24 2013 wp-cron.php drwxrwxr-x 12 www-data www-data 4096 Apr 14 15:08 wp-includes -rw-rw-r-- 1 www-data www-data 2380 Oct 24 2013 wp-links-opml.php -rw-rw-r-- 1 www-data www-data 2359 Oct 24 2013 wp-load.php -rw-rw-r-- 1 www-data www-data 31909 Dec 3 15:12 wp-login.php -rw-rw-r-- 1 www-data www-data 8235 Nov 13 06:58 wp-mail.php -rw-rw-r-- 1 www-data www-data 10880 Nov 4 19:24 wp-settings.php -rw-rw-r-- 1 www-data www-data 25665 Nov 12 22:23 wp-signup.php -rw-rw-r-- 1 www-data www-data 4026 Oct 24 2013 wp-trackback.php -rw-rw-r-- 1 www-data www-data 3015 Oct 24 2013 xmlrpc.php What can I do now? Any suggestions would be helpful.
2 Answers
Do "chmod -R 755 wpfolder"
Thanks Marinos,

That seems to get me closer. Now I get just this message instead:

Unpacking the update…

Could not create directory.

Installation Failed
Have another answer? Share your knowledge.