ozmo Posted June 29, 2007 Share Posted June 29, 2007 Hi all, I have just upgraded my version of PHP to version 5.1.4 Since the upgrade of PHP my install of WHMCS is not functioning. Clients can't login in, the domain checker isn't working etc and the Admin area is only accessible when I check "Keep me logged in until I logout". This last issue, as suggested by Matt and I agree, has all the markings of a sessions issue but I can't figure it out. Anyone else come accross a similar problem? Any ideas? I can PM my details if you can help. Thanks, Rob 0 Quote Link to comment Share on other sites More sharing options...
disenioweb Posted June 29, 2007 Share Posted June 29, 2007 did you contact to Matt ? 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted June 29, 2007 Author Share Posted June 29, 2007 Yes. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted June 29, 2007 Share Posted June 29, 2007 Its probably because you have registered_globals off. Its definitely something on your end and not the fault of whmcs. I have been running different versions of php5 with whmcs for a year now. 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted June 29, 2007 Author Share Posted June 29, 2007 Its probably because you have registered_globals off. Its definitely something on your end and not the fault of whmcs. I have been running different versions of php5 with whmcs for a year now. No... register globals is on. If register_globas=Off WHMCS would not work at all. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted June 29, 2007 Share Posted June 29, 2007 Its probably because you have registered_globals off. Its definitely something on your end and not the fault of whmcs. I have been running different versions of php5 with whmcs for a year now. No... register globals is on. If register_globas=Off WHMCS would not work at all. Actually only certain parts of it wouldnt work. You missed my point though, the issue is with your server configured incorrectly. Its not an issue with WHMCS, thus its an issue you need to resolve on your side. While Matt can point out your systems incorrect settings, its not really his place. 0 Quote Link to comment Share on other sites More sharing options...
rodeoXtreme Posted June 29, 2007 Share Posted June 29, 2007 I noticed that you say the register_globals are off. If they are on and the install worked prior to PHP 5. Provided that the install was the same. How can you say that his server misconfigured; how do you know? Is there something that is missing in 5.0 that was in 4.0? Curious? We are considering upgrading to 5.1.6 but I am waiting to see if WHMC will work as smoothly as 4.4.7. 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted June 29, 2007 Author Share Posted June 29, 2007 I noticed that you say the register_globals are off. If they are on and the install worked prior to PHP 5. Provided that the install was the same. How can you say that his server misconfigured; how do you know? Is there something that is missing in 5.0 that was in 4.0? Curious? We are considering upgrading to 5.1.6 but I am waiting to see if WHMC will work as smoothly as 4.4.7. Yes the install was exactly the same. I am simply stumped as to what the issue could be. Like I said earlier... if someone would like to take a look at my config. I could PM my details. Ofcourse I would not expect anyone to do anything for nothing. Thanks again, Rob 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted June 29, 2007 Share Posted June 29, 2007 PM me a link to your phpinfo() page and give me as much info as possible besides what is stated above about your problems. PHP5 is definitely different than php4 and has lot of things on or off by default that php4 did not. You definitely cant assume that by simply upgrading your not going to have to tweak any of the settings. 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted June 29, 2007 Author Share Posted June 29, 2007 Thanks MACscr. Will do shortly. UPDATE: PM sent. Thanks, Rob 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted June 29, 2007 Share Posted June 29, 2007 I think MACscr hit it on the head. I've also been running on PHP5 for sometime now without issue. He's also correct when he says WHMCS won't completely fail if register_globals is off. In my experience it will make WHMCS act wierd until you get it corrected. You can't login, pages may be blank.... The new php5 install probably generated a new php.ini file that has register_globals off... 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted June 29, 2007 Author Share Posted June 29, 2007 The new php5 install probably generated a new php.ini file that has register_globals off... Hi Roger, Yes, you are correct, the upgrade to PHP 5 did create an new php.ini file which did initially have register_globals=Off. I have altered it to register_globals=On and certain elements of my WHMCS install do work but a lot do not. The default directory for the php.ini was ofcourse /etc. The upgrade has placed the new php.ini file in a different and deeper directory. Cheers, Rob 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted June 29, 2007 WHMCS CEO Share Posted June 29, 2007 I have investigated this issue for Rob and the only issue that is occuring is PHP sessions not working. Not sure what is causing it though - I thought maybe a problem writing the session data to the temporary data store, Matt 0 Quote Link to comment Share on other sites More sharing options...
meeven Posted June 30, 2007 Share Posted June 30, 2007 If it will help anyone new to WHMCS, cPanel's packaging of php5.2.3 plays havoc with phpsuexec and this will cause all php scripts to fail. I spent three full days trying to install whmcs until I found out this issue. I reverted to php5.2.1 and the install was done in minutes. 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted July 3, 2007 Author Share Posted July 3, 2007 Hi all, The CHMOD of the session save path was set to 775 so I changed it to 777 and that has helped somewhat, but.... There are still persistent issues. e.g.: Client profile in admin area stuck on one client, Whois lookup does not work, Domain checker does not work (security image not recognized). etc. Any suggestions? Cheers, Rob 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 3, 2007 WHMCS CEO Share Posted July 3, 2007 In the admin area, once again you have disabled register globals! So that needs re-enabling and will correct the issue with being stuck on one client. And for the domain checker security image, you need to make sure the GD image library is installed. Matt 0 Quote Link to comment Share on other sites More sharing options...
RaximNetworks Posted July 4, 2007 Share Posted July 4, 2007 Why PHP 5.1.4? I would definitely recommend using the PHP 5.2.x branch, as it is more stable and actively maintained. We run both PHP 4 and PHP 5 on all our servers, and have had the most luck with PHP 5.2.x in terms of usability and compatibility with existing PHP 4 applications. Alex 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 4, 2007 Share Posted July 4, 2007 Why PHP 5.1.4? I would definitely recommend using the PHP 5.2.x branch, as it is more stable and actively maintained. We run both PHP 4 and PHP 5 on all our servers, and have had the most luck with PHP 5.2.x in terms of usability and compatibility with existing PHP 4 applications. Alex I agree, but i ran the 5.1.x server fine for months with WHMCS with no issues. You just have to have it and the server configured correctly. 0 Quote Link to comment 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.