By morleo
Hi, I can’t create any folder in /var/www/ directory, via my new Wordpress user
Here is permissions of that user.
-rw-rwxr-- 1 wp-user wp-user 418 Sep 24 2013 index.php -rw-rwxr-- 1 wp-user wp-user 19930 Apr 9 19:50 license.txt -rw-rwxr-- 1 wp-user wp-user 7194 Aug 6 14:27 readme.html -rw-rwxr-- 1 wp-user wp-user 4896 Dec 24 2013 wp-activate.php drwxrwxr-x 9 wp-user wp-user 4096 Aug 6 14:41 wp-admin -rw-rwxr-- 1 wp-user wp-user 271 Jan 8 2012 wp-blog-header.php -rw-rwxr-- 1 wp-user wp-user 4818 Feb 18 16:45 wp-comments-post.php -rw-rwxr-- 1 wp-user wp-user 3591 Aug 11 15:32 wp-config.php drwxrwxr-x 4 wp-user wp-user 4096 Aug 6 14:41 wp-content -rw-rwxr-- 1 wp-user wp-user 2932 Sep 24 2013 wp-cron.php drwxrwxr-x 12 wp-user wp-user 4096 Aug 6 14:41 wp-includes -rw-rwxr-- 1 wp-user wp-user 2380 Oct 24 2013 wp-links-opml.php -rw-rwxr-- 1 wp-user wp-user 2359 Oct 24 2013 wp-load.php -rw-rwxr-- 1 wp-user wp-user 33407 Aug 6 02:37 wp-login.php -rw-rwxr-- 1 wp-user wp-user 8235 Nov 13 2013 wp-mail.php -rw-rwxr-- 1 wp-user wp-user 11070 Apr 7 16:15 wp-settings.php -rw-rwxr-- 1 wp-user wp-user 25665 Nov 12 2013 wp-signup.php -rw-rwxr-- 1 wp-user wp-user 4026 Oct 24 2013 wp-trackback.php -rw-rwxr-- 1 wp-user wp-user 3032 Feb 9 2014 xmlrpc.php
What am I doing wrong?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What are the permissions on the folder itself, not the files in it?
ls -la /var/www/
It seems like your user probably owns all the files in the folder, but not the folder itself. To fix the ownership of the folder, run:
sudo chown -R wp-user:www-data /var/www/
What am I doing wrong?
Installing wordpress not as it should be done. http://codex.wordpress.org/Installing_WordPress
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.