Report this

What is the reason for this report?

How do you setup proper group and user permissions on Centos for multiple WordPress installs?

Posted on October 24, 2016

I have a CentOS box running with multiple WordPress installs. Here are the steps I followed to setup each directory and install.

  1. Created folder within /var/www/{websiteurl}
  2. Created config inside httpd for multiple domains
  3. Created a new user for each website and added them to a group called clients
  4. chown newuser:newuser /var/www/[userwebsite folder]
  5. Confirmed all permissions were set to meet WordPress hardening requirements. https://codex.wordpress.org/Hardening_WordPress 644 for files and 755 for directories

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.