Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Enabling Modules' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Enabling Modules
Authored by: bluehz on Jul 10, '03 08:23:25AM
It is possible to load modules in included files. I use this to load PHP in a file /etc/httpd/users/php.conf
# Filename: php.conf
# Description: loads the apache php module

LoadModule php4_module        libexec/httpd/
AddModule mod_php4.c

DirectoryIndex index.html index.php index.php3

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

With regard to loading in a particular order - since the conf files are loaded alphabetically from the "users" dir - I suspect if you wanted to load a module before another you could just make sure the name of the conf file was named alphabetically earlier.

[ Reply to This | # ]