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

Im attempting to install Drupal 7 on a VM (CentOS 6.4 x64). I have copied all the files from the tar.gz to /var/www/html (after installing Apache ). I managed to solve most of the PHP issues but it's still complaining about some permissions problems.

Specifically:

The directory sites/default/files is not writable. An automated attempt to create 
   this directory failed, possibly due to a permissions problem. 

I set the whole Drupal install to chown -R apache:apache and the path in question is set via chmod -R oug+rw sites.

It's also complaining about:

The Drupal installer requires write permissions to ./sites/default/settings.php 
   during the installation process. 

The file is set to 666 and the path is wide open.

Clearly I'm missing something obvious here. Suggestions?

share|improve this question
    
Are you sure PHP is running as apache? It might not be if you are using suphp, or several other methods to launch php. –  Zoredache Sep 18 '13 at 17:38
    
I installed it using yum install php. I don't see any account(s) for it in \etc\passwd. Somewhere else to check? –  ethrbunny Sep 18 '13 at 17:40
add comment

1 Answer

Turns out that it's SELinux being helpful.

To fix:

setenforce 0
do the installation
setenforce 1
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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