Using Fedora Core 4 using the already Apache and Mysql. I tried using the already installed PHP but mysql support was not setup or shown when using phpinfo().
I recompiled PHP with the following. './configure' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr/bin/mysql_config' '--enable-sockets' '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx' Now all my PHP scripts do not work here is the error I find in the Apache Error logs. [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error: exec of '/var/www/cgi-bin/create_user.php' failed, [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of script headers: create_user.php,> I can use php -i >phpinfo.html and see that PHP works and that mysql is now loaded. I added this to my httpd.conf AddType application/x-httpd-php .php # which php at the command line returns /usr/local/bin/php Do I need to add something in the httpd.d to direct it to /usr/local/bin/php instead of the intial defalt where # which php returned /usr/bin/php Erik