Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Configure PHP and SuExec PHP5/4 addhandler issue

Discussion in 'General Discussion' started by devGOD, Mar 4, 2011.

  1. devGOD

    devGOD Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Atlanta, GA
    I'm trying to get PHP5 and PHP4 to play nice on a website space that requires both.
    1. mainSite.com script needs php4 and is set to php via Addhandler (works fine)
    2. sub.mainSite.com needs php5 (apparently i can't override the parent site Addhandler) but its loading php4 even though I have addhandler set for 4.

    Both php4 and php5 work fine, the server is default to 5. Someone told me this "Yes you can only load one php module. When you want to set the Handler in .htaccess for different php versions you should run fastcgi with the different modules." so my question is how do I set it so that both PHP5 and PHP4 can run and be switched via the Addhandler (.htacces) while on the same site?

    Currently my Configure PHP and SuExec is set too...
    Default PHP Version : 5
    PHP 5 Handler: dso
    PHP 4 Handler: cgi
    Apache suEXEC: on

    I was told to switch PHP5 to FCGI what should I change PHP4 too and would this solve my problem?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you tried renaming the scripts that need PHP 5 to .php5 and then setting that as the handler to load PHP 5 for the subdomain?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice