Results 1 to 10 of 10
Thread: php4 with php5
-
03-03-2012, 07:05 AM #1WHT Addict
- 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?
-
03-03-2012, 09:06 AM #2Junior Guru Wannabe
- 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...
-
03-03-2012, 09:09 AM #3Web Hosting Master
- 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
-
03-03-2012, 09:27 AM #4WHT Addict
- 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??
-
03-03-2012, 09:32 AM #5Aspiring Evangelist
- Join Date
- Jul 2011
- Posts
- 355
You are aware that PHP4 was EOLed in 2007?
This account is no longer active!
-
03-03-2012, 09:34 AM #6WHT Addict
- Join Date
- Mar 2006
- Posts
- 151
i dont know much. i am asking to solve my problem...
-
03-03-2012, 02:21 PM #7Web Hosting Guru
- Join Date
- May 2009
- Posts
- 312
Does your server have a control panel?
-
03-03-2012, 02:36 PM #8WHT Addict
- Join Date
- Mar 2006
- Posts
- 151
yes WHM!!!!!!!!!!!!!!!!
-
03-03-2012, 02:58 PM #9Web Hosting Guru
- 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.
-
03-03-2012, 08:07 PM #10Web Hosting Master
- 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
-
03-04-2012, 09:47 AM #11Junior Guru Wannabe
- Join Date
- Mar 2012
- Posts
- 73
Similar Threads
-
dual php4 & php5 forcing script to use php5
By acctman in forum Programming DiscussionReplies: 1Last Post: 09-09-2009, 11:22 PM -
PHP4 reaching its End Of Life, 4->5 guaranteed transition service (PHP5+PHP4)
By SHTech in forum Software & Scripts OffersReplies: 1Last Post: 07-16-2008, 06:28 AM -
run php4 for .php4 files and php5 for .php [httpd.conf]
By SexualChocolate in forum Hosting Security and TechnologyReplies: 2Last Post: 01-29-2007, 09:29 AM -
php4 / php5
By sachadmin in forum Hosting Security and TechnologyReplies: 7Last Post: 01-28-2007, 04:47 AM -
Php4 and Php5 - php5 doesn't work on domains?
By ksynon in forum Hosting Software and Control PanelsReplies: 0Last Post: 01-13-2006, 10:04 AM