FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PWS and Apache?

 


cr3ativ3
Hey, I have recently been looking into ASP I don't particularly want to learn ASP but for certain reasons I need to. I am a PHP developer so I have apache installed on my computer with PHP and I want to install PWS (Personal Web Server) with ASP on my computer to help me learn ASP and I know I could try installing ASP on apache but then instead of VBscript I would be using Perl so that sorta defeats the purpose.

So I guess my main problem is that I am not sure if I would be able to use both web servers and once? Because they both use "http://localhost/" would it work fine then if I just had one turned off and the other on at one time or would there be more issues with this?

I can see that my problem may just be only one on at a time I havn't yet installed PWS, I don't want to till I get this cleared up so ya I may not have any problems what so ever just speculation.

Couldn't find anything on a quick google search.
MrBlueSky
You can't have both servers listening to the same port at the same time. So you have to configure one of them to listen to another port instead of port 80.
For example change the below lines in your apache's httpd.conf

Code:

### Section 2: 'Main' server configuration
#
Port 80

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>


to

Code:

### Section 2: 'Main' server configuration
#
Port 8011

<IfDefine SSL>
Listen 8011
Listen 443
</IfDefine>


or any other port that isn't in use.

After that you can run both servers at the same time. When you request pages from PWS you do it the 'normal' way and when you request pages from apache you use something like:

http://www.myserver.com:8011/index.html

etc.
cr3ativ3
MrBlueSky wrote:
You can't have both servers listening to the same port at the same time. So you have to configure one of them to listen to another port instead of port 80.
For example change the below lines in your apache's httpd.conf

Code:

### Section 2: 'Main' server configuration
#
Port 80

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>


to

Code:

### Section 2: 'Main' server configuration
#
Port 8011

<IfDefine SSL>
Listen 8011
Listen 443
</IfDefine>


or any other port that isn't in use.

After that you can run both servers at the same time. When you request pages from PWS you do it the 'normal' way and when you request pages from apache you use something like:

http://www.myserver.com:8011/index.html

etc.


Thanks, Great Help
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

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