Code: Select all
$dirname = dirname(__FILE__);
session_set_cookie_params(0 , '/', $_SERVER['HTTP_HOST']);
session_save_path($dirname.'/tmp/cache');
Code: Select all
$dirname = dirname(__FILE__);
session_set_cookie_params(0 , '/', $_SERVER['HTTP_HOST']);
session_save_path($dirname.'/tmp/cache');
Active debug in config.php and look in your server logslarss wrote: Setup worked fine locally, I did a mysql backup and moved both that and CMSMS to the new host. I then updated the config.php to match the new paths and data source. I currently get stuck at the admin loop, where if I enter bad credentials it will give me the "Username or password incorrect" error, but will show the same login again with good credentials. I checked that cookies and sessions are working on my host. The main index.php comes up blank, but as I said the admin login seems to successfully query the database, and fail from there. Any advice as to where to start checking? I've added the following to my include.php, but it didn't fix the issue:
This is my first deployment off my home server, onto an IIS host elsewhere; so I'm hoping I missed something simple.Code: Select all
$dirname = dirname(__FILE__); session_set_cookie_params(0 , '/', $_SERVER['HTTP_HOST']); session_save_path($dirname.'/tmp/cache');
Run install/index.php and look for errors. Uncheck create DB tables and sample contents in step 5 (about I think)kanjigirl wrote: When I try to login, the login page just refreshes, nothing else.
The choice of a non Windows hosting ?-)larss wrote: ... so I'm hoping I missed something simple.