I have installed PHP 5.2 from source (we're moving some sites that require 5.2, unfortunately) to a CentOS box. PHP is compiled from source, but when I try to start apache I get the following error:
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: php_sig_jpg
I have libpng, libpng-devel, gd, gd-devel, libjpeg, and libjpeg-devel all installed as well but can't figure out what could be causing this.
Edit: adding the contents of /etc/httpd/conf.d/php.conf
LoadModule php5_module modules/libphp5.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch>