Syntax error on line 160 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
/usr/sbin/apachectl start: httpd could not be started
--------------------------------------------------------------
root@core# find / -name mod_php4.c
/usr/local/directadmin/customapache/php-4.3.11/sapi/apache/mod_php4.c
FreeBSD core.liquidmemory.net 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #1: Tue Aug 9 09:12:32 EDT 2005 root@server:/usr/obj/usr/src/sys/GENERIC i386
--------------------------------------------------------------
Started off with a clean install, followed by:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
/usr/sbin/apachectl start: httpd could not be started
--------------------------------------------------------------
root@core# find / -name mod_php4.c
/usr/local/directadmin/customapache/php-4.3.11/sapi/apache/mod_php4.c
FreeBSD core.liquidmemory.net 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #1: Tue Aug 9 09:12:32 EDT 2005 root@server:/usr/obj/usr/src/sys/GENERIC i386
--------------------------------------------------------------
Started off with a clean install, followed by:
- Bash
- sudo
- screen
- spinner
[/list=1]
After which I installed DirectAdmin.
Ive some other threads with reference to a dirty fix. But Im not too comfy with that idea.
----------------------------------------------------
Also check this post out.
If I use /usr/local/etc/rc.d/httpd start it starts up just fine.
The problem is:
If I restart the apache from the DirectAdmin CP it will fail.
So how do we fix this ?
UPDATE: Nope that doesnt work either:
PHP:root@core# /usr/local/etc/rc.d/httpd start Starting httpd: [ OK ] root@core# /usr/local/etc/rc.d/httpd stop Stopping httpd: [ FAILED ] root@core# /usr/local/etc/rc.d/httpd start Starting httpd: [ OK ] root@core# /usr/local/etc/rc.d/httpd start Starting httpd: [ OK ] root@core# ps -ef |grep httpd
------------------------------------------------
Here is the relevent part from /etc/httpd/conf/httpd.conf
PHP:<IfDefine HAVE_PHP4> LoadModule php4_module modules/libphp4.so </IfDefine> --------------------- ###<IfDefine HAVE_PHP4> AddModule mod_php4.c ###</IfDefine>
-------------------------------------------------
The dirty fix:
PHP:#<IfDefine HAVE_PHP4> LoadModule php4_module modules/libphp4.so #</IfDefine>
Inspired by lookin at Lhadatt's config And some other posts.
Last edited: