Jump to content

PHP 5 upgrade has killed WHMCS :(


ozmo

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated