failed to open stream: Permission denied

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
devilslayer
Forum Members
Forum Members
Posts: 41
Joined: Sat Apr 23, 2005 11:38 pm

failed to open stream: Permission denied

Post 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
nuno

Re: failed to open stream: Permission denied

Post by nuno »

you have to give 777 permissions in folders (temp , cache and templates_c)
histman
New Member
New Member
Posts: 2
Joined: Sat Jun 21, 2008 1:31 pm

Re: failed to open stream: Permission denied

Post 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.
Last edited by histman on Mon Jun 23, 2008 7:36 pm, edited 1 time in total.
histman
New Member
New Member
Posts: 2
Joined: Sat Jun 21, 2008 1:31 pm

Re: failed to open stream: Permission denied

Post 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.
Post Reply

Return to “CMSMS Core”