PHP5 and QuickCMS. Problem with sessions

brinkie

No avatar

2008-05-22 16:43

Hi,

i've been using Quick.CMS and Quick.cart on servers running php4.x without any problems. Now i've got a new server and it has php5 installed (Apache2, FreeBSD 5.x and PHP5). Quick.CMS is crashing (latest version installed, 2.1) with the following error message (domain 'website.nl' is a fake domain):

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /usr/home/admin/domains/website.nl/public_html/admin.php on line 11

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /usr/home/admin/domains/website.nl/public_html/admin.php on line 11

Since i'm working on an automatic installer for Quick.CMS i'm really not happy with this. Any suggestions on how to fix this? It should be a general fix, without fixing all installations by hand..

Note: i've tryed several changes in the php.ini, but nothing worked.

» Quick.Cms v2.x

treewood (OpenSolution)

Avatar: treewood

2008-05-23 08:43

brinkie try this
1. Create directory files/sessions/ and give to this directory chmod 777
2. Edit file config/general.php and put this in second line:
ini_set( 'session.save_path', 'files/sessions/' );

brinkie

No avatar

2008-05-26 20:32

Thanks! It really did the trick. As i sayd i'm working on some sort of automatic installation for Quick.CMS. People who sign up for hosting with me get it installed automaticly, and if they want to have a better version, they can buy it from you :-)

brinkie

No avatar

2008-05-26 21:19

Btw... it spits another error to me, when changing the settings to (for example) the WYSIWYG editor:

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/admin/domains/website.nl/public_html/actions_admin/settings.php:1) in /usr/home/admin/domains/website.nl/public_html/actions_admin/settings.php on line 6

Is this a wrong configuration from my site (i did chmod all files correctly) or a php5-issue?

treewood (OpenSolution)

Avatar: treewood

2008-05-27 08:16

check actions_admin/settings.php i think you have white space in first line. Maybe you edited this file but by not utf8 support editor?

Back to top
about us | contact