I recently changed my hosting to another provider that allows a main domain, and then up to four others to be added (which then can be accessed directly).

Example of set up.

/ (root directory) hosts www.domain1.com (main domain)
/domain2 (subdirectory) hosts www.domain2.com (added on domain)

Word Press is installed on the root (/) domain for www.domain1.com (existing site).

Drupal is installed in the /domain2 directory for the www.domain2.com domain (transferred site).

The site - www.domain2.com - works in displaying the site, however there are some errors that are occuring, one of the more annoying is the permission denied error. This mainly appears to be an issue for files (images in particular).

I've installed the image.module, and when I go to administer > settings > image, I get the following error above the administration window:

warning: is_dir(): Stat failed for files/images (errno=13 - Permission denied) in /home/public_html/domain2/includes/file.inc on line 85.
warning: mkdir(files/images): Permission denied in /home/public_html/domain2/includes/file.inc on line 86.
warning: is_dir(): Stat failed for files/images/temp (errno=13 - Permission denied) in /home/public_html/domain2/includes/file.inc on line 85.
warning: mkdir(files/images/temp): Permission denied in /home/public_html/domain2/includes/file.inc on line 86.

In the image administration, I get the following error reported:


    * The directory files/images does not exist.
    * The directory files/images/temp does not exist.

The issue is that both directories exist and have the right (??) permissions set. (I put the quetsion mark there, as I've tried a combination of permissions: 644, 755, 766, & 777.)

I'm not sure if this is enough information, but any ideas on what might be causing this, and how I might remove this problem.

Please note, the site functions, but I can't upload images, or have them incorporated into a node through Drupal.

Comments

styro’s picture

...is that if you still can't get those directories working with 777 (note you have to set it on the subdirectories as well) permissions, then chances are that the problem lies with the paths themselves.

Have you double checked the directory names and locations?

Is files a subdirectory of your root folder? Are you using public or private downloads?