AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
Got a bit of an annoying problem, but my server seems to work happily regardless.

When I go into the php handler page for changing php4 or php5 to dso/cgi etc, the default php version is blank and the PHP 5 handler just says "None", but php 5 IS working, as my sites load aok.

I tried rebuilding apache with php, using the default options, but it didn't seem to fix it

Any thoughts?
 

AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
Hiya, we chose the latest one

Server Version: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Running PHP 5.2.17
 

TNiSolutions

Well-Known Member
May 30, 2011
50
0
56
Hmm

What options do you have under PHP4 if any?

Perhaps try a rebuild with a different profile, like Suhosin or something :)
 

AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
Heh nay, just the same drop down option as PHP 5 (None)

The current configuration shows:

Default PHP Version (.php files) 5
PHP 5 Handler dso
PHP 4 Handler none

Apache suEXEC on

When I check what's available via the command prompt, it shows DSO and CGI, so no idea why WHM doesn't show it.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Can you please see if the php.ini file has an error? Issue this command in root SSH:

Code:
php -v
If there is an error, it will output when you issue that or show nothing. If that happens, then move the existing php.ini file over and recreate it:

Code:
mv /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110613
/scripts/php.ini
At that point, you can do a diff on the files to see what differences they have:

Code:
diff /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110613
Then see if the handler is showing up properly in WHM > Apache Configuration > PHP and SuExec Configuration area to select.
 

boonjackmedia

Active Member
Apr 28, 2010
35
1
56
Cincinnati, OH USA
Back when we quit running php 4 and 5 together I noticed this too, but after looking into it there wasn't any issue.

My WHM might display the same way yours does... not sure what you're running.



Basically the Alter Configuration section for the Apache PHP Handler on my screenshot above displays "None", because there isn't any other option available to select.

Hope that helps you out there.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Yours shouldn't show no option available to select actually. If it were working properly, it would show DSO and any other options you've compiled into EasyApache that should be selectable (DSO is always compiled in so it should always be available for PHP). The steps I've noted would be the way to determine why the handler isn't showing any available options.
 

boonjackmedia

Active Member
Apr 28, 2010
35
1
56
Cincinnati, OH USA
Yours shouldn't show no option available to select actually. If it were working properly, it would show DSO and any other options you've compiled into EasyApache that should be selectable (DSO is always compiled in so it should always be available for PHP). The steps I've noted would be the way to determine why the handler isn't showing any available options.
Well the WHM > PHP Editor hasn't worked (can't save) since late March... we edit it manually if any changes are needed.

I noticed these quirks all started back when we ran a EA upgrade from PHP 5.2 to PHP 5.3 at that same time. After we found our php.ini was duplicating lines over and over, so we rebuilt the php.ini using those steps above you listed, and used the PHP 5.3 references.

I believed the PHP Editor issue related to the PHP URL Re-Writer thread... and was waiting for that to be fixed.

Talk about a can of worms, at least everything is running smooth, but I'm afraid there's too many moving parts here for me. Could you shoot me a ticket# and help take a peek under the hood?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You can definitely open up a ticket, but the PHP Configuration Editor issues should be fixed in 11.30+ versions so long as you are now running that. We cannot open up a ticket via the forums for users, so the method to open a ticket would be simply to go to WHM > Support Center > Contact cPanel or using the link in my signature.