By andrew167255
WordPress 3.5 changes where media files are uploaded from blogs.dir to wp-content/uploads/sites/{site_id}. I have configured Multisite to use subdomains and the only way I have been able to allow WordPress to upload files (images) is to manually create the necessary folder structure and then to give 777 permissions.
$ chmod 777 /var/www/wp-content/uploads/sites/2 $ chmod 777 /var/www/wp-content/uploads/sites/3 etc.
This seems as though PHP does not have permissions to create/write files on my droplet. I’d obviously prefer my permissions to be 755. Any thoughts?
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!
@a.single.drop: What’s the output of these commands? <br><ol><li>ps wwaux | grep apache</li><li>stat /path/to/wp-content</li></ol>
Try adding the user that owns /var/www/wp-content/uploads to the www-data group and chmod uploads to 775: <br> <br>usermod -a -G www-data youruser <br>chmod 775 /var/www/wp-content/uploads
you need to chown your installation to the php user too. i.e. if your user is www-data and they’re a member of www-data you’d do <br>$chown -R www-data:www-data /var/www/wp-content/uploads/sites/ <br>
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.