id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	port
3987	BUG: apache2 won't start with php4	joelmichael@…	macports-tickets@lists.macosforge.org	"I just installed a fresh DarwinPorts today.  I The first thing I did after running ""port selfupdate"" was 
""port install php4 +apache2 +gd +crypt +curl +mysql4 +postgresql +xslt"".

Compiling it with postgresql didn't work, I'll make another bug for that, so I dropped it from my 
variants list.  But after successfully installing it, running 'apxs -a -e -n ""php4"" libphp4.so' and copying 
over php.ini and pear.conf from the standard distribution versions, I run into this error when I run 
""apachectl start"".

locke:/usr/local/etc root# apachectl start
Syntax error on line 275 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: Symbol not found: 
__cg_jpeg_resync_to_restart\n  Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO\n  
Expected in: /usr/local/lib/libJPEG.dylib\n

Of note is that every error message I have received along these lines prints ""\n"" instead of an end line.  I 
uninstalled, and tried installing it without the +gd variant, presuming that might be responsible for the 
libjpeg errors.  Sadly, it fails even without +gd with the same error.

The ""syntax error"" is not actually a syntax error, but rather the LoadModule line in httpd.conf, which 
was added by the apxs command:

LoadModule php4_module        modules/libphp4.so"	defect	closed	Normal		ports	1.0	duplicate		tom@…	
