Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Cannot escape from login

Cannot escape from login

Locked

Views: 3,234

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
21 Aug 2007, 5:03 PM
#1
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Cannot escape from login

I've done a straightforward install, have changed nothing. I can get to the catalogue site ok but going to admin takes me to the login page - I enter the admin login user and pwd but it just takes me back to the login page.

I found a couple of other admin problems but none seemed to be the same as mine. (This must be something to do with my server as I also installed OSCommerce to try out and that had the same problem.)

Anyone got any ideas? My site is hosted so I cannot change the httpd config or php.ini but can change any files and add .htaccess files if necessary.

Thanks,
Tony.

21 Aug 2007, 5:37 PM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Cannot escape from login

Check all your permissions on the server and also check the PHP Session settings on the server. If you can't hold a session, you may have potential problems holding a login.

Can you login as a CUSTOMER (from the catalog side). If so, then the previous concept might not bee worth looking into, and you should look exclusively within the admin files and configuration themselves.

Make sure your PHP setting have the temp path set (to hold session data etc..). I found one time with another site that the temp path was not set correctly on a server, and as a result, the login would perform similar to what you are describing.

Mind you, that wasn't a Zen Cart site, but it may be worth looking into.

Testing login between customers and admins will at least give you a place to start narrowing down your issue.

21 Aug 2007, 6:02 PM
#3
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

econcepts:

Check all your permissions on the server and also check the PHP Session settings on the server. If you can't hold a session, you may have potential problems holding a login.

Can you login as a CUSTOMER (from the catalog side).

Thanks, econcepts. I am not able to log in as a customer either. How do I check the session settings? And what should I look for on the permissions side?

Cheers,
Tony.

21 Aug 2007, 6:24 PM
#4
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

I am not able to log in as a customer either
but the customer is created in the database

Also, just picked this up from the server php_info():

Session Support enabled
Registered save handlers files user

Directive LocalValue MasterValue
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 On On

21 Aug 2007, 6:27 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Cannot escape from login

The installer should have warned you about this one:

tonylinde:

session.use_trans_sid On On

It should be Off.

21 Aug 2007, 6:59 PM
#6
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

DrByte:

The installer should have warned you about this one:

Originally Posted by tonylinde
session.use_trans_sid On On

It should be Off.

Thanks, DrByte. I created a .htaccess file in the root zencart directory with the two lines:

php_value session.use_trans_sid 0
php_value register_globals 1

I thought that was supposed to fix it. Didn't work - logging in as customer just came up with the 'please log in' message again.

21 Aug 2007, 7:05 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Cannot escape from login

What version of PHP ?

21 Aug 2007, 7:13 PM
#8
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

DrByte:

What version of PHP ?

PHP Version 5.1.0RC1

T.

21 Aug 2007, 7:16 PM
#9
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

Seems I can add:

AddHandler custom-php .php .pcgi .phtml .inc .phtml~ .php~ .inc~ .html~
Action custom-php /cgi-sys/php4

to .htaccess to get php v4.x.x if that'd be better.

And can specify a separate php.ini file to override any of those if that helps.

21 Aug 2007, 8:01 PM
#10
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

tonylinde:

Seems I can add:

AddHandler custom-php .php .pcgi .phtml .inc .phtml~ .php~ .inc~ .html~
Action custom-php /cgi-sys/php4

That did it!!! Admin works too!

Looks like zen-cart doesn't work with PHP 5.1.0RC1.

Thanks, all,
T.

21 Aug 2007, 8:02 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Cannot escape from login

Some PHP5 releases had some session problems. That's why they're up to 5.2.3 now ... much better than an RC1
Glad you found your solution.

21 Aug 2007, 8:28 PM
#12
tonylinde avatar

tonylinde

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Cannot escape from login

DrByte:

Some PHP5 releases had some session problems. That's why they're up to 5.2.3 now ... much better than an RC1
Glad you found your solution.

Thanks, DrByte. I'll pass it on to the hosting company.

Cheers,
Tony.