I'm trying (as per the subject line) to install apache2 and PHP5 on slackware 9.1.
I've uninstalled PHP4 and apache1.3.
I've installed the apache2 and PHP5 .tgz packages. I've installed the extra library dependencies that apache2 needs.
Now I get the following error when I try and start apache:-
Syntax error on line 8 of /etc/apache2/mod_php.conf: Invalid command 'AddType', perhaps mis-spelled or defined by a module not included in the server configuration
All seems in order to me. There is a line above the line 8 of mod_php.conf which loads the PHP5 library, i.e.:-
LoadModule php5_module lib/apache2/libphp5.so
No errors are reported for this line.
All the lines were produced by script so typos are unlikely.
Are there any old libraries in slackware 9.1 that may need updating to get apache2 to work? (I.e. libraries that aren't missing but are too old).
Any other ideas?
Chris Green writes:
Now I get the following error when I try and start apache:-
Syntax error on line 8 of /etc/apache2/mod_php.conf: Invalid command 'AddType', perhaps mis-spelled or defined by a module not included in the server configuration
All seems in order to me. There is a line above the line 8 of mod_php.conf which loads the PHP5 library, i.e.:-
LoadModule php5_module lib/apache2/libphp5.so
No errors are reported for this line.
Perhaps a silly question, but you are loading mod_mime first, aren't you? mod_mime I believe is what provides AddType.