LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2009, 08:31 AM   #1
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
Run PHP4 and PHP5 on same apache


Hello Friends,

How can I run php4 and php5 on same apache? I have apache 2 installed and working with php5 .. now I want to run both php4 and php5 with same apache...I also searched google but didnt find anything simple...all was very complicated..So, looking for your replies guys..


---
Thanks
SMAJ
 
Old 07-31-2009, 12:48 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I'm sure if you tried hard enough - and were clever enough - you could probably figure out how to eat string beans through your nose, too. But I wouldn't recommend it.

STRONG SUGGESTION:
Configure your Apache server with PHP5 ... and leave it at that.

If you absolutely *must* have PHP4 co-located on the same machine, then build it into a *separate* version of Apache, and run it as a separate server (on a separate port, of course).

IMHO .. PSM
 
Old 07-31-2009, 12:51 AM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
I'd agree that it's probably a very bad idea, though it's just a gut feeling from having used Linux for a while. paulsm4, if only for my benefit, can you elaborate on what exactly might go wrong? I'm interested.
 
Old 08-05-2009, 04:35 AM   #4
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by paulsm4 View Post
Hi -

I'm sure if you tried hard enough - and were clever enough - you could probably figure out how to eat string beans through your nose, too. But I wouldn't recommend it.

STRONG SUGGESTION:
Configure your Apache server with PHP5 ... and leave it at that.

If you absolutely *must* have PHP4 co-located on the same machine, then build it into a *separate* version of Apache, and run it as a separate server (on a separate port, of course).

IMHO .. PSM
I want to run php4 and php5 both with the same version of Apache...php5 as a module and php4 as cgi...If u know the process then do tell me..

Thanks
SMAJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache - PHP4 + PHP5 MaL3aS Linux - Software 2 03-05-2008 06:03 PM
Configure php5 as module and php4 as CGI to run at the same time Sachin.Verma Linux - Software 2 09-24-2007 12:28 AM
Apache running with PHP4 & PHP5 possible? mastrboy Linux - Software 1 01-18-2006 10:35 PM
Can php4 and php5 run simultaneously on apache2? tisource Linux - Software 1 09-15-2005 12:53 AM
installing PHP4 and PHP5 on apache jerry_redhat Linux - Software 2 07-08-2003 11:27 PM


All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration