Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-08-2007, 11:53 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 9

Rep: Reputation: 0
Apache/PHP4 and Apache2/PHP5 in the same Ubuntu box

I already have Apache 1.34 with PHP4 running. How can I install
Apache2 with PHP5. Then have web1 to run from Apache 1 and web2 to run
from Apache2. It sounds like one of those final exams questions .
Old 12-08-2007, 12:13 PM   #2
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Seems like a strange thing to be doing, but you could try running another system in a virtual machine that only runs apache.
Old 12-08-2007, 12:55 PM   #3
LQ Newbie
Registered: Nov 2007
Posts: 9

Original Poster
Rep: Reputation: 0
You are absolutely right but I have to. I will explain.

I do web development using a CMS called eZ Publish. Now, they release a new version that only needs PHP5. See this note from their site:

Note that eZ Publish 3.6.x and lower do not run on PHP 4.4. eZ Publish versions 3.7.x and higher in the 3.x series will run only on PHP 4.4. eZ Publish versions 4.x need PHP 5.
Too confusing!!!

I have few project running projects in version 3.9 and I am planing to do the next project in eZP 4.

Hope things is clear now.
Old 12-08-2007, 01:47 PM   #4
Registered: Aug 2007
Distribution: openSUSE
Posts: 102

Rep: Reputation: 24
you can setup VirtualHost-ing ?

I mean 2 VirtualHosts on your apache 1.34,
The 1st wil run your normal site
The 2nd should be forwarded to Apache 2.0

(of course you can not run Apache2.0 on port 80, but you can do it on i.e. 8080)

Last edited by JSkywalker; 12-08-2007 at 01:49 PM.


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
LXer: Running Apache2 With PHP5 And PHP4 At The Same Time LXer Syndicated Linux News 0 02-26-2006 10:01 AM
Apache running with PHP4 & PHP5 possible? mastrboy Linux - Software 1 01-18-2006 09:35 PM
Can php4 and php5 run simultaneously on apache2? tisource Linux - Software 1 09-14-2005 11:53 PM
apache2 php4 and php5 as modules Nathanael Linux - Software 1 08-09-2005 11:10 AM
installing PHP4 and PHP5 on apache jerry_redhat Linux - Software 2 07-08-2003 10:27 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:19 PM.

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