In the http://forum.cmsmadesimple.org/index.php/topic,18525.msg93994.html#msg93994 thread, I've been trying to get 1.2.3 installed on my hosting system which is running PHP 5.2.5 and Apache with Server API: CGI (phpSUEXEC).
My problem is with the CMSMS install script where it fails to see the session save_path setting. Specifically, www/index.php does see the save_path but www/install/index.php does not.
I have successfully installed CMSMS on several single hosting systems, but this problem seesm to be related to my hoster's systems configuration - which is running SUEXEC for each hosted website.
I have been able to track down the failure to lost session data after the header() call within redirect() of misc.functions.php
I have created simple scripts to reproduce the problem:
Code: Select all
<?php
# t1.php similar to .../public_html/index.php
$dirname = dirname(__FILE__);
session_start();
$_SESSION['foo'] = "bar";
/*
$sesfile = session_save_path();
if(is_writable($sesfile))
die ("t1: session file '$sesfile' is writeable"); // always TRUE, works just fine
else
die ("t1: session file '$sesfile' is not writeable");
*/
require_once($dirname.'/lib/misc.functions.php'); // pickup the 'redirect()' method
redirect('install/t2.php');
?>
Code: Select all
<?php
# t2.php similar to .../public_html/install/index.php
session_start(); // added this call to make 'foo' work
echo $_SESSION['foo'];
$sesfile = session_save_path();
if(is_writable($sesfile))
die ("<p>t2: session file '$sesfile' is writeable");
else
die ("<p>t2: session file '$sesfile' is not writeable"); // always TRUE !
?>
I'm no PHP guru and having spent a week trying to resolve this, I was hoping for some new suggestions. Other proposed solution from the web have not worked.
And since redirect() is used by many other CMSMS scripts, I'm afraid that other modules may not function properly.
Thank you for all suggestions.
-Drew