I was just following this tutorial, I did exactly like he did from 02:30 to 03:30: added a folder in /wp-content/themes/mytheme
, inside mytheme added a style.css and index.php. When I went to dashboard it wasn't added automatically so I tried to upload the theme.zip manually. Now I'm getting the error message "Could not create directory". I already set chmod -R 777
to wordpress folder but still having this.
The same error is going on on any operation I do that involves writing data to /var/www/html/wordpress
like updating. I already tried what has been suggested here, tried also to gpasswd -a www-data sudo
and nothing... I have no idea now what to do.
Output of ls -la
:
lrwxrwxrwx 1 fabio www-data 20 Jan 4 16:45 wordpress -> /usr/share/wordpress
Output of ls -ld /usr/share/wordpress
:
drwxrwxrwx 5 www-data root 4096 Jan 8 15:46 /usr/share/wordpress
Output of ls -l /usr/share/wordpress
:
total 184
-rw-r--r-- 1 root root 418 Set 24 2013 index.php
-rw-r--r-- 1 root root 19930 Jan 2 01:48 license.txt
-rw-r--r-- 1 root root 7360 Dez 10 08:56 readme.html
-rw-r--r-- 1 root root 5035 Out 6 18:56 wp-activate.php
drwxrwxrwx 9 www-data root 4096 Jan 8 15:28 wp-admin
-rw-r--r-- 1 root root 271 Jan 8 2012 wp-blog-header.php
-rw-r--r-- 1 root root 1369 Out 3 11:47 wp-comments-post.php
-rwxrwxrwx 1 www-data root 2381 Abr 9 2014 wp-config.php
-rw-r--r-- 1 root root 2853 Dez 16 07:58 wp-config-sample.php
drwxrwxrwx 5 www-data root 4096 Jan 4 16:41 wp-content
-rw-r--r-- 1 root root 3286 Mai 24 2015 wp-cron.php
drwxrwxrwx 16 www-data root 12288 Jan 8 15:29 wp-includes
-rw-r--r-- 1 root root 2380 Out 24 2013 wp-links-opml.php
-rw-r--r-- 1 root root 3316 Nov 5 21:59 wp-load.php
-rw-r--r-- 1 root root 33770 Dez 21 01:30 wp-login.php
-rw-r--r-- 1 root root 7887 Out 6 11:07 wp-mail.php
-rw-r--r-- 1 root root 13021 Nov 20 05:24 wp-settings.php
-rw-r--r-- 1 root root 28594 Out 30 06:52 wp-signup.php
-rw-r--r-- 1 root root 4035 Nov 30 2014 wp-trackback.php
-rw-r--r-- 1 root root 3061 Out 2 19:46 xmlrpc.php
chmod
does not follow symlinks by default. What's the output fromls -ld /usr/share/wordpress
and ls-l /usr/share/wordpress
? Also, what's the exact error message you are getting? Permission denied?ls -ld /usr/share/wordpress
: drwxrwxrwx 5 www-data root 4096 Jan 8 15:46 /usr/share/wordpress output ofls -l
pastebin.com/qzE18Hwz