LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errors in Using PHP 5 and Apache2 (https://www.linuxquestions.org/questions/linux-software-2/errors-in-using-php-5-and-apache2-554003/)

Cally 05-15-2007 05:13 AM

Errors in Using PHP 5 and Apache2
 
Hi!

I am new in using Linux.

I am installing PHP 5 and apache2 as requred modules for mapserver.

I have installed and compliled the php 5 and apache 2. I am getting problem in displaying the index.php file with the following codes <?php phpinfo(); ?> as the browser display my source code. I have stored the file under "/var/www/html" .

Please help.

reddazz 05-15-2007 11:39 AM

You need to make sure you have the following lines in your httpd.conf
Code:

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php



All times are GMT -5. The time now is 06:20 AM.