Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Do I need to set the permissions to 775 or higher? At the moment, I can't do this, as apache runs as 'nobody'.

I use WHM/CPanel to administer the server.

share|improve this question

closed as off-topic by HopelessN00b Jan 13 at 20:59

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 13 at 20:59

3 Answers 3

If you set your server to use SuPHP and SuExec using EasyApache, that will secure the PHP. You then wouldn't need global permissions for WordPress to write files as WordPress would be running as the cPanel user, thus you can set file permissions appropriately.

share|improve this answer

I run a small collection of Wordpress installs on a VPS (granted, no WHM/CPanel, I do it the old fashioned way). Do yourself a favor and learn how to do it via FastCGI. You can then isolate your WordPress installs to individual users and keep the directory permissions at 755 (or even tighter). The WordPress directories can then be owned by the same user that WordPress runs as and you'll not have to worry about odd permissions issues.

It's also a more secure method overall. Separation of privileges between unrelated applications is a wonderful concept.

share|improve this answer
    
Usually cPanel uses suPHP for privilege separation, it is a wonderful solution for that problem, because it runs PHP scripts as an account owner user. –  Gabor Garami May 5 '12 at 21:41

chown nobody.nogroup <directory wordpress needs to write to>

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.