FreedomBI

Well-Known Member
Jul 7, 2008
65
0
56
With the current EasyApache, with both PHP4 and PHP5 installed, each account can select which version of PHP to use. How can I determine which accounts are using PHP4, without going into each account and checking which is selected? I've looked, but could not find a file with this information.
 

dellio

Member
Sep 8, 2008
19
0
51
I'm looking for this as well...Anybody find a solution?

A script to parse all .htaccess files and return the ones that list php4? I'm not sure how to make this though, guidance would help!
 
Last edited:

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
Hello,

Something like this should work,

find /home -type f -name '.htaccess' -exec grep -li ".php4" {} \;

This will list the full path of the htaccess file containing php4 inclusion.

Hope it works.

Regards.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
The handler is stored in /home/user/.htaccess. The handler is only stored if it differs from the System PHP Handler.