Search code examples
drupaldrupal-7

Drupal 7 Install Error - The directory sites/default/files does not exist


I am attempting to install Drupal 7.34 on RHEL and I continue to run into issues with permissions on sites/default/files. I've searched all over for a solution, but nothing has helped.

Here are the steps I am taking (with root access):

In /var/www/html I execute: drush dl drupal to download Drupal.

I then follow Drupal's install instructions (from /var/www/html):

mv drupal-7.34/* ./
mv drupal-7.34/.htaccess ./
mv drupal-7.34/.gitignore ./
cp sites/default/default.settings.php sites/default/settings.php
chmod a+w sites/default/settings.php
chmod a+w sites/default
cd ..
chown -R apache:apache html

In the browser, I navigate to http://myhost/install.php. In the "Verify requirements" step of the install process I receive the following error:

The directory sites/default/files does not exist.

So, I take then take the following steps:

mkdir html/sites/default/files
chmod a+w html/sites/default/files
chown apache:apache html/sites/default/files

When I attempt the install process I now get the following error:

The directory sites/default/files is not writable.

What am I missing here? The sites/default/files directory exists and is writable. Any guidance is much appreciated.


Solution

  • The solution I applied was more of a work-around, but I ended up using Drush to handle the entire installation rather than using it to download Drupal and manually configuring it from there.