Forums / Installing on a Mac Server / Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

Views: 34,071

Results 1 to 4 of 4
7 Feb 2014, 5:10 PM
#1
p3rryman avatar

p3rryman

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

I am really assuming this is a server setting somewhere, but I cannot seem to figure it out. I went through the whole migration process outlined here:

https://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server

And am unable to log in to the admin site. Not using SSL and I feel like both my configure.php files are in order. I ran the fix_cache_key.php file and that went fine. This forum post:

http://www.zen-cart.com/showthread.php?205269-Duplicate-entry-error-on-sessions-table-with-new-install-on-Mountain-Lion-Server

points to php's 'session.hash_function' and setting it in php.ini to 1, which I've done, but phpinfo reports this:

session.hash_function sha512 sha512

Just to see if I was going crazy I deleted the entire install on the new server, created a new DB, and did a fresh install, and am having the same problem. The only concern with zc_install was with the php version, but it was yellow and not red so I didn't worry about it.

I've tried with both Safari and Firefox on Mac, as well as Firefox and IE on PC just to make sure it wasn't a browser related problem.

I am also no receiving any sort of errors or warnings in the apache logs. Any help on this would be greatly appreciated!

Sean

7 Feb 2014, 5:14 PM
#2
p3rryman avatar

p3rryman

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

Re: Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

UPDATE: Just noticed that when I load the customer facing page, I get this at the bottom of the screen:

warning: an error occured, please refresh the page and try again

When I try and add something to the cart, moving to the user login page, I get a nice black error above the test that says:

whoops! your session has expired.

hoping this might help someone to know what is going on.

7 Feb 2014, 5:20 PM
#3
p3rryman avatar

p3rryman

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

Re: Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

SECOND EDIT: Might have found the problem. Mac OS X Server.app keeps an additional php.ini file in

/Library/Server/Web/Config/php/php.ini

and guess what line it has in it? session.hash_function = sha512

I replaced sha512 with 1 and restarted the web server, but the problem persists. Just for good measure I removed that line completely, saved the file, and rebooted the server. Will report back what happens.

7 Feb 2014, 5:22 PM
#4
p3rryman avatar

p3rryman

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

Re: Migrated store from IIS 7 to Mac OS X Server.app, cannot log in

THIRD EDIT: That did the trick. Had to delete the browser cache and now it all seems to be working. Hopefully this will help someone else in the future!