The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Finding accounts using PHP4

Discussion in 'General Discussion' started by FreedomBI, Aug 18, 2008.

  1. FreedomBI

    FreedomBI Well-Known Member

    Joined:
    Jul 7, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  2. dellio

    dellio Member

    Joined:
    Sep 8, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
    #2 dellio, Oct 26, 2008
    Last edited: Oct 26, 2008
  3. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
Loading...

Share This Page