Problem with page layout

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
PeterJ
Posts: 8
Joined: Thu 11. Dec 2003, 21:18

Problem with page layout

Post by PeterJ »

When I try and update the page layout, I am getting the following

Warning: fopen("/usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_conf/conf.pagelayout.inc.php", "w+b") - Permission denied in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php on line 713

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php:713) in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_act/act_pagelayout.php on line 144

Any ideas guys - this is a totally fresh install

Thanks!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: Problem with page layout

Post by DeXXus »

PeterJ wrote:When I try and update the page layout, I am getting the following

Warning: fopen("/usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_conf/conf.pagelayout.inc.php", "w+b") - Permission denied in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php on line 713

Any ideas guys - this is a totally fresh install

Thanks!
File permissions seem incorrect for "/include/inc_conf/" directory. Script cannot write to "conf.pagelayout.inc.php" on line 713 using this function:

Code: Select all

function write_textfile($filename, $text) {
	if($fp = fopen($filename, "w+b")) {;
		fwrite($fp, $text);
		fclose($fp);
		return true;	
	} else {
		return false;
	}
}
Check chmod settings as per:
http://www.phpwcms.de/index.php?id=10,0,0,1,0,0

Code: Select all

you have to check access rights for special files and folders.


1) DIR   phpwcms_tmp/thumb_list                    777
2) DIR   phpwcms_tmp/thumb_preview                 777
3) DIR   phpwcms_ftp                               755
4) DIR   phpwcms_filestorage                       777
5) DIR   content/images                            777

6) FILE  setup/setup.conf.inc.php                  666
7) FILE  phpwcms_template/inc_css/frontend.css     666
8) FILE  include/inc_conf/conf.pagelayout.inc.php  666


All other files listed above can set to 644, directories to 755. Sometimes it can help to set mode to 766 for the following directories: phpwcms_tmp, phpwcms_template, phpwcms_ftptakeover, inc_css, content. If you have further access problems try to set all files and directories to 777 (not recommend).
Post Reply