Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005

    apache2 does not have mod_dir.c

    hi all

    i installed apache2 on ubuntu, and i have checked dir.conf with following setting

    <IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.cgi index.php index.xhtml index.htm /cgi-bin/

    and restart the apache2 server, however when i do

    apache2 -l

    I cant see mod_dir.c is loaded. What can i do in this case

  2. #2
    The -l flag only gives you modules compiled-in, which omits most modules.

    From "man apache2"

    -l Output a list of modules compiled into the server. This will not list dynamically loaded modules included using the LoadModule directive.
    -M Dump a list of loaded Static and Shared Modules.
    It is probably being loaded as a shared module - or it needs to be. You don't want mod_dir.c by the way, you want

    If it's not being loaded, make sure somewhere in your conf scheme, you have this line, and that it's not commented out:

    LoadModule dir_module /usr/lib/apache2/modules/

    Replace the path name with wherever "locate" turns up that file. Since you may have just installed Apache, don't forget to "sudo updatedb" before attempting to "locate".

  3. #3
    Must clarify in case you've already read the above -- your <IfModule> tag is correct with mod_dir.c but the file on your disk you are looking for (and the file you will put in LoadModule), is

Similar Threads

  1. mod_rewrite/mod_dir and trailing slash issue
    By emalbum in forum Hosting Security and Technology
    Replies: 0
    Last Post: 03-20-2005, 12:12 AM
  2. Apache2 Help
    By jprice in forum Hosting Security and Technology
    Replies: 6
    Last Post: 01-31-2005, 07:44 PM
  3. How 2 uninstall apache2?
    By Im_Goodspeed in forum Hosting Security and Technology
    Replies: 2
    Last Post: 11-11-2004, 07:39 PM
  4. apache2
    By iamnol in forum Programming Discussion
    Replies: 1
    Last Post: 06-04-2004, 10:11 AM
  5. Apache2 problem
    By allera in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-29-2002, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts