OMG PHP Broken HELP!!

BrianUK

Verified User
Joined
Feb 4, 2006
Messages
89
Hi All

I tried to recompile php with imap using this thread http://www.directadmin.com/forum/sh...40&perpage=20&highlight=php imap&pagenumber=1

Had a slight problem but managed to sort it using this http://www.directadmin.com/forum/sh...=8668&highlight=/usr/bin/ld+cannot+find+lltdl

--------

All recompiled ok

Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Enabling register_globals...
PHP Installed.

However when trying to restart apache i get

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

if i try commenting out and doing another restart i get

Syntax error on line 30 of /usr/local/directadmin/data/users/blah/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

if i comment out line 30 it goes onto 31 then onto next user etc

PLEASE HELP!! this is on freebsd 5.3 btw
 
Any idea what the problem was?

I have the same error when I do "httpd configtest"

Syntax error on line 30 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration
 
If your running FreeBSD you can't restart apache using apachectl

but instead have to use /usr/local/etc/rc.d/httpd retsart

hope this helps
 
Back
Top