LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-27-2007, 06:24 AM   #1
russh
LQ Newbie
 
Registered: Aug 2005
Location: UK
Distribution: Suse 10.1
Posts: 16

Rep: Reputation: 0
Installing PHP4 and 5 - problems?


I have two PHP applications to run on a single box - one PHP4 based, and one PHP5 based.

I've been advised that I can probably install them both side by side and as long as you are using the Apache web server, you can put a different .htaccess file in each program's directory. For example, in /APP1_is_PHP5/.htaccess you could have the line 'AddHandler x-httpd-php5 .php' and in /APP2_is_PHP5/.htaccess you could have the line 'AddHandler x-httpd-php .php' and each program would use the correct engine.

From this I guess that I'd also install apache2-mod_php4 and apache2-mod_php5.

Does anyone have experience of doing this? Does it work? :-)

Russ.
 
Old 06-27-2007, 06:35 AM   #2
russh
LQ Newbie
 
Registered: Aug 2005
Location: UK
Distribution: Suse 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by russh
I have two PHP applications to run on a single box - one PHP4 based, and one PHP5 based.

I've been advised that I can probably install them both side by side and as long as you are using the Apache web server, you can put a different .htaccess file in each program's directory. For example, in /APP1_is_PHP5/.htaccess you could have the line 'AddHandler x-httpd-php5 .php' and in /APP2_is_PHP5/.htaccess you could have the line 'AddHandler x-httpd-php .php' and each program would use the correct engine.

From this I guess that I'd also install apache2-mod_php4 and apache2-mod_php5.

Does anyone have experience of doing this? Does it work? :-)

Russ.

Found an alternative solution, but not quite as flexible:

http://www.linuxquestions.org/questi...d.php?t=419733

Last edited by russh; 06-27-2007 at 07:21 AM.
 
  


Reply

Tags
php4, php5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing mysql with php4 raosid Linux - Newbie 1 05-08-2006 03:05 AM
Installing PHP4 saf4 Linux - Software 1 09-22-2005 07:44 AM
installing PHP4 viperkt400 Linux - Software 1 02-13-2005 12:45 PM
installing PHP4 and PHP5 on apache jerry_redhat Linux - Software 2 07-08-2003 10:27 PM
Installing php4 mindstormsguy Linux - Software 0 05-29-2003 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration