RE: Apache - PHP installation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

 

            Please check if apache has loaded the PHP module.

 

            /usr/local/apache2/bin/apachectl -M        

           

            This will show you the loaded modules. If you see php*_module in the list

 

Regards,

 

Sachin

 

 


From: Naftali Ben-Ami [mailto:naftalib10@xxxxxxxxx]
Sent: Wednesday, September 29, 2010 1:09 PM
To: php-install@xxxxxxxxxxxxx
Subject: Apache - PHP installation problem

 

Hi,

 

I installed Apache 2.2.16 as web server on Windows XP SP3 and PHP/5.3.3

 

Apache server starts fine, and following PHP installation and update of httpd.conf with

 

 


<IfModule dir_module>
    DirectoryIndex index.php  index.html
</IfModule>

 

 # configure the path to php.ini
PHPIniDir "C:\Program Files\php"


LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"
AddType application/x-httpd-php .php

 

The server starts fine and the status line shows: Apache/2.2.16 (Win32) PHP/5.3.3.

 

I tested PHP from the command line it seems to be OK.

 

The problem is that I created index.php and placed it in the server root. When I go to the browser it will show:

 

<?php phpinfo(); ?>

 

So it seems that Apache does not send the scipt to PHP.

 

What could be the cuase for this?

 

Thanks,

 

Naftali

 


 


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux