AddModule is a 1.3.x command. It is rejected in Apache 2.0.
I read in the documentation (somewhere) that Apache 2.0 treats PHP as a filter, not a module.
As far as I can find, the configuration required is:
------------------------- Start of PHP config ------------------
LoadModule modules/libphp4.so
AddType application/x-httpd-php .php
Alias /phpnuke/ /var/www/phpnuke/html/
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
DirectoryIndex index.php
------------------------ End of PHP config -------------------
The main httpd.conf file has a line "Include conf.d/*.conf". The above config lines are in "conf.d/php.conf".
PHP was built with
./configure \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-xml \
--enable-versioning \
--with-config-file-path=/etc/php4
php.ini is a copy of "php.ini-dist" with possibly very minor changes. I haven't figured out the settings in there yet...
For what it is worth, Apache-2.0.45 was built including (this is a very abbreviated list)
--enable-mods-shared=ALL
--enable-ext-filter
--with-mpm=prefork
--enable-so
--disable-asis
(I don't remember why "disable-asis" is in there...)
Can't think of any other important things right now...
--daveo