Learn how to a build a cloud-first strategyRegister Now


How to add second web server

Posted on 2006-04-14
Medium Priority
Last Modified: 2012-06-27
I currently have a web server running in IIS. I want to install a second web server, which will be running Apache. I know nothing about Apache and will be using Xampp to install it along with MySql so that I can host my blog using WordPress.

Anyhoo, thinking through this, how will I be able to support two web servers? The IIS server is currently hosting about 4 domains. I plan to move one off and onto the Apache web server. How will I support this? If it's possible.

Question by:Thirt
LVL 15

Assisted Solution

m1tk4 earned 400 total points
ID: 16458088
It is possible, if you add a second IP address to the network adapter, then configure IIS to only listen to one IP (IN ALL WEBSITES), and Apache to listen to another one. Otherwise they would both by default try to listen on all IPs on port 80 and this would cause a conflict (there may be only 1 listener on a single port on 1 IP). Except this, there should be no other problems.

If you can't get a second IP, you still can do it by moving IIS to listen on port 81 (or any other arbitrary port), set up Apache to listen to port 80 and proxy the requests to those 4 sites still on IIS to itself:81. Unfortunately, you can't really do it in reverse (set up IIS to proxy to Apache).

Moving sites between the two really depends on what these sites are. If they are plain HTML (i.e. no ASP/etc.), you have no problem. If they are something else it depends.
LVL 14

Accepted Solution

nltech earned 600 total points
ID: 16458786
wordpress can run under windows iis. you don't have to install apache, but if you can get a 2nd ip address it'd probably be easier (especially if you've used apache before).

if you can't get a 2nd ip address and want apache, then you'll have to set the "listen" port in apache to something other than 80 (such as 81). your wordpress blog would then be accessible at http://www.yourblog.com:81  you'll probably want to put apache on the odd-ball port instead of iis, as to not mess up the existing hosted sites. note i have encountered some difficulty at times in getting non standard ports working with other cms packages. i haven't tried it with wordpress though.

if your existing sites are not using proprietary microsoft junk that won't work in apache, you could move the existing sites to apache and shut down iis web server; freeing up port 80 for apache and running everything through it instead.

php & wordpress in iis:

php in iis. not too difficult. the prebuilt windows binaries will do the trick. php.net has some instructions on installing php in iis and this walkthrough at macromedia might just be enough to get you going http://www.macromedia.com/devnet/dreamweaver/articles/php_iis.html

mysql isn't tough either. again, prebuilt binaries will work. make sure it's started at boot up.

wordpress.org's forums have numerous threads for help with wordpress in iis. there are a few adjustments you'll have to make to get things running smoothly... http://wordpress.org/search/iis?forums=1

Author Comment

ID: 16460233
Good info, thanks. It took me a second to understand the second IP. You mean obtain a second external IP from my ISP? I'll need to check my options there. I like the idea to setup a listen port in the meantime just to play with Apache/PHP and learn how to tweak WordPress. Once I like how it's working, or not, I can get the second IP or move it over on my poor little IIS box.

Thanks again!!!

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month20 days, 19 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question