Apache web server.

Apache web server.

by Md. Roslan Zainol -
Number of replies: 13
I've just succeded installing moodle on my red hat 8. It seems running preety smooth on this box. The only problem is I can not access it through my other pcs. Before having moodle on it my web server is running well.
Average of ratings: -
In reply to Md. Roslan Zainol

Re: Apache web server.

by Ian Semey -
What address is your moodle installation?
In reply to Ian Semey

Re: Apache web server.

by Md. Roslan Zainol -
first of all thanx for your reply.

For a start let me explain the scenario. I am a teacher in one of the secondary school in malaysia. I am the ICT coordinator of my school computer lab and network. I am planning to use some sort of e-learning system for my school local network, and luckily I found moodle. Before I really get into business of setting up the system in school I tried it on my home pcs. I have 2 pcs and one laptop. 1 is running RedHat 8 workstation while others are running windows XP. They are not using public IP address neither DNS name.Before I have moodle installed, I can access the apache web server test page and a few .php (RH 8) on my other pcs by typing the address (http://xx.x.x.xx or http://localhost or http://localhost/something.php).
The first time I set up moodle I use localhost as the wwwroot but now I change to xx.x.x.xx. The result is still the same.
I'll attach config.php and http.conf for your referrence.

In reply to Md. Roslan Zainol

Re: Apache web server.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Show us the contents of your config.php file please. (Remove the db password though)
In reply to Howard Miller

Re: Apache web server.

by Md. Roslan Zainol -
first of all thanx for your reply.

For a start let me explain the scenario. I am a teacher in one of the secondary school in malaysia. I am the ICT coordinator of my school computer lab and network. I am planning to use some sort of e-learning system for my school local network, and luckily I found moodle. Before I really get into business of setting up the system in school I tried it on my home pcs. I have 2 pcs and one laptop. 1 is running RedHat 8 workstation while others are running windows XP. They are not using public IP address neither DNS name.Before I have moodle installed, I can access the apache web server test page and a few .php (RH 8) on my other pcs by typing the address (http://xx.x.x.xx or http://localhost or http://localhost/something.php).
The first time I set up moodle I use localhost as the wwwroot but now I change to xx.x.x.xx. The result is still the same.
I'll attach config.php and http.conf for your referrence.

In reply to Md. Roslan Zainol

Re: Apache web server.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Nice to hear about all the exotic places where Moodle does its job!

Coming back to your problem, you have to start at the network level. Say you've installed Apache on your Linux machine. Then that becomes the _server_. Let's assume, you gave it the (private) IP address 192.168.10.5.

Now start a browser in one of the Windows machines and point it to the URL http://192.168.10.5 You should get some greetings page from your (Linux) server. Find out the where that page is (it the DocumentRoot of your httpd.conf) and put a very simple file named phpinfo.php with the following content into that directory:
<?php phpinfo(); ?>

Now call http://192.168.10.5/phpinfo.php in the browser above. You should see a very long table with all sorts of system information.

Once everything works, unpack moodle into DocumentRoot/moodle. Now
point your browser to http://192.168.10.5/moodle/

After that everything should be self-explanatary.
In reply to Md. Roslan Zainol

Re: Apache web server.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
can access the apache web server test page and a few .php (RH 8) on my other pcs by typing the address (http://xx.x.x.xx or http://localhost or http://localhost/something.php).

Yes, but which is it? You certainly won't access your Redhat machine from one of the windows machines by husing http://localhost/ - that will try and access a web server (if there is one running, probably not) on the Windows machine. You first have to be sure that you have a path from your windows machines to your Redhat box. You need to do http://x.x.x.x/ (using IP of your RedHat box) on every windows machine and make sure you get the RedHat apache default page. If this doesn't work, then this will need sorted first. If this does work then your config.php looks fine and it should work.

If it doesn't work, what exactly do you see on the screen - and what do you get in the apache error_log file (/var/log/apache2/error_log probably)?

In reply to Howard Miller

Re: Apache web server.

by Md. Roslan Zainol -
I've followed all of your suggestion but still get "the page cannot be displayed" screen on my other pcs. On my linux is fine. I don't know whether the problems come from linux box or windows box.I'm getting frustrated and feel like to uninstall the whole things including linux and start it all over again. Please help. Just tell me what other conf files you want to see. I'm willing to upload the files.
In reply to Md. Roslan Zainol

Re: Apache web server.

by Herbert Keijers -
If you're webserver was running before (as you write) there is no need to reïnstall Red Hat again. Moodle doen't change your webserver settings.
You should get your normal pages on
http://10.1.1.10/

unless ... by any chance you activated your firewall in Red Hat ?

Start with simple ping commands to your RH machine.
Can you do a telnet 10.1.1.10 80 from your XPbox ?



In reply to Herbert Keijers

Re: Apache web server.

by Md. Roslan Zainol -
thank youuuuuuuuuuu.....................
I've just found out that the firewall is turned on.
Thank you very much for your all concerns and suggestions.
In reply to Md. Roslan Zainol

Re: Apache web server.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
If you ever to get a client-server setup in a LAN going, and later in the internet, you have to proceed systemetically. My previous posting and by others like Howerd and Herbert have given you a plan to work out.

Just saying "I get this error" won't take anybody further. You have to say where, and what happend in the previous steps, and what those steps exactly were!