1

What are the best permissions for a Wordpess install on Ubuntu managed by Webmin? Currently, root owns all the files and all of the files are also set to the root group. I'm using the virtual server GUI on Webmin to manage multiple virtual sites from this server. I'm wary of making permissions changes on a live server, and I'm worried that if I follow these instructions I might do something like deny Apache the right to access the Wordpress files.

Right now I just have /wp-content set to 777 to make plugin installs work, but I know this is not a good idea because any system user can edit the data. Are the permissions I linked to correct and should they work?

1 Answer 1

2

You should be using a web group and user for this. Own the files to the web user and group and then change the permissions to something appropriate; 770 at the minimum.

Your apache process will be running as a web user of some type, find out what that user is and own the files to that user/group. Normally your web stuff is set 755 generally with specific permissions set on "special" or configuration files.

Do this out of hours and watch your http/php logs while you test out the configuration. There are standard permissions that the wordpress install will use. Look around and see if you can find them.

You could also install a new copy of Wordpress in a sub folder with the same config file as your current, get that running and then properly under a proper user/group and then move it into production after you have it working. This will save time and effort on changing your file permissions by hand.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .