Author Topic: error: 500 failed to open stream: Permission denied in ... problem  (Read 7712 times)

kostashania

  • Newbie
  • *
  • Posts: 12
    • View Profile
Hi,
I have installed opengoo and working fine a few months ago. Hosted in hostoso and I didn't have problems. Yesterday I "played" with some other installations to different folders than opengoo's but now I get an error while trying to upload or create or delete files (error: 500 Internal Server Error)... :( please help!

I got this error at the log (application/controllers/FilesController.class.php)
Session "default" started at 2010-01-20T18:35:30+0000
#1 ERROR: Error: fopen(./tmp/848699275) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in '/home/xxxxxx/public_html/office/application/controllers/FilesController.class.php' on line 641 (error code: 2)
#2 ERROR: Error: fclose(): supplied argument is not a valid stream resource in '/home/xxxxxx/public_html/office/application/controllers/FilesController.class.php' on line 643 (error code: 2)
#3 ERROR: Error: unlink(./tmp/848699275) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in '/home/xxxxxx/public_html/office/application/controllers/FilesController.class.php' on line 667 (error code: 2)
Time since start: 0.570873975754 seconds

kostashania

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: error: 500 failed to open stream: Permission denied in ... problem
« Reply #1 on: January 20, 2010, 06:49:22 pm »
now I realize that even if I get this error, the file is uploaded but with noname and it apears after a few minutes!
something is wrong with the /tmp directory maybe?!..\

kostashania

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: error: 500 failed to open stream: Permission denied in ... problem
« Reply #2 on: January 21, 2010, 07:34:40 am »
temporary solution is to give 777 permission to /tmp /upload e.t.c. .... but it is not the right solution ...

kostashania

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: error: 500 failed to open stream: Permission denied in ... problem
« Reply #3 on: January 21, 2010, 08:28:44 am »
php info of opengoo's folder

mogliii

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: error: 500 failed to open stream: Permission denied in ... problem
« Reply #4 on: May 07, 2010, 07:15:09 am »
Just to report. I had a similar problem (Feng office 1.6.2)
I couldnt upload or modify files.

log.php
Code: [Select]
Session "default" started at 2010-05-07T09:48:19+0000
#1 ERROR: Error: fopen(./tmp/2014622930) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in '/var/www/opengoo16b/application/controllers/FilesController.class.php' on line 637 (error code: 2)
#2 ERROR: Error: fputs(): supplied argument is not a valid stream resource in '/var/www/opengoo16b/application/controllers/FilesController.class.php' on line 638 (error code: 2)
#3 ERROR: Error: fclose(): supplied argument is not a valid stream resource in '/var/www/opengoo16b/application/controllers/FilesController.class.php' on line 639 (error code: 2)
#4 ERROR: Error: unlink(./tmp/2014622930) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in '/var/www/opengoo16b/application/controllers/FilesController.class.php' on line 662 (error code: 2)
Time since start: 0.136000156403 seconds

Then I created a ..../opengoo16b/tmp folder with 755 permission for the apache user, the error changed to

Code: [Select]
Session "default" started at 2010-05-07T10:02:28+0000
#1 ERROR: Error: copy(/var/www/opengoo16b/tmp/og_1273226534_597716) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in '/var/www/opengoo16b/application/controllers/FilesController.class.php' on line 481 (error code: 2)
Time since start: 0.135999917984 seconds

The problem was, that in .../opengoo16b/upload two orphant folders were present. After deleting these, upload works again.