You are not logged in.

#1 2009-07-12 19:17:35

siggma
Member
Registered: 2009-07-08
Posts: 5

[SOLVED] Apache dir_mod fails to load with no apparent error

I'm testing Arch as a possible home server replacement. I'm familiar with PHP and Apache so this is not my first time up on lookout mountain.

I installed LAMP according to this http://wiki.archlinux.org/index.php/LAMP
Created a phpinfo.php in /srv/http and navigate to it.

First try I get the php code, indicating php is not loaded or not configured correctly.

Poking around in extra/php5_module.conf I notice the <IfMod dir_mod> around <IfMod php5_mod>
Commented the <IfMod dir_mod> tags and restarted

# Required modules: dir_module, php5_module

#<IfModule dir_module>
        <IfModule php5_module>
                DirectoryIndex index.php index.html
                AddHandler application/x-httpd-php .php
                AddHandler application/x-httpd-php-source .phps
        </IfModule>
#</IfModule>

phpinfo.php displays normal phpinfo output as it should indicating it's now loading correctly.

Further checking indicates dir_module is enabled:

LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf
...
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so

And exists:
[root@vbox modules]# ls mod_dir.so
mod_dir.so
[root@vbox modules]#

Is this a known issue or am I missing something?

Yes, apache has been restarted...

Log output:
[root@vbox modules]# tail -f /etc/httpd/logs/error_log
[Sun Jul 12 04:49:46 2009] [notice] caught SIGTERM, shutting down
[Sun Jul 12 04:49:53 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jul 12 04:49:53 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jul 12 04:49:53 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 12 04:49:53 2009] [notice] Digest: done
[Sun Jul 12 04:49:54 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 configured -- resuming normal operations
[Sun Jul 12 04:53:09 2009] [notice] SIGHUP received.  Attempting to restart
[Sun Jul 12 04:53:10 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 12 04:53:10 2009] [notice] Digest: done
[Sun Jul 12 04:53:11 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 configured -- resuming normal operations

Never mind, I included the php config before the module was loaded in http.conf

Gufus strikes again.

Last edited by siggma (2009-07-12 19:36:51)

Offline

Board footer

Powered by FluxBB