Opened 19 years ago

Closed 19 years ago

#3987 closed defect (duplicate)

BUG: apache2 won't start with php4

Reported by: joelmichael@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: tom@…
Port:

Description

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

Change History (3)

comment:1 Changed 19 years ago by tom@…

Cc: tom@… added

comment:2 Changed 19 years ago by peter@…

(In reply to comment #0)

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

Seems to be the same problem as in bug 4010 (Wrong directions from PHP4). Have a go at the posted patch there that corrects the wrong apxs command and modules directory. Hope that helps.

comment:3 Changed 19 years ago by mww@…

Resolution: duplicate
Status: newclosed
Summary: apache2 won't start with php4BUG: apache2 won't start with php4

* This bug has been marked as a duplicate of 4010 *

Note: See TracTickets for help on using tickets.