Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Atlanta, GA
    Posts
    121

    Default Configure PHP and SuExec PHP5/4 addhandler issue

    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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Configure PHP and SuExec PHP5/4 addhandler issue

    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?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Configure Suexec and PHP
    By adrov in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-23-2009, 07:22 AM
  2. i have problem in Configure Suexec and PHP
    By end.soldire in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-10-2009, 12:33 PM
  3. Configure Suexec and PHP
    By don_will in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-11-2008, 09:52 AM
  4. Configure Suexec and PHP
    By manuk in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 12-08-2007, 12:46 PM
  5. PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)?
    By PondRicefied in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2007, 09:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube