Results 1 to 10 of 10

Thread: php4 with php5

  1. #1
    Join Date
    Mar 2006
    Posts
    151

    php4 with php5

    we made a fresh install in new drive (after the old crashed). now in the server i have one problem with sites was using more old versions of PHP version 5.3.10 that i have INSTALLED NOW in the server. my question is. can i have php 4 also and with .htaccess file to account needs php4, to make the site work??

    Can someone guide me command by command via ssh to have php4 install as i wanted, without changing anything else...i mean the php 5.3 must be the default. the php4 can be uses only with .ht. access trick...

    can anyone help me?

  2. #2
    Join Date
    Mar 2012
    Posts
    73
    Hi,

    You might want to have a look searching on google for "php4 and php5 installed on the same server"

    Hope it helps...

  3. #3
    Join Date
    Mar 2005
    Location
    Ten1/0/2
    Posts
    2,529
    try http://www.webhostingtalk.com/showthread.php?t=1107060 - it should put you on the right path.
    CPanel Shared and Reseller Hosting, OpenVZ VPS Hosting. West Coast (LA) Servers and Nodes
    Running Linux since 1.0.8 Kernel!
    Providing Internet Services since 1995 and Hosting Since 2004

  4. #4
    Join Date
    Mar 2006
    Posts
    151
    ok i have setup php4...now i went to the site whch nees php4 to work correctly, i added .htaccess file in public_html directory with these line inside AddHandler x-httpd-php4 .php

    but now i can't see the site. everything is downloading....for example when i type mysite.com/index.php it downloads the file, not showing...any ideas??

  5. #5
    Join Date
    Jul 2011
    Posts
    355
    You are aware that PHP4 was EOLed in 2007?
    This account is no longer active!

  6. #6
    Join Date
    Mar 2006
    Posts
    151
    i dont know much. i am asking to solve my problem...

  7. #7
    Join Date
    May 2009
    Posts
    312
    Does your server have a control panel?

  8. #8
    Join Date
    Mar 2006
    Posts
    151
    yes WHM!!!!!!!!!!!!!!!!

  9. #9
    Join Date
    May 2009
    Posts
    312
    Assuming that you have setup php4 in the server, login to the user cPanel interface and in the Software/Services section click on the PHP Configuration link. You will see a drop-down box for versions of PHP that account should use by default. Some concurrent configurations are not compatible to this option. If that is the case, you may not see this drop-down box. Please select the php version from there for the domain.

    Or add this to your htaccess file

    AddHandler application/x-httpd-php4 .php

    to load the php files with php version 4.

  10. #10
    Join Date
    Mar 2005
    Location
    Ten1/0/2
    Posts
    2,529
    if you have WHM then this is a simple task - run easyapache, select the 2 versions of PHP you want and you are all set - if you take notice of it at the end, it will even tell you what you have to do to use the non-default PHP version.
    CPanel Shared and Reseller Hosting, OpenVZ VPS Hosting. West Coast (LA) Servers and Nodes
    Running Linux since 1.0.8 Kernel!
    Providing Internet Services since 1995 and Hosting Since 2004

  11. #11
    Join Date
    Mar 2012
    Posts
    73
    Quote Originally Posted by RRWH View Post
    if you have WHM then this is a simple task - run easyapache, select the 2 versions of PHP you want and you are all set - if you take notice of it at the end, it will even tell you what you have to do to use the non-default PHP version.
    I agree...

Similar Threads

  1. dual php4 & php5 forcing script to use php5
    By acctman in forum Programming Discussion
    Replies: 1
    Last Post: 09-09-2009, 11:22 PM
  2. Replies: 1
    Last Post: 07-16-2008, 06:28 AM
  3. run php4 for .php4 files and php5 for .php [httpd.conf]
    By SexualChocolate in forum Hosting Security and Technology
    Replies: 2
    Last Post: 01-29-2007, 09:29 AM
  4. php4 / php5
    By sachadmin in forum Hosting Security and Technology
    Replies: 7
    Last Post: 01-28-2007, 04:47 AM
  5. Php4 and Php5 - php5 doesn't work on domains?
    By ksynon in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 01-13-2006, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •