File system permission error while installing drupal modules

17,228

Solution 1

There is an issue with shared hosts and temp folders...if you want the background you can read this:

http://drupal.org/node/1008328

in the meantime try changing your tmp folder to be relative to your sites file root:

sites/default/files/temp

Solution 2

The quickest way to get a handle on this issue is to navigate via your web browser to:

/admin/config/media/file-system

You'll probably see an error there about not being able to write to the /tmp directory. To fix this, you can create a temp directory under site's root and set permissions appropriately.

1) Create a directory here [drupal_installed_here]/tmp

2) Navigate via your web browser to /admin/config/media/file-system and change the temp directory to be:

tmp instead of /tmp (no leading slash)

3) Try this command:

chmod 775 [drupal_istalled_here]/tmp

and refresh the /admin/config/media/file-system page

3) If that does not work, try this command:

chmod 777 /home/quickstart/websites/tmp

and refresh the /admin/config/media/file-system page

The last command opens up your temp directory permissions a lot (rwxrwxrwx), but sometimes that's necessary to get your site working on shared hosts.

Share:
17,228
user506259
Author by

user506259

Updated on June 05, 2022

Comments

  • user506259
    user506259 almost 2 years

    When I try to install new modules to drupal 7 via "Install new module" form, I get following error message.

    My Drupal 7 is installed with CPanel QuickInstall tool and hosted with HostGator shared hosting service. Any ideas how to solve this issue?