"There was an error while checking the available PHP versions."

Aug 7, 2012
15
1
3
cPanel Access Level
Website Owner
So after updating to the latest cPanel and running EasyApache, I receive the following screen:

There was an error while checking the available PHP versions. Please make sure your PHP 5 binary is working correctly, and try again. More information may be available in the error log. The specific error encountered was:

PHP process exited nonzero (0).
Unexpected output from /usr/bin/php -v :
Screenshot 2013-11-07 12.52.39.png

Here is the output of /usr/bin/php -v
[[email protected] ~]# php -v
PHP 5.4.21 (cli) (built: Nov 7 2013 12:44:07)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Any ideas? I don't know what error log it's referring to, otherwise I would have checked it.
 

24x7server

Well-Known Member
Apr 17, 2013
1,907
95
78
India
cPanel Access Level
Root Administrator
Hello,

As per the provided logs and screen shot there is an issues with the php because php version is appears in WHM, You will have to check last easyapache logs and try to run easyapche again on your server

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

It's possible there are some invalid entries in your /usr/local/lib/php.ini file. Please try moving that file out of the way and regenerating it via:

Code:
mv /usr/local/lib/php.ini /usr/local/lib/php.ini.backup1
/scripts/phpini
Does this resolve the issue? If so, you should run EasyApache again after generating a new php.ini file to ensure all of the modules are loaded properly. You can then make any additional customizations to the php.ini file one by one to see which custom entry is the cause of the problem.

Thank you.
 
Aug 7, 2012
15
1
3
cPanel Access Level
Website Owner
Re: "There was an error while checking the available PHP versions."

As soon as I install APC (either via the Module Installers page or via pecl install apc) this issue appears.

- - - Updated - - -

Update: It actually happens with any PECL extension (also tested GeoIP).
 
Aug 7, 2012
15
1
3
cPanel Access Level
Website Owner
Update 2: I ran EasyApache with APC and GeoIP still installed, and this caused the same issue to re-appear.

For the record, it was fixed after resetting the php.ini configuration, but it seems that adding any form of extension to php.ini will cause the above error message to appear.

The site itself works perfectly fine with the extensions enabled.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Please open a support ticket so we can take a closer look:

Submit A Ticket

You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 
Aug 7, 2012
15
1
3
cPanel Access Level
Website Owner
Update: It appears that I was incorrect in my previous assessment, it was only APC that was misbehaving. I installed XCache instead, and that works with no issues.

Thanks :)
 

WebEndev

Member
Aug 2, 2012
8
0
1
Indiana, USA
cPanel Access Level
Reseller Owner
Update: It appears that I was incorrect in my previous assessment, it was only APC that was misbehaving. I installed XCache instead, and that works with no issues.

Thanks :)
I have the exact same issue.

Isn't there something that can be changed in the APC configuration to remedy this?

I really prefer APC over XCache.

Any help is greatly appreciated!
 

WebEndev

Member
Aug 2, 2012
8
0
1
Indiana, USA
cPanel Access Level
Reseller Owner
I believe that I have resolved this.

I lowered my apc.shm_size in APC. After hunting around a while, I had read that if apc.shm_size was too large in relation to your total system RAM available, that segmentation faults may occur (which I had).
So I lowered it from 512M to 400M, and the error is now gone.

I will continue to monitor my APC memory usage and verify that the error stays gone.

Hope this helps someone.
 

racerx8413

Member
Nov 5, 2010
9
0
51
I believe that I have resolved this.

I lowered my apc.shm_size in APC. After hunting around a while, I had read that if apc.shm_size was too large in relation to your total system RAM available, that segmentation faults may occur (which I had).
So I lowered it from 512M to 400M, and the error is now gone.

I will continue to monitor my APC memory usage and verify that the error stays gone.

Hope this helps someone.
This has also resolved my issue - APC was previously set to 512. Reducing it removed the error, but the max i could go was 196M.
You guys know of any guideline, or what a good ratio might be? I've got a cron to clear apc cache once an hour, and am worried i might use up more than what's available.