Zergman Posted February 13, 2006 Share Posted February 13, 2006 k, here's the story. I have a php/mysql website on a server that is working fine. I built a new server and have apache/php and mysql up and running. The database is transferred over as well with the site.The database name is exactly the same as well with the site folder/location. Everything is pretty much the exact same.When I access the site, it loads perfectly, but when I try to login to the site, it doesn't work. It bascially shows that my username/password is incorrect but I know they are right. I move back to the origional server and it works. The login in done with php with mysql.To test the site/server, I created a basic page that pulled some info from the database. Works fine.I scanned through the code on the pages looking for server reference, but I can't find nothing that would cause it not to work. I have even copied over my httpd.conf file, but no go.Server is a fedora core 3.Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/3403-site-moved-servershaving-issues/ Share on other sites More sharing options...
AndyB Posted February 13, 2006 Share Posted February 13, 2006 Most likely culprit - old server php has register_globals OFF and new server has register_globals ON. You can check both easily by comparing the results of phpinfo() on each. Quote Link to comment https://forums.phpfreaks.com/topic/3403-site-moved-servershaving-issues/#findComment-11641 Share on other sites More sharing options...
Zergman Posted February 14, 2006 Author Share Posted February 14, 2006 [!--quoteo(post=345303:date=Feb 13 2006, 01:21 AM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Feb 13 2006, 01:21 AM) [snapback]345303[/snapback][/div][div class=\'quotemain\'][!--quotec--]Most likely culprit - old server php has register_globals OFF and new server has register_globals ON. You can check both easily by comparing the results of phpinfo() on each.[/quote]funny story.....so I take your advise and check the php.ini file. Needless to say it was set to off. So I change it to on, reboot the server and run the phpinfo() again....>STILL OFF!.Check the file again and its on. Well, I fight and fight for hours and can't get it on.....STILL SAYS OFF!So I get my uber haXor friend to have a peek and see why register_globals are still off when the file says on. he comes back and says I edited the wrong line. I changed the comment line on line 25. He said look at line 380. OFF!Changed that line and now its working just fine. Thanks AndyB for the help!..you were dead on! Quote Link to comment https://forums.phpfreaks.com/topic/3403-site-moved-servershaving-issues/#findComment-11683 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.