I recently installed FC3. Added PHP 4.3.10 via rpm with -Uvh. I have httpd starting on boot. Placed a phpinfo script in the var/www/html/ directory, and when I point my browser to it, I get a blank screen. I tried this as part of a troubleshooting tip for a project to access a small local MySQL 4.1.8 database (again, added separately) from PHP, which I could not get working. Interestingly, although the phpinfo script returned nothing, I was able to get another script to return some text results below the <?php line, just no data. The MySQL was and is working, as the same queries came back fine from shell and the MySQL Query Browser. So I started testing PHP.......
The code for the script is as follows, and will be obvious to most:
Code:
<?php
phpinfo();
?>
Pretty simple. The welcome page shows Apache 2 running (or at least that is what it says, as I can only find the httpd directory - there is no apache2 directory in /etc/). A check of the /conf/httpd.conf file shows it is blank. But /conf.d/ has the php.conf file in it, with the proper load line:
Code:
LoadModule php4_module modules/libphp4.so
as well as
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
libphp4.so is in the /modules directory.
I know I am missing something here. Happy to post the contents of any file or directory necessary to help solve this problem - just don't know what else to tell you right now.
Any help is greatly appreciated!