FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


HELP: Can I have IIS and Apache Both.






What language u use.
ASP
0%
 0%  [ 0 ]
ASP.net
0%
 0%  [ 0 ]
PHP mySQL
77%
 77%  [ 7 ]
Other.
0%
 0%  [ 0 ]
ASP or PHP according to need
22%
 22%  [ 2 ]
Total Votes : 9

hellrahul
HI! Very Happy
I'm a student. I am learning PHP and ASP simultaneuosly.
I want to have IIS and APACHE both running Simultanously. Is it possible.

Also, I don't wanna use IIS for PHP. Confused

I also don't know any thing about APache installation and Configurations etc.' Embarassed

Can any one solve my problem. Plz help me.
Also i wanna know about http://localhost
While testing ASP from IIS i use http://localhost/ as root.
And i have read apache use the same.
I am really confused. Rolling Eyes

Help me, Thax. Smile
redice
You can install both IIS and apache on same server. But you must use different port number for the two server. For example, use default port number 80 for IIS, but use 8080 for apache. If you use ssl, make it different too. (Default SSL port is 443, you may choose any you like, eg: 8443);
hellrahul
I don't understand port numbers, and how 2 change it.
I'm a kiddie in this field. Can ya tell me in details.
How 2 do it.
Kaneda
About port numbers

The port number is what the TCP (and UDP) protocol uses to determine which application to use for incoming data. There are standard ports given to various application protocols - 20/21 = FTP, 25 = SMTP, 110 = POP3, 80 = HTTP.

You can specify the port number to use in the URL, like this:

http://www.google.com:80

or

http://localhost:8080

Since a request on port number 80 will always be directed to one single application when reaching your computer (one of your web servers), the other webserver app needs to use another number. Most people like to use 8080 for that purpose. Actually, 8080 is the officially registered portnumber for such use - more than one web server on a single computer.

How to do it
So, you'd let Apache use port 80, and set up IIS to use port 8080, and so you'd use:

http://localhost/index.html - to access index.html on Apache
http://localhost:8080/default.asp - to access default.asp on IIS.

... or vice versa.

As far as I recall (I don't have IIS installed at the moment), in IIS you get a chance to enter the port number in the wizard used for creating a new website. And it can be changed in the properties for the website too.

With Apache, you set it in the ServerName line (in httpd.conf), like:

ServerName 127.0.0.1:8080

And to answer the poll... For web development, I use PHP and ASP.NET (and Ruby or Perl at times) depending on what I need. I never ever use ASP. Ugly language, and useless compared to PHP. Thankfully, most clients are happy to have their site built with ASP.NET now Smile
hellrahul
Kaneda wrote:
About port numbers

The port number is what the TCP (and UDP) protocol uses to determine which application to use for incoming data. There are standard ports given to various application protocols - 20/21 = FTP, 25 = SMTP, 110 = POP3, 80 = HTTP.

You can specify the port number to use in the URL, like this:

http://www.google.com:80

or

http://localhost:8080

Since a request on port number 80 will always be directed to one single application when reaching your computer (one of your web servers), the other webserver app needs to use another number. Most people like to use 8080 for that purpose. Actually, 8080 is the officially registered portnumber for such use - more than one web server on a single computer.

How to do it
So, you'd let Apache use port 80, and set up IIS to use port 8080, and so you'd use:

http://localhost/index.html - to access index.html on Apache
http://localhost:8080/default.asp - to access default.asp on IIS.

... or vice versa.

As far as I recall (I don't have IIS installed at the moment), in IIS you get a chance to enter the port number in the wizard used for creating a new website. And it can be changed in the properties for the website too.

With Apache, you set it in the ServerName line (in httpd.conf), like:

ServerName 127.0.0.1:8080

And to answer the poll... For web development, I use PHP and ASP.NET (and Ruby or Perl at times) depending on what I need. I never ever use ASP. Ugly language, and useless compared to PHP. Thankfully, most clients are happy to have their site built with ASP.NET now Smile


THANNXXXXXXXXXX I REALL NEEDED IT.

And about ASP.NET Its far more better than ASP.
I started reading a book on ASP.net and i found it is very much advanced.
But its not free. U need windwows xp for that.
Related topics
Hey, its me (Sai)
Script to automatically restart Apache (for server 1)
Why is it such a pain in the butt!
CSS Editor?
I am looking for some advice
Petition to destroy the Iranian nuclear facilities
How Did You First Meet Him/her?, How I met my girlfriend..
Need help?
How to integrate my forum and site login system
Opinions on OS X Leopard?
Best filemanager?
Am I too Jealous.. or has he made me this way?
Are security seals supported?
What would you like to learn?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.