Server moved. No login to Admin Panel.

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Server moved. No login to Admin Panel.

Post by Stoffel84 »

Hi Guys,

first - sorry for my bad english.

I have changed my server and now i have problems to login in the admin panel.

When ich open the loginsite this error is shown:
Warning: Unknown(): open(/var/lib/php/sess_5948f01fea736816eb996ccadece27dd, O_RDWR) failed: Permission denied (13) 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 (/var/lib/php) in Unknown on line 0

Any ideas?

Thanks for help!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Server moved. No login to Admin Panel.

Post by RonnyK »

Did you change the settings to reflect the new path in config.php. If you change server, the domain and path probably changed, you should change this in the config.php as this file is filled during install with the settings of that moment.

Ronny
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

Hi Ronny,

i have edited the config.php file. I guess it's a php problem on this server!
It's a virtual server with plesk - but i haven't any idea how to setup the php installation.
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

A few more facts about the error:

When i navigate to the cms site no error is visible.
When i try to open the admin panel the error ist shown.
When i then renavigate to the cms site the error is then also shown on the site.

I have changed the session.save_path variable to the servers tmp directory (chmod 777).

A new cmsms installation (a little test - no migration) in another directory runs without any error.

???
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Server moved. No login to Admin Panel.

Post by tsw »

double check all paths in config.php (use the clean installation config.php as a quide) and clear cmsms cache

hope this helps
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

mhh..

i have now deleted the fresh installation and try again to install a fresh cmsms on the first install page i get a yellow dot at:
Checking if sessions are enabled

Although the PHP support for sessions is not mandatory, it is highly recommended. Logins and other things may slow down and you may have difficulty with some addon functionality without this capability.
The checking session functions test above is green....

I'm really confused... >:(
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

I guess php is misconfigurated.

My phpinfo is:
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

ERROR FOUND!

The session file which is created by apache has the wrong rights.
When the file is created it has CHMOD 200 (only writable by owner not readable by owner) - cmsms isn't able to read the session.
When i manually change chmod 600 it works fine.

Any ideas how to setup apache?

Thanks!
Stoffel84
Forum Members
Forum Members
Posts: 69
Joined: Sun Apr 09, 2006 3:33 pm

Re: Server moved. No login to Admin Panel.

Post by Stoffel84 »

Finally to fix that problem i like to modify chmod rights with the php command chmod().
Where in cmsms sessions will be created?
Locked

Return to “[locked] Installation, Setup and Upgrade”