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.

php 4 / apache 2??

Discussion in 'EasyApache' started by Zion Ahead, Mar 8, 2008.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Nov 10, 2006
    Likes Received:
    Trophy Points:
    I would like to compile apache 2.2 with php 4.4.8 and fastcgi, plus phpsuexec support.

    Is this a stable option or not?

    I would also like to do the same, but with php 5 as well simultaneously on another server.

    My question is how would a clients script know what to use, php4 or php5 on the same box?
    #1 Zion Ahead, Mar 8, 2008
    Last edited: Mar 8, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    PHP 4 on an Apache 2/2.2 system has been known to cause issues on some servers. Given that, I would rather refer to it as "compatible" rather than "stable."

    When you do concurrent PHP, you have the option to select the server-wide default version by going to WHM -> Service Configuration -> Configure PHP and SuExec. I would recommend since PHP 4 is going fully EOL on 8/8/08 that you use PHP 5 as the default and if some users still require PHP 4 to rename their files with a .php4 extension instead until they can bring their code up to speed with PHP 5. Of course, you have the option to set the default PHP version for individual accounts as well via their cPanel interface (if your server configuration supports such a customization).

    Virtually all major PHP applications are compatible with PHP 5 (some are now PHP 5 only). The only non-custom apps that would still be on PHP 4 (and be incompatible to PHP 5) are likely those that are woefully out of date and likely to contain known security issues due to their lack of maintenance.

Share This Page