Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46758

How to configure correctly the httpd.conf file

$
0
0
by Aaricia Thorgalson (aka Mari Cruz García).  

Dear moodlers,

This may be an easy question for you, but it is the first time that I configure a Moodle site in CentOS from scratch. I would like to highlight that I am an educational technologist, not a network technician, so please don't take things for granted in your answer.

I have installed Apache and MySQL following Moodle documentation.

I have created the database, grant the right permissions to the moodle database user, and I have given the right permissions to the folders:

var/www/html/moodle

var/www/moodledata

always following instructions in documentation.

I have checked that in the config.php of Moodle, all the variables have the right values.

My Moodle site is a virtual machine, through which I access using Putty and WinSCP.

I have given an IP address and a domain name for my moodle site. Both the domain and the IP address are only accessible from the Internet.

If, using the web browser, I want to have access to my moodle site, either typing the  domain name (or the IP address, it does not matter), I don't understand if I have to enable a virtual host in the httpd.conf file or in a file created in /etc/apache2/sites-available/ as it is suggested here:

http://docs.moodle.org/20/en/Step-by-step_Installation_Guide_for_Ubuntu#If_404_page_is_displayed

At the moment, in the httpd.conf I have enabled the following bit:


# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
 ServerAdmin ServerAdmin root@localhost
 DocumentRoot /www/html/moodle_LZ
ServerName www.diabetes.cmdn.dundee.ac.uk:80
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

and

Listen 80

 

However, if I type in my browser:

www.diabetes.cmdn.dundee.ac.uk:80

I get the following message:

'Server not found    
 
Firefox can't find the server at www.diabetes.cmdn.dundee.ac.uk.'

I don't know if this is because:

a) I have not configured the virtual host appropiately.

or

b) IT has not set up the right firewall permission/DNS configuration or whatsover, so that I can view my Moodle site from the browser.

Any suggestion is very much appreciated because I have been in this situations for weeks now, and the IT Department says that everything is right in their site.

Thank you very much for your help.

 

 

 


Viewing all articles
Browse latest Browse all 46758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>