When I try to run any scripts (such as <?php phpinfo();?> ) all I get is the raw code.
We are on a new server and I can’t figure out why php is not working.
It’s Redhat 7.2, php 4.0.6 Apache 1.3.22.
First I made sure that php was installed
$ whereis php
php: /usr/bin/php /etc/php.ini /usr/lib/php /usr/include/php /usr/share/php
Next I checked the httpd.conf file, and even downloaded it onto another Redhat 7.2 machine and it worked fine.
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
Finally I checked the php.ini file. I download the php.ini file to my test Redhat 7.2 machine and ran a diff with a working copy of php.ini and it told me that the files were exactly the same.
Anyone have any suggests as to why php might not be working for me?
Thanks,
Adam