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) »
  • fopen failed: permission denied
Pages: [1]

Author Topic: fopen failed: permission denied  (Read 7000 times)

critical15

  • Guest
fopen failed: permission denied
May 04, 2007, 10:43:40 pm
Hi folks,
I had a difficult installation, but finally got CiviCRM 1.7 on Drupal 5.1 almost working.
I had the famous "Permission Denied in File.php on line 114" error for a while, and then changed the Upload Directories fields (as suggested in http://drupal.org/node/108489#comment-207443):

> a blank Custom Templates field to "/home/content/[...]/html/drupal/files/civicrm/templates_c/"
> Custom Files to "/home/content/[...]/html/html/drupal/modules/civicrm/crm_docs/"
> Images to "/home/content/[...]/html/drupal/modules/civicrm/persist/contribute/"
> Temporary Files to "/home/content/f/c/e/fcend/html/drupal/modules/civicrm/upload/"

Now I'm almost errorless, except at CiviCRM > Administer CiviCRM, where I get these new errors:

Code: [Select]
    * warning: fopen(/home/content/f/c/e/fcend/html/drupal/modules/civicrm/upload/latest-version-cache.txt) [function.fopen]: failed to open stream: Permission denied in /home/content/f/c/e/fcend/html/drupal/modules/civicrm/CRM/Utils/VersionCheck.php on line 113.
    * warning: fwrite(): supplied argument is not a valid stream resource in /home/content/f/c/e/fcend/html/drupal/modules/civicrm/CRM/Utils/VersionCheck.php on line 114.
    * warning: fclose(): supplied argument is not a valid stream resource in /home/content/f/c/e/fcend/html/drupal/modules/civicrm/CRM/Utils/VersionCheck.php on line 115.


Are the paths I set the upload directories to wrong, or is this a different issue?  What should the upload paths be?

Thanks in advance people.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: fopen failed: permission denied
May 04, 2007, 11:57:39 pm
Hi,

1) First thing you need to ensure is, drupal/files has write permission.

2) Second, all the directories crm_docs, contribute, custom, upload ..etc should be under files/civicrm directory.

And this is what we recommend in the installation guide
http://wiki.civicrm.org/confluence/display/CRMDOC/Install+CiviCRM+1.7+for+Drupal (step 2)
« Last Edit: May 05, 2007, 12:03:14 am by Donald Lobo »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

westdr

  • Guest
Re: fopen failed: permission denied
July 04, 2007, 06:11:51 pm
Hey there, I'm still getting the same warning. I've done chmod 755 to all the folders in the files directory, but to no effect. I'm new to command line. Is chmod 755 correct?


    * warning: fopen(/latest-version-cache.txt) [function.fopen]: failed to open stream: Permission denied in /homepages/37/d191194063/htdocs/drupal-5.1/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 113.
    * warning: fwrite(): supplied argument is not a valid stream resource in /homepages/37/d191194063/htdocs/drupal-5.1/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 114.
    * warning: fclose(): supplied argument is not a valid stream resource in /homepages/37/d191194063/htdocs/drupal-5.1/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 115.


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: fopen failed: permission denied
July 05, 2007, 12:14:24 am
Quote from: westdr on July 04, 2007, 06:11:51 pm
Code: [Select]
    * warning: fopen(/latest-version-cache.txt) [function.fopen]: failed to open stream […]

Does it really say fopen(/latest-version-cache.txt)? If so, you have your paths wrong (as it’s obvious you shouldn’t be able to write to the root directory on the server). Please check the paths in Administer CiviCRM → Global Settings → Directories.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

westdr

  • Guest
Re: fopen failed: permission denied
July 05, 2007, 03:11:00 pm
Thanks. Not sure how, but I think an extra / at the end through everything off!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: fopen failed: permission denied
July 06, 2007, 05:26:59 am
Does it mean it’s fixed now, or are you still having the above problem?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • fopen failed: permission denied

This forum was archived on 2017-11-26.