Page 1 of 1
[solved] Cant login after Migration to new location
Posted: Fri Feb 27, 2009 3:46 pm
by superstoffe
I just migrated a locally (MAMP) installed CMSms 1.5.1 to another server (running win 2000 with apache and mysql). But now when we're done none of the graphics showin and I Cant login to Adminpanel.
When I login it starts loading and shortly after just goes back to the login page. When trying it with a none existing login it comes back as invalid. So the connection/validation must be ok. It just wont get me to the adminpanel.
- the database was exported and imported like you're supposed to
- the paths are changed to the supposed right one (all of them) where root's
http://www.domain.com/V2 for example.
- the permissions should be right
Anyone who might know whats wrong? Sort of desperate here :/
Re: Cant login after Migration to new location
Posted: Fri Feb 27, 2009 5:58 pm
by streever
check the config file
probably it's got one path incorrect
also check error log in PHP.
can you post latest errors?
thx
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 6:53 am
by superstoffe
Hi streever,
Sure thing I'll take a look and come back to you. Thanks for your time!
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 8:25 am
by superstoffe
I tried putting the install folder back in there.. and when doing so it returns:
"Session not working, you have problem with some modules and functionality! Ask your provider, exiting!"
.. when browsing to:
www.domain.com/V2/install/
And here comes a snippet out of the Apache log:
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: include_once(class.mailEncryptor.php) [function.include-once]: failed to open stream: No such file or directory in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: include_once() [function.include]: Failed opening 'class.mailEncryptor.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Fatal error: Class 'MailEncryptor' not found in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 2
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
[Fri Feb 27 14:41:48 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 14:43:04 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:43:04 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: include_once(class.mailEncryptor.php) [function.include-once]: failed to open stream: No such file or directory in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: include_once() [function.include]: Failed opening 'class.mailEncryptor.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Fatal error: Class 'MailEncryptor' not found in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 2
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
and one more..
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/uploads/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:15:06 2009] [error] [client 0.0.0.0] PHP Warning: Parameter dateformat is not known... dropped in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\misc.functions.php on line 1347
[Fri Feb 27 15:15:06 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 8:31 am
by superstoffe
To add is that we have had a older version of CMS running, and still do, one directory down. So it have worked before. So the question is why it doesnt now. If the version differ that much.. or if theres just astupid misstake.
Either way Im lost :p
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 8:32 am
by superstoffe
I tried putting the install folder back in there.. and when doing so it returns:
"Session not working, you have problem with some modules and functionality! Ask your provider, exiting!"
.. when browsing to:
www.domain.com/V2/install/
And here comes a snippet out of the Apache log:
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: include_once(class.mailEncryptor.php) [function.include-once]: failed to open stream: No such file or directory in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: include_once() [function.include]: Failed opening 'class.mailEncryptor.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Fatal error: Class 'MailEncryptor' not found in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 2
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:41:48 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
[Fri Feb 27 14:41:48 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 14:43:04 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:43:04 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: include_once(class.mailEncryptor.php) [function.include-once]: failed to open stream: No such file or directory in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: include_once() [function.include]: Failed opening 'class.mailEncryptor.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 1
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Fatal error: Class 'MailEncryptor' not found in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\content.functions.php(857) : eval()'d code on line 2
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Fri Feb 27 14:43:23 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload) in Unknown on line 0
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 8:33 am
by superstoffe
and one more..
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/uploads/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:53 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:13:54 2009] [alert] [client 0.0.0.0] C:/Program/Apache Software Foundation/Apache2.2/htdocs/V2/images/.htaccess: order not allowed here, referer:
http://www.kph.se/v2/
[Fri Feb 27 15:15:06 2009] [error] [client 0.0.0.0] PHP Warning: Parameter dateformat is not known... dropped in C:\\Program\\Apache Software Foundation\\Apache2.2\\htdocs\\V2\\lib\\misc.functions.php on line 1347
[Fri Feb 27 15:15:06 2009] [error] [client 0.0.0.0] PHP Warning: Unknown: open(C:\\DOCUME~1\\ADMINI~1.KPH\\LOKALA~1\\Temp\\php\\upload\\sess_f7nfi6c0jqgp86gbubjtk5mkc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 8:46 am
by superstoffe
In debug mode I get this on the admin login page:
Warning: Unknown: open(C:\DOCUME~1\ADMINI~1.KPH\LOKALA~1\Temp\php\upload\sess_qiblta3c4aqag3k7me3bsvkpc6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\ADMINI~1.KPH\LOKALA~1\Temp\php\upload) in Unknown on line 0
After clicking through the debug mode I actually get in. I will update as I go.
Re: Cant login after Migration to new location
Posted: Mon Mar 02, 2009 10:36 am
by superstoffe
Solved.
For the images it was a simple permission miss by myself.
Then for the PHP error it was set to write to a local folder, that a webuser obviosuly didnt have permission to. That was changed to apaches own temp folder instead and now i works just fine.