httpd.conf

httpd.conf

by Birdie Newborn -
Number of replies: 9
The installation instructions describe changing the httpd.conf file -- where is that?
Average of ratings: -
In reply to Birdie Newborn

Re: httpd.conf

by Herbert Keijers -
httpd.conf is the (main) configuration file of apache.
On a linux system it it mostly located in /etc/httpd/
You should be "root" of the system to make changes ...
In reply to Herbert Keijers

Re: httpd.conf

by Birdie Newborn -
I'm operating from Mac OS X. In my root folder I see .php, my moodle data folder, logs, public_html, and three files: .groups, .htaccess, and .user -- these files do not seem to be editable. I do not see httpd.conf.
Do I not need it?

In reply to Birdie Newborn

Re: httpd.conf

by Floyd Collins -
On my Mac Server running OS X it is located at /private/etc/httpd/httpd.conf hope this helps.
In reply to Floyd Collins

Re: httpd.conf

by Birdie Newborn -
I'm using a host server, Netherweb. I don't find httpd.conf in my original Moodle download or in the website files. There's a private folder inside my public_html folder, but it's empty.
In reply to Birdie Newborn

Re: httpd.conf

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators

Then it would be very strange if you had access to the file. It's a server configuration file and they won't give that away glimlach

It's not part of the moodle download, it's part of the serversoftware you're moodle installation is placed on. Why would you want to change it ? Normaly the file is ok and if not, most host will make some adjustments or you can overide some settings (see installation doc)

In reply to koen roggemans

Re: httpd.conf

by Birdie Newborn -
I'm just trying to follow instructions in the Installing Moodle document: "Firstly, make sure that your web server is set up to use index.php as a default page...In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this: DirectoryIndex index.php index.html index.htm. Just make sure index.php is in the list."

Do I skip this? No worries?

In reply to Birdie Newborn

Re: httpd.conf

by Thomas Haynes -

Briar...

You'll find out soon enough. I'm betting it is already set if the server is intended to handle php.

Regards...   Tom

In reply to Thomas Haynes

Re: httpd.conf

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Yes, you can skip that. If you're server handels php, then index.php should be in the list, If not, then you'll probably see a directory structure in stead of a proper webpage the first time you access moodle.
In reply to koen roggemans

Re: httpd.conf

by Volker Hegelheimer -
I worked through that last week (with the help of a wonderful colleague). Saving httpd.conf requires root access, but BareBones's BBEdit will let you save the file if you have adminstrator access.
Apparently, the Apache server that comes with Mac OS 10.3.4 is not set up to handle php, so you will have to make the following changes to enable it, which amounts to removing the pound sign, basically):

#LoadModule php4_module libexec/httpd/libphp4.so
->
LoadModule php4_module libexec/httpd/libphp4.so

and

#AddModule mod_php4.c
->
AddModule mod_php4.c

I'd use the find function and type in php. Save it and restart Apache (or the computer) and it should work.

Hope this helps,

Volker