Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP & ASP on LOCALHOST

Status
Not open for further replies.

sciclunam

Programmer
Oct 12, 2002
138
MT
Hi,

I have installed Apache, Mysql and Php on my local machine. But to do this I had to disable Window's IIS.

The problem is that I have websites which reside on Apache servers thus I need to test my localhost on Apache and others on Windows thus I need also to test Windows server.

How can I have both running on same machine?

Thanks

Getting married in Malta?
Visit
 
HI,

You can set http service to use different port number.

dbase77
 
You can setup Apache to listen to port (f.ex) 85 by changing the line "Listen 80" in the /conf/httpd.conf file to "Listen 85" tehn type 127.0.0.1:85 in the address line...

Didn't try it out, but that's my best guess!

Regards


Jakob

PS. Remember to restart/reboot!
 
A cleaner solution might be to have one of the servers proxy to the other. Set IIS to run on a different port, run apache on port 80 and have apache serve requests from its DocRoot and proxy to whatever port IIS is running on.

The same as Jakob's solution, but with a nice front end.
 
I have setup Apache 127.0.0.1:85 and it works fine. In conf file there is also an entry Servername localhost:80 Does this require to be changed?

Then I installed the IIS and added the ASP site. Have changed none of the default settings. However ASP pages give me "The page cannot be displayed" error!

What settings do I need to change for the IIS?

Getting married in Malta?
Visit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top