I have a CentOS box running with multiple WordPress installs. Here are the steps I followed to setup each directory and install.
Now, however since making these changes from apache:apache owning all of the file my users can not upload to /wp-content/uploads. What changes do I need to make to make this happen? I would like to ensure the most amount of security, but also give my users the ability to upload files and install plugins. To patch the issue for now I chown apache:apache /var/www/[userwebsite]/public_html/wp-content/uploads/
Thanks for any suggestions or help you can provide.
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!
Hi!
One option to solve this issue would be chowning the uploads directories’ to apache:apache and adding your users to the apache group. This will allow Apache access only to the directories that it should write to while still allowing your users access to everything. However, this will require you to chmod the directories to 775 and the files to 664 in order to allow the members of the group that owns them (apache, as in the other users) to write to them.
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.