Moodle, IIS, & Port 80 Issue

Moodle, IIS, & Port 80 Issue

by Ian Levstein -
Number of replies: 3

Good morning,

 

I apologize in advance if this issue has been written about elsewhere, but I’ve been reading various forums and, although many seem to come close to helping, I’m still hesitant to act without specific advice for my situation. I beg your indulgence – because I’m not well versed in server issues and I’ve only recently been thrust into the position of having to make changes!

 

I have a production web server running under Windows 2003 SP2. I’m using IIS v6.0 and SQL Server 2005, MS Visual C++ 2008 v9.0 is installed, and the browser is IE8. The web server hosts two working web sites – and those web sites must remain operational throughout the process (except for the occasional server reboot as required).

 

I have been instructed to install Moodle v2.4.1 on the production web server along with the other programs it needs to function including PHP v5.3.5, Apache 2.2.17, and whatever version of MySQL (v5.5?) is being used. I'm using the Windows installer. One of the existing web sites will point to Moodle via a URL link.

 

One of the issues I’m running into is that IIS uses port 80 and Apache also wants to use port 80. Of course, the Apache install fails with the message“: make_sock: could not bind to address 0.0.0.0:80” and the install stops.

 

One thread I read suggested moving Apache to port 8080 via the httpd.conf file and then also make that change in the various http.php files (there seems to be 6 of these in different Moodle folders).

 

Another thread I read suggested simply stopping IIS from using port 80. This seems a bit easier than the first method!

 

So… my questions (grouped according to method):

 

1a) If I redirect Apache to port 8080 as outlined above, is Moodle going to install and work properly?

1b) What other changes, if any, will I need to make for this to be successful?

1c) What URL will I need to use so that students get to the right port, given that one of the web sites (eg. www.abcdefg.org) will point to Moodle as a link?

1d) Are any of these changes going to affect my working web sites?

 

2a) What will happen to my working web sites if I stop the IIS service on port 80?

2b) Will users still be able to access those two web sites and associated links?

 

3) I'm running out of space on my C: drive. If I install Moodle from the E: drive (which has lots of space), does everything stay on E:\?

 

Thanks so much for your help. If there’s any other information you need, please let me know.

 

Ian

Average of ratings: -
In reply to Ian Levstein

Re: Moodle, IIS, & Port 80 Issue

by Gareth Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear Ian,

You have several choices as you are running web sites already under IIS:

  1. Migrate the websites to Apache and stop IIS.
  2. Install Moodle with IIS and not Apache -> http://docs.moodle.org/24/en/Internet_Information_Services
  3. Operate both Apache on port 8080 and IIS on port 80.

If the third option, then Moodle will work alongside the other websites on port 8080, but all URL's will have the ':8080' port specifier in them - Moodle will work though (easier if installed from scratch) - ensure port '8080' is in the URL specifier for the site on installation e.g. http://www.abcdefg.org:8080/.  If you stop the IIS service on port 80 then your sites will stop working.

Cheers,

Gareth

Average of ratings: Useful (1)
In reply to Gareth Barnard

Re: Moodle, IIS, & Port 80 Issue

by Ian Levstein -

Gareth

Thanks for getting back to me! I must admit I had not considered using Apache to host all the web sites. I admit I don't much like IIS but that was being used when I came to this position. You have definitely given me something to think about - I actually believe it may be the simplest solution of all.

Best wishes,

Ian

In reply to Ian Levstein

Re: Moodle, IIS, & Port 80 Issue

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

As you have experience with IIS then carry on using IIS to host everything, surely? You don't want to be running two web servers if you don't have to.

You can install PHP for IIS without too much trouble. There's lots of info out there.