Page 1 of 1

failed to open stream: Permission denied

Posted: Fri Jun 13, 2008 8:33 am
by devilslayer
Hello,

I host a website for a local sailing club and I have just noticed that at the top of the site when you view it it is displaying the error below. 

Code: Select all


Warning: fopen(/home/hawley/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 549

Warning: fwrite(): supplied argument is not a valid stream resource in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 550

Warning: fclose(): supplied argument is not a valid stream resource in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 551
The Sailing Club has a new editor, with enough knowledge to be dangerous, and I foolishly gave him full access to the website.

After all it is there website, not mine.  I just host it for them, but end up being FREE Tech support when things go wrong.

Any reasons why this has happened would be appreciated.

Many Thanks

Dave

Re: failed to open stream: Permission denied

Posted: Fri Jun 13, 2008 9:24 am
by nuno
you have to give 777 permissions in folders (temp , cache and templates_c)

Re: failed to open stream: Permission denied

Posted: Sun Jun 22, 2008 5:43 pm
by histman
I am having the same problem.

I have checked that tmp, cache and templates_c are set to chmod 777.
I am using version 1.3 of CMSMS

My ISP (34SP.com) operates my account in Safe mode but offered a script called php.cgi to enable CMS systems to run more efficiently within Safe mode.

I have used this script with Drupal with no problems (and it got rid of Safe mode messages).

However once I installed php.cgi the Safe mode message disappeared but a message similar to the above appeared.

Any ideas?

BAT
Melbourne Derbyshire UK

PS
I have now got rid of the error messages by deleting php.cgi from the cgi-bin and by deleting the .htaccess from the root directory. Though Safe mode warnings have re-appeared.

Re: failed to open stream: Permission denied

Posted: Mon Jun 23, 2008 7:38 pm
by histman
I have had some help from my ISP.

The thread can be found here:

http://www.forums.34sp.com/viewtopic.php?p=57682#57682

Still not resolved yet, though.