chrismunden / cmsfromscratch

Automatically exported from code.google.com/p/cmsfromscratch
0 stars 0 forks source link

Error messages during initial set up #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have the following error messages while initially setting up passwords:
“Warning: fopen(settings.text) [function.fopen]: failed to open stream:
Permission denied in /home/mysite/public_html/cms-test/cms/settings.php on
line 40”

”Warning: fwrite(): supplied argument is not a valid stream resource in
/home/ mysite /public_html/cms-test/cms/settings.php on line 52”

”Warning: fclose(): supplied argument is not a valid stream resource in
/home/ mysite /public_html/cms-test/cms/settings.php on line 53”

Original issue reported on code.google.com by jstare...@gmail.com on 22 Apr 2008 at 2:02

GoogleCodeExporter commented 8 years ago
I have the same problem here. Is there anyway to fix it?

Original comment by tomf...@gmail.com on 26 Apr 2008 at 3:34

GoogleCodeExporter commented 8 years ago
I suspect this is to do with file/folder permissions.

Ideally, the CMS tries to save your settings in a file called "settings.text" 
in 2
folders above the cms folder, which will normally be outside the web root, so 
not
even browsable by the outside world. If it fails to do this, it tries to save
settings.text in the cms folder.

It seems like it's failing at both in this case. So check that PHP has write
permissions (CHMOD 755 is ideal, but 777 may be necessary!) in the folders I've
mentioned.

Original comment by designfr...@gmail.com on 6 Jun 2008 at 9:38

GoogleCodeExporter commented 8 years ago
Changing permissions work - but only on 777. Can I change it back to 755 after 
the initial setup?

Original comment by fran.car...@gmail.com on 7 Aug 2008 at 2:53

GoogleCodeExporter commented 8 years ago
Hi Fran. I can't answer that categorically. It's probably to do with what type 
of
user PHP is set up to be on your server, and that can vary. If you'd care to 
try it
out, please post back to the support forum at
http://scratchwebdesignforums.com/forums/index.php?showforum=18.

Cheers,
Ben

Original comment by ben.hunt...@gmail.com on 7 Aug 2008 at 5:53