Our server administrator just sent me a message telling me that he installed Apache 2 and Moodle will not work with it. Does anybody have Apache 2 installed in their servers with Moodle? Does anybody know of any conflict between Apache 2 and Moodle or have any guess as to what could be going on?
http://parles.upf.es:80/moodle --> Moodle with apache 1.3, no problems
http://parles.upf.es:81/moodle --> Moodle with apache 2.0
Any help will be greatly appreciated.
Could you describe your problem more clearly?
I installed Moodle 1.5.1 and Apache 2.0.54 on Windows and they worked well together.
Well, I guess this narrows it down to some kind of installation problem. In fact, after sending this message, the administrator did a clean installation of Apache 2 and Moodle in a different server and it is working fine as well. The server where it doesn't work is a server where we also have apache 1.3 installed. Too bad because this is where we need it and fixing it will be complicated. We cannot do a clean install since we have many other applications and data in that server.
You can't have two apache servers running on the same machine, unless you assign a different nondefault port to one of them. For one of the two servers you need to change the default setting in httpd.conf from
to something like
You would then access this apache server with urls of the form
for instance. If you are running Moodle off this server, you would have to set
$CFG->wwwroot = 'http://machine_domain_name:8080/moodle/';
Note 1: You have to make sure that the alternate port you assign isn't used by some other server program running on the machine. 8080 is usually safe - there is an informal convention to use 8080 for a second webserver.
Note 2: In some apache configurations the port is specified by a 'Port' directive, rather than a 'Listen' directive. In that case, change
Hello Mr. Fiedorowicz.
I am trying to setup Apache-Moodle in port 81, but I really do not want that appears into the URL.
Do I have to setup something into my firewall, proxy, etc?
Thank you very much.