PDA

View Full Version : Login Loop - Can't Fix


hellfire
12-04-2007, 12:02 AM
I have v6.1 as a licensed on another website and I am attempting to install the new v6.3.24 on a new website as a trial. If my customers likes it, they will buy the license.

I can't get past the Login Loop. :(

GoDaddy.com is my hosting company, running PHP 4.3.

I ran the tester and all things passed. I installed the Zend version auto-installer. The install completed just fine, until I needed to login. Welcome to the Login loop. The page would show that I had logged in, but was looping back.


I have contacted GoDaddy about the session path and they emailed me a simple php.ini file:session.save_path = /tmp
I created the directory "tmp" with permissions 777 and uploaded the php.ini file.

The login page then takes me to a page telling me Zend is not installed. Running the tester shows that Zend Optimizer fails and is not detected. Deleting the php.ini file and re-running the tester shows all things passed.

I found the Zend setting from GoDaddy and updated my php.ini file.

session.save_path = /tmp

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

The login page now doesn't show that I am logging in at all. It just loops back to the page.

setup page (http://www.shamanicdearmoring.com/calendar/setup/index.php)


I am a total noob when it comes to PHP.
What is going on and what do I need to do to fix it?
Why does the tester show sessions support, but I still have the login loop?


Thanks

ve9gra
12-04-2007, 07:04 AM
Instead of using a custom php.ini, just set the session save path in the /calendar/setup/sessionPath.php

See if that lets you through and report back.

hellfire
12-04-2007, 12:34 PM
Thanks for the reply.


I have sessionPath.php set tosession_save_path("/tmp");
I have also tried deleting the php.ini and the tester passes everything, but I still have the login loop.

I have tried various directories in sessionPath.php, but none of them seem to work.


phpinfo() for my hosting server showsv4.3.11

Configuration File (php.ini) Path= /web/conf/php.ini

Under the session section it showsSession Support= enabled

session.save_path= /tmp

Under the Enviroment section it showsDOCUMENT_ROOT= /home/content/d/o/m/domain_name/html

PATH_INFO= /_h_admin_/phpinfo4.php4

ve9gra
12-04-2007, 10:22 PM
How about we try something totally different...

As I can see it, this is where your site is hosted /home/content/d/e/a/dearmoring/html

Create a folder here /home/content/d/e/a/dearmoring/sessions (this should be at the very root of your FTP account, and not visible to the web (above the html folder). CHMOD it to 777 and put that path into the /calendar/setup/sessionPath.php

Let me know.

hellfire
12-06-2007, 04:38 PM
Thanks for the help.

My root folder is the html folder.

I contacted GoDaddy and they say that all content must be on the web side, via contract agreement. Therefore I can't create any folder outside of the html folder.

I asked them what the folder was being used for php sessions and they said /tmp, which is what phpinfo() showed.

I have tried editing the /calendar/setup/sessionPath.php and setting the path to /tmp but that doesn't work.

Any other ideas?

ve9gra
12-06-2007, 09:30 PM
Have you tried re-uploading all files in case there was some corruption? Normally, if the session path is correctly set in the php.ini there is no need to set it in the sessionPath.php.

I can't really think of anything else.

hellfire
12-07-2007, 04:18 AM
This makes no sense to me, but it might to you.

I deleted the /calendar folder and all the files. I installed the PHPv5 Ion Cube version (because on GoDaddy servers, Zend only works with PHPv4.3) I ran the setup/index.php, it didn't work and said that PHPv5 is not installed and is needed for Ion Cube. I called GoDaddy and asked what's up because they say I can run v5 & v4.3 simultaneously. They say v5 files need the extension to be .php5. I rename the setup/index.php to .php5. That page loads, but login doesn't work. So I rename all php files to .php5 and global find/replace .php -> .php5 in the code. No supprise that it didn't work that simply.

I gave up on PHPv5 and deleted the files.

I reinstalled the PHPv4.3 Ion Cube auto-install version (same as before), but I canceled the setup when my browser auto started by closing all browser windows.

I opened up /calendar/setup/sessionPath.php and set it to "/tmp", uploaded the file to the site, then restarted the /calendar/setup/index.php file in my browser.

Ta-Da. :clap: It now works.

I uploaded the files numerous time using the auto-installer, as well as changing the sessionPath.php to "/tmp" and it didn't work.

It must have been changing the sessionPath.php BEFORE running the setup.

Thank you ve9gra for your time and willingness to help. It inspired me to persevere and get it running. Thanks

ve9gra
12-07-2007, 07:52 AM
Hellfire 1 | GoDaddy 0

:clap: