CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problems with file permissions
Pages: [1]

Author Topic: Problems with file permissions  (Read 1982 times)

sulav

  • Guest
Problems with file permissions
July 22, 2010, 11:20:29 am
Hi,

I'm trying to install civi 3.1.5 on Drupal(latest), once I install and run the install script and everything, when I try to go to my website, I get an error message saying

"Error: Could not create directory: /var/www/vhosts/example.com/httpdocs/sites/default/files/civicrm/templates_c.

If you have moved an existing CiviCRM installation from one location or server to another there are several steps you will need to follow. They are detailed on this CiviCRM wiki page - Moving an Existing Installation to a New Server or Location. A fix for the specific problem that caused this error message to be displayed is to set the value of the config_backend column in the civicrm_domain table to NULL. However we strongly recommend that you review and follow all the steps in that document.
"

So, I try to set the permissions of the civicrm folder to 777 from 755 (chmod -R a+rwx civicrm) and i get an error message

"chmod: changing permissions of 'civicrm': Operation not permitted"

so, I try sudoing it, ;(sudo chmod -R a+rwx civicrm) and I get the error message

"user is not in the sudoers file. This incident will be reported."

What can I do? Please Help

thanks in advance

-Sulav


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problems with file permissions
July 22, 2010, 11:27:22 am
This has nothing to do with Drupal nor CiviCRM actually. You will need to ask your host how you can set permissions for that directory. Once you do that, CiviCRM should work fine.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Problems with file permissions
July 22, 2010, 11:53:16 am
Have you used

chgrp

or

chown

Which could help because the file/directory might not belong to you but you might be able to change the owner/user group then you can chmod


Just a thought

Usually you can't sudo if you use SSH on shared hosts such as dreamhost

doctorfalken

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Problems with file permissions
July 28, 2010, 12:27:21 am
Quote from: sulav on July 22, 2010, 11:20:29 am
Hi,

I'm trying to install civi 3.1.5 on Drupal(latest), once I install and run the install script and everything, when I try to go to my website, I get an error message saying

"Error: Could not create directory: /var/www/vhosts/example.com/httpdocs/sites/default/files/civicrm/templates_c.

If you have moved an existing CiviCRM installation from one location or server to another there are several steps you will need to follow. They are detailed on this CiviCRM wiki page - Moving an Existing Installation to a New Server or Location. A fix for the specific problem that caused this error message to be displayed is to set the value of the config_backend column in the civicrm_domain table to NULL. However we strongly recommend that you review and follow all the steps in that document.
"

So, I try to set the permissions of the civicrm folder to 777 from 755 (chmod -R a+rwx civicrm) and i get an error message

"chmod: changing permissions of 'civicrm': Operation not permitted"

so, I try sudoing it, ;(sudo chmod -R a+rwx civicrm) and I get the error message

"user is not in the sudoers file. This incident will be reported."

What can I do? Please Help

thanks in advance

-Sulav



Hello,

Try changing "default" directory permissions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problems with file permissions

This forum was archived on 2017-11-26.