Hi,
I am working on a server that has RedHat 7.3 installed. RedHat 7.3 have PHP, Apache and Mysql already installed on it...

I have my php files in document root folder and when I try to access them through the browser.. It opens the actual source code

(like When I want to open a php-file like phpinfo.php the browser (Internet Explorer) shows only the source code of the php-script.. It gives me an option of either saving or opening it...)

I tried looking through httpd.conf file .. Its loading the modules for php .. It has this line at the end of the file...
AddType application/x-httpd-php .php

Is there anything else I have to do.. Should I try reinstalling php in a different folder...

I don't know.. Please help..

Thanks a lot in advance
Shivani

    If you wanna install as an apache module, then you're gonna want to add the "LoadModule" bit to your httpd.conf file.

    Add LoadModule php4_module c:/php/sapi/php4apache.dll to the bottom of the list of modules.

      Thanks for your reply...

      I am working on linux server and which module do I have to load for that.. There is no module called php4apache.dll anywhere on the linux server...

      Can you help me more for this..

      Thanks a lot agian

      Shivani

        7 days later

        1). Did you restart Apache server after changing in the httpd.conf file.
        How was php configured as an added module or with apache itself?

          Write a Reply...