Multiple versions of XAMPP in the same computer

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Multiple versions of XAMPP in the same computer

Postby romrp » 23. August 2010 18:22

Hello,

I have an application that runs on XAMPP 1.4.x (do not remember the exact version) and do not goes very well in newer versions. I do not have the time to find out where the problems are: it works in xampp 1.4.x and it will stay there for now. The new development though I would like to use newer versions of apache/php/mysql for obvious reasons.

Explained the motive, how may I run both versions of XAMPP (in other words 2 different versions of apache 2 and 2 different versions of mysql) in the same machine? I already tried to change ports, but then does not work. I am a mediocre to medium server administrator so please use layman terms ;)

I have XAMPP/windows 1.4.x;
I want to add newer version of XAMPP/windows;
I want them to run together in the same computer.

Thank you in advance for your help,

Thank you for XAMPP, it is great!

All the best,

Rom Pereira
Rom Pereira
International Sales Manager
Primor Doces e Caramelos Ltda.
http://www.primor.ind.br
romrp
 
Posts: 6
Joined: 20. May 2004 14:53

Re: Multiple versions of XAMPP in the same computer

Postby romrp » 23. August 2010 21:10

romrp wrote:Hello,

I have an application that runs on XAMPP 1.4.x (do not remember the exact version) and do not goes very well in newer versions. I do not have the time to find out where the problems are: it works in xampp 1.4.x and it will stay there for now. The new development though I would like to use newer versions of apache/php/mysql for obvious reasons.

Explained the motive, how may I run both versions of XAMPP (in other words 2 different versions of apache 2 and 2 different versions of mysql) in the same machine? I already tried to change ports, but then does not work. I am a mediocre to medium server administrator so please use layman terms ;)

I have XAMPP/windows 1.4.x;
I want to add newer version of XAMPP/windows;
I want them to run together in the same computer.

Thank you in advance for your help,

Thank you for XAMPP, it is great!

All the best,

Rom Pereira


I solve my own problem, but I could not run another version of XAMPP in the same machine... if you know how to do this, please let us know.

To fix the problem (I was being lazy, who can blame me?) I had to adapt PHP to understand the application I created 5 years ago (835 scripts, thousands of lines of code, of our import/export for goods) that had the old problem with vars... fixed with the following:

created a .htaccess file with the following PHP directives:

php_flag register_globals on
php_flag register_long_arrays on
php_flag magic_quotes_gpc on

I know that is a security issue, but this application cannot be accessed by the outside world. By using the .htaccess in that specific directory I override the php.ini file directives and do not change the behavior of PHP for other applications.

Have fun,

Rom Pereira
Rom Pereira
International Sales Manager
Primor Doces e Caramelos Ltda.
http://www.primor.ind.br
romrp
 
Posts: 6
Joined: 20. May 2004 14:53

Re: Multiple versions of XAMPP in the same computer

Postby JonB » 23. August 2010 22:21

that's a good tip

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Multiple versions of XAMPP in the same computer

Postby romrp » 23. August 2010 22:53

JonB wrote:that's a good tip

8)


True thing! Learned from the masters @ php.net ;)

All the best,

Rom Pereira
Rom Pereira
International Sales Manager
Primor Doces e Caramelos Ltda.
http://www.primor.ind.br
romrp
 
Posts: 6
Joined: 20. May 2004 14:53

Re: Multiple versions of XAMPP in the same computer

Postby Altrea » 24. August 2010 05:22

romrp wrote:I already tried to change ports, but then does not work.

Thats no helpful error reporting. WHAT does not work?
Can't you start Apache?
Can't you access the XAMPP Administration Site?
Can't you access your Webapplication?
You must be more specific.

To run more than one XAMPP on the same machine, use the zip Version.
- Download
- extract
- rename folder to something meaningful (e.g.: xampp173)
- run the setup-xampp.bat script to relocate

- change the Apache Ports
You had to change the ports on the following files:
xampp173\apache\conf\httpd.conf => HTTP LIsten Port and Servername
xampp173\apache\conf\extra\httpd-ssl.conf => SSL Listen Port
If you want to use vhosts, be sure to use the new ports in the xampp173\apache\conf\extra\httpd-vhosts.conf file too

If you want to use a second mysql too, you had to change the mysql port too!

If you have problems starting xampp and you use Windows Services for one of them, unregister the services and try it manually.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Multiple versions of XAMPP in the same computer

Postby romrp » 24. August 2010 11:14

Hello Altrea and thank you for replying to my post.

Altrea wrote:
romrp wrote:I already tried to change ports, but then does not work.

Thats no helpful error reporting. WHAT does not work?
Can't you start Apache?
Can't you access the XAMPP Administration Site?
Can't you access your Webapplication?
You must be more specific.


Running both the new apache/mysql from the newer XAMPP package that is conflicting with the older XAMPP 1.4.x apache/mysql. I wanted to run both at the same time to be able to run an old application I developed and in the newer package develop the new stuff.

Altrea wrote:
To run more than one XAMPP on the same machine, use the zip Version.
- Download
- extract
- rename folder to something meaningful (e.g.: xampp173)
- run the setup-xampp.bat script to relocate

- change the Apache Ports
You had to change the ports on the following files:
xampp173\apache\conf\httpd.conf => HTTP LIsten Port and Servername
xampp173\apache\conf\extra\httpd-ssl.conf => SSL Listen Port
If you want to use vhosts, be sure to use the new ports in the xampp173\apache\conf\extra\httpd-vhosts.conf file too

If you want to use a second mysql too, you had to change the mysql port too!

If you have problems starting xampp and you use Windows Services for one of them, unregister the services and try it manually.


I got you, but does not work. I was having conflict between the older apache/mysql with the newer version...

Anyway, thank you, I solved my problem. I just tought it would be nice to have different versions of XAMPP (apache/mysql) running in the same machine for testing purposes...

All the best,

Rom Pereira
Rom Pereira
International Sales Manager
Primor Doces e Caramelos Ltda.
http://www.primor.ind.br
romrp
 
Posts: 6
Joined: 20. May 2004 14:53

Re: Multiple versions of XAMPP in the same computer

Postby Altrea » 24. August 2010 11:56

It is possible, but each component had to listen on its own unique port (mysql too).
Maybe you can tell me what XAMPP 1.4.X Version you use exactly (version number, full version or xampplite, zip or installer) to build my own test environment at home.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 61 guests