RE: [PHP-INSTALL] Apache - PHP installation problem
| From: | sachin.gamre | Date: | Thu, 30 Sep 2010 05:46:59 +0000 |
| Subject: | RE: [PHP-INSTALL] Apache - PHP installation problem | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-19980@lists.php.net to get a copy of this message | ||
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@gmail.com]
Sent: Wednesday, September 29, 2010 1:09 PM
To: php-install@lists.php.net
Subject: [PHP-INSTALL] 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