xampp installation with php5 and my application works in php4

darkstorm

New Member
Apr 25, 2015
20
0
0
ICQ
0
Hello

I have a server with the latest XAMPP installation (in windows 7) and php 5 (the last version).
On the server most web applications I have installed are working properly, but a couple of them older than not They are compatible with PHP 5.
These two work well in php4 indicated, and I wonder if there is any way to tell in the .htaccess php.ini or elsewhere to tell those specifically xampp the run with another version of php . PD. Months ago I wrote a post in this case does not help me because I can not have two different versions xampp running at the same time because it tells me that this busy port apache and mysql (something very normal and logical).
Many thanks.
 

romeo

New Member
Apr 29, 2015
23
0
0
ICQ
0
Much depends on the way we're using apache. The default way in which Apache operates in almost all systems is that loads PHP interpreter within a module. I'm not sure if you could add two versions of PHP apache process simultaneously, in any case each Apache process would take considerable RAM (because both interpetes load). I really do not think you can. But if you use CGI or maybe if FCGI. I'm not sure if there is way to run PHP 4 CGI FCGI but if (note that there are implications). It's about changing the extension of the old scripts of PHP on the other extension eg .phpold and assign a special handler for the wrapper PHP4:
Code:
 http://httpd.apache.org/docs/2.2/handler.html
 

darkstorm

New Member
Apr 25, 2015
20
0
0
ICQ
0
Thanks for responding.
Having seen me afraid I will touch have two computers, one with the other versions php4 to php5
 

hancock

New Member
Jul 2, 2015
18
0
0
ICQ
0
Nginx can also have a proxy server that makes two types of extensions. You have to Nginx running on port 80, Apache PHP 5 on port 8000, Apache PHP 4 on port 8080. When a request arrives Nginx ending in .php4 you send the Apache that has PHP 4 when you get one with .php extension request you send it to the Apache that has PHP 5. The you have two different teams will be the same (just these delegating the load). Only one application will be able to listen to port 80.
 

darkstorm

New Member
Apr 25, 2015
20
0
0
ICQ
0
hancock said:
Nginx can also have a proxy server that makes two types of extensions. You have to Nginx running on port 80, Apache PHP 5 on port 8000, Apache PHP 4 on port 8080. When a request arrives Nginx ending in .php4 you send the Apache that has PHP 4 when you get one with .php extension request you send it to the Apache that has PHP 5. The you have two different teams will be the same (just these delegating the load). Only one application will be able to listen to port 80.
True.
I will study what you propose to me.
Thanks :)