On RedHat 7.3 running Apache 1.3.23 compiling PHP 4.2.3:
I recently recompiled PHP on my server to add Verisign Payflow and mcrypt support and now Apache outputs the scripts in text format in the browser.
I doublechecked the configure options and sure enough, this was there:
--with-apxs=/usr/sbin/apxs
In httpd.conf AddModule mod_php4.c is in place just after php and php3.
Above, when <IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine> is in the same location in the load order.
ServerRoot is "/etc/httpd" and libphp4.so is sitting in /etc/httpd/modules
When I run
/usr/sbin/apachectl start
I get
/usr/sbin/apachectl: line 198: 14797 Segmentation fault $HTTPD
/usr/sbin/apachectl start: httpd could not be started
when I comment out both the AddModule and the LoadModule for php4 I get no error, httpd starts but parses no php (of course).
Could the .so file be bad? Is there something wrong with php or is this just an Apache issue? Is there something I can do to the apachectl script to fix it?
I tested a simple "hello world" echo through php from the command line and it worked just fine.
I've read all the documentation on mod_so and as far as I can tell I've done everything right. 😕