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!

php 5 on one site?

Discussion in 'General Discussion' started by ChRoNiC v2, Jul 18, 2007.

  1. ChRoNiC v2

    ChRoNiC v2 Registered

    Joined:
    Jun 17, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Is there any way either through cPanel 11 or WHM to install php 5 on one site and php 4 on another??
     
  2. andyaav

    andyaav Member

    Joined:
    Jan 1, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Hi,


    You can install both the php4 and php5 on your server. Once you finish with installation you just need to add following line in .htaccess file of domain/subdomain to use php5 as default php.

    create the .htaccess file under domain/subdomain with following code

    AddHandler application/x-httpd-php5 .php

    now by default for that domain apache will use php5 for all files with .php extention.

    Refer following post to install php4 + php5 on server

    http://forums.cpanel.net/showthread.php?t=45908


    Anand
    I am lovable :)
     
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