|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||||
|
|||||
|
Quote:
Quote:
Quote:
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Quote:
Yes but I can't expect every visitor of the sites on my server to know which port to use. |
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
Quote:
Yes there is. The most important script on myserver (cpanel/whm) doen't work with php5. |
|
#8
|
|||
|
|||
|
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 ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Can I run 2 apaches on the same port? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|