Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 13th, 2005, 07:10 AM
Mr.Alien Mr.Alien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Mr.Alien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can I run 2 apaches on the same port?

Hi,

I want to run both php4 and php5 on my server. Is this posible without having to use 2 different ports?

I have 2 apache setup at the moment but they can't bind both with port 80 at the same time. Which is no surprise actualy. But is there a way to force this?

Reply With Quote
  #2  
Old January 13th, 2005, 08:31 AM
dba_frog dba_frog is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 2 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
I want to run both php4 and php5 on my server
You can, but you may have problems unless you set up correct pathing for each apache server to find the version you want.

Quote:
but they can't bind both with port 80 at the same time. Which is no surprise actualy.
Correct,

Quote:
But is there a way to force this?
NO,you can only have 1 server per port. Try putting the 2nd server on 8080, the acceptable alt to port 80

Reply With Quote
  #3  
Old January 13th, 2005, 08:39 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Might it be possible to play with the association?

for example, all *.php5 requests are parsed by the PHP5 engine, and the *.php requests are parsed by the PHP4 engine?

Although having both on the same server will likely cause conflicts... I do believe that operating two versions of Apache on seperate ports is your best solution.

Reply With Quote
  #4  
Old January 13th, 2005, 08:45 AM
Mr.Alien Mr.Alien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Mr.Alien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok, and what about the following

Bind apache_php4 to port 80 and apache_php5 to another port (let's say 8080)

Is ther a way apache_php4 can forward all php5 files to the other apache server.
See this like a cluster of 2 apaches with loadbalancing. Only loadbalancing is based on the file extension or the .htaccess file.

Reply With Quote
  #5  
Old January 13th, 2005, 08:56 AM
Mr.Alien Mr.Alien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Mr.Alien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
I do believe that operating two versions of Apache on seperate ports is your best solution.


Yes but I can't expect every visitor of the sites on my server to know which port to use.

Reply With Quote
  #6  
Old January 14th, 2005, 07:41 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Is there a reason why you need PHP4 and PHP5 working simultaneously?

Does [most] old PHP4 code not work in PHP5?

I had the understanding that old code would generally work... with the exception of some new reserved words.

Reply With Quote
  #7  
Old January 14th, 2005, 07:53 AM
Mr.Alien Mr.Alien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Mr.Alien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
Is there a reason why you need PHP4 and PHP5 working simultaneously?

Does [most] old PHP4 code not work in PHP5?

I had the understanding that old code would generally work... with the exception of some new reserved words.


Yes there is. The most important script on myserver (cpanel/whm) doen't work with php5.

Reply With Quote
  #8  
Old January 14th, 2005, 07:59 AM
Mr.Alien Mr.Alien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Mr.Alien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Anyone knows how I can send a web requist to an other apache server in apache?
If I can let my first apache server ask an other apache server to handle/parse this file for him, the problem would be solved

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Can I run 2 apaches on the same port?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT