+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 46
Virtual Learning Platforms Thread, Moving Moodle! in Technical; Originally Posted by witch Thanks I'm sure that it does work fine with apache and I would prefer to leave ...
  1. #16


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by witch View Post
    Thanks
    I'm sure that it does work fine with apache and I would prefer to leave it there (if it ain't broke, don't fix it) but the boss wants to see if it can be moved - I'm not sure why. - something to do with ports and the website - we could put it on the same port and then people from outside don't need to type '81' after the addy which apparently they are incapable of doing. (If this makes no sense, humour me - I got about 3 hours sleep last night - went to see a film far too late and couldn't stop brain)
    mpm_common - Apache HTTP Server

    For example, to make the server accept connections on both port 80 and port 8000, use:

    Listen 80
    Listen 8000
    in the httpd.conf and restart apache

  2. Thanks to CyberNerd from:

    witch (25th June 2009)

  3. #17

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    Sorry, I have no idea what any of that means...How do I get it to listen to port 8000 - what would the address bit be?

    I am a hardware engineer at heart and I just don't really get what I am doing here! (what is this place?)

    Oh, and will there be a problem with the new server being 2008?
    Last edited by witch; 25th June 2009 at 01:44 PM.

  4. #18


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Sorry, I have no idea what any of that means...what will the 'listen' bit do? I wouldn't want to break anything (again)
    the listen bit is a line in a file called httpd.conf. listen determines the port that the webserver listens on - ie http://servername:81 means that it's set to:

    Code:
    listen 81
    actually, it could be

    Code:
    listen xxx.xxx.xxx.xxx:81
    where x is ip address

    if you change it to 80 then you won't need to type in :81 - but there may have been another reason for this (if IIS is installed on the same server for example)
    try it, if it breaks you have backed up the httpd.conf file - right

  5. #19

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    We only have one server so IIS is definitely installed on the same one - what do I do in this case?

  6. #20


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by witch View Post
    We only have one server so IIS is definitely installed on the same one - what do I do in this case?
    assume you don't need iis....

    stop the iis service, wait for the phone to ring. then change the "listen 81" to say "listen 80".
    restart apache. if no one complains then uninstal iis.

  7. #21

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    No, I couldn't do that - it is definitely used here - we had to go into it to find the intranet page so that we could set up a link to Moodle.
    So does that mean I can't move Moodle from Apache to IIS then? Still confused
    Last edited by witch; 25th June 2009 at 02:08 PM.

  8. #22

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,480
    Thank Post
    372
    Thanked 657 Times in 537 Posts
    Rep Power
    162
    To get Apache running...

    Add another IP to the server

    Then enter IIS, go into the properties panel, change from (All Unassigned) to the old IP.

    Open the httpd.conf and change the line that reads

    listen 81
    listen xxx.xxx.xxx.xxx:80

    Replacing xxx.xxx.xxx.xxx with the new ip.

    Restart IIS, (re)start Apache.

  9. #23

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    Quote Originally Posted by matt40k View Post
    To get Apache running...

    Add another IP to the server

    Then enter IIS, go into the properties panel, change from (All Unassigned) to the old IP.

    Open the httpd.conf and change the line that reads

    listen 81
    listen xxx.xxx.xxx.xxx:80

    Replacing xxx.xxx.xxx.xxx with the new ip.

    Restart IIS, (re)start Apache.
    Er....I've already got apache running AND IIS. Did you mean that? Or what do you mean? What would that do? Why would I need to add another IP to the server?
    Goodness I am confused...

    We already have IIS and Port 80 is taken by something or other (website?). So, we put the moodle interface on port 81. But people can't type 81 at the end of the addy . So we want to put moodle on 80..I think...so would your solution do this?
    or maybe I just want to be a pineapple

  10. #24


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,701
    Thank Post
    352
    Thanked 805 Times in 720 Posts
    Rep Power
    348
    You're spot on Witch, you have IIS on your current IP on port 80 and to avoid people adding :81 to their url you would add a secondary IP to the server and bind Apache on port 80 to that and in turn bind IIS on the old IP on port 80 otherwise IIS (and apache in fairness) will by default try and use all IPs.

  11. #25

    Join Date
    Jan 2007
    Posts
    425
    Thank Post
    7
    Thanked 32 Times in 27 Posts
    Rep Power
    21
    Witch.. what I would suggest you do is this:

    I presume you have more than one dns hostname.. website would be www.schoolname.county.sch.uk and moodle would be moodle.schoolname.county.sch.uk - if this isnt the case, and moodle is usually accessed at www.schoolname.county.sch.uk:81 [same DNS as the website], you will need to get an additional dns host added [probably at the LEA].

    Since one of the earlier release of the HTTP specification, you can redirect based on hostname - ie: moodle.schetc and www.schetc can be directed to different places despite being on the same ip and port. What I would suggest is that you move Apache onto port 80, and IIS onto 81. You can then configure apache to 'proxy' any requests sent to www.schetc across to IIS and handle moodle itself.

    You can add lines similar to this to Apache:

    <VirtualHost *:80>
    ServerName www.schetc
    ErrorLog logs/error_log
    CustomLog logs/access_log common
    ProxyRequests Off
    ProxyPass / http://localhost:81/
    ProxyPassReverse / http://localhost:81/
    </VirtualHost>

    <VirtualHost *:80>
    ServerName moodle.schetc
    ErrorLog logs/moodle.schetc_error_log
    CustomLog logs/moodle.schetc_access_log common
    DocumentRoot c:\path\to\moodle
    </VirtualHost>

    A good time to do this would be as part of your server changeover.

    Kyle

  12. #26

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    So is matt40k and kmount's solution the same as kyle williamsons?

    I'm not sure if I need to add another IP to the server (where would I get this?) or get another DNS hostname?

    This learning curve is becoming a bit Everest

  13. #27

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,480
    Thank Post
    372
    Thanked 657 Times in 537 Posts
    Rep Power
    162
    Not sure kylewilliamson method would work.

    Basically IIS and Apache can't share the same port.

    Witch, is the server 2008? If you put a new server on the network, where would you get the IP address from?

  14. #28


    Join Date
    Mar 2008
    Location
    Surrey
    Posts
    2,274
    Thank Post
    123
    Thanked 345 Times in 284 Posts
    Blog Entries
    4
    Rep Power
    139
    Two websites can't share the same IP address and port. It causes fun stuff to happen.

    However they can have different IP addresses and the same port, or different ports and the same IP address.

    Just trying to clarify as I think poor witch is getting a bit boggled.

    So adding another IP address will let you put the moodle site on that (new) address, and on port 80. You'll then need to get any requests for the moodle site going to that IP address by getting a DNS record set up to point at it.

    That's probably the simplest way to do it, and it avoids having to move to IIS where you'd still need to add another IP address.

  15. #29


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,701
    Thank Post
    352
    Thanked 805 Times in 720 Posts
    Rep Power
    348
    Two websites can't share the same IP address and port. It causes fun stuff to happen.
    Two websites can, two webservers can't though.

    I agree, the easiest solution would be to add an additional IP address, tell apache to use that one, tell IIS to use the old one.

  16. #30

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,349
    Thank Post
    1,489
    Thanked 2,573 Times in 1,789 Posts
    Rep Power
    774
    You are all saying different things again!
    Yes we are moving to Server 2008 and presumably will use the same IP address as the current server - we only have one, and will continue to only have one!
    So, basically I need a new IP address and tell apache to use that one for moodle, and IIS to use the old one for the website....
    How do I get a new IP address? (obviously we have a range -can I just pick an unused one?)
    Do I need the DNS bit?
    Please can I have EXACT instructions on how to set up the system so that this will work. Words of one syllable please guys, with instructions on how to find the various bits I need written out step by step with no bits left out.
    Frightened of breaking my bosses new lovely Moodle site? Me? Never!



SHARE:
+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Moodle - Word template to create Moodle XML Quiz
    By lasercat in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 25th October 2010, 01:19 PM
  2. Moving away from RM
    By MJoyeux in forum Wireless Networks
    Replies: 22
    Last Post: 10th May 2010, 02:30 PM
  3. Moving moodle to IIS
    By Quackers in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 27th June 2007, 02:42 PM
  4. Moving On
    By Nij.UK in forum General Chat
    Replies: 5
    Last Post: 20th March 2007, 09:28 PM
  5. Moving moodle?
    By maniac in forum Virtual Learning Platforms
    Replies: 26
    Last Post: 17th March 2007, 11:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •