Welcome to WebmasterWorld Guest from 54.147.44.13

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

2 Copies of MySQL & 2 Copies of Apache on Windows

     
9:37 am on Mar 20, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 14, 2002
posts:118
votes: 0


Hi all,

Just be interested to know if anyone has tried running to copies of mysql & 2 copies of Apache on the same box (any version of Windows).

I want to be able to develop for the latest versions of Apache & MySQL but also make sure stuff wroks on the versions that our webservers (running Linux, but still Apache & MySQL) have.

I'm sure it's just a simple matter of changing the ports in the second copies.

Also, does anyone know if the major browsers (IE & Mozilla) look at 8080 and a secondary default?

IE. If I have one webserver on 80 with one site and a second server on 8080 with a different site (both on same domain), which one will be displayed if I just enter the domain?

Regards,

Allen

11:13 am on Mar 20, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Dec 9, 2002
posts:325
votes: 0


I've not tried it on windows, but your theory is sound, and it works well on Linux. You should just have to change the port numbers - thats the only requirement.

Also, does anyone know if the major browsers (IE & Mozilla) look at 8080 and a secondary default?

Nope, they just look at port 80 by default, and that is it. If you want them to use another port number, you have to do it like this:

http://www.mydomain.com:portnumber/

HTH,
JP

12:03 pm on Mar 20, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0



>>I'm sure it's just a simple matter of changing the ports
>>in the second copies.

You would need to adjust where PHP [php.net] will look for its PHP [php.net].ini file as well. For the PHP [php.net] module you can just put each PHP [php.net].ini in the respective Apache [httpd.apache.org] directory. If done correctly having multiple copies of Apache [httpd.apache.org] coexisting on a machine should not be a problem.

For the files and places that might need configuring have a look at Putting a new dynamic PHP/MySQL site on a cd-rom - Any technology available to make dynamic access possible? [webmasterworld.com] and msg#4 of WAMP on CD ERROR with w98 - gd: unable to initialize module [webmasterworld.com].

Andreas