Naman Latif wrote:

Hi,
I installed PHP 4.3.4 on Apache 1.3.29 Webserver running on Solaris 8.
I added the following in my httpd.conf file

++++++++++++++++++++++++
LoadModule php4_module        libexec/libphp4.so

<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
+++++++++++++++++++++++

A test.php (<?PHP phpinfo(); ?>) file exists in Apache htdocs directory.
However when I try the address http://www.address.com/test.php

The php file is displayed as Text on the browser, instead of the
function phpinfo() being executed.
Any help will be greatly appreciated.

Namen,

It could be the mod_mime is not there so the <IfModule> condition is not being filled. In these circumstances I purposely put a syntax error in, restart Apache and see if it complains. Try changing AddType to, say, AddTypeFred and restart Apache. If it does not complain then you will know that the mod_mime condition is not being fulfilled.

Hope this helps.

Chris

Reply via email to