Discussion:
[PHP-INSTALL] Apache - PHP installation problem
Naftali Ben-Ami
2010-09-29 07:38:40 UTC
Permalink
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
Lester Caine
2010-09-29 15:28:51 UTC
Permalink
Post by Naftali Ben-Ami
IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
Just drop the lines wrapping the DirectoryIndex line ... the dir_module package
is obviously not being loaded.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
sachin.gamre
2010-09-30 05:46:59 UTC
Permalink
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:***@gmail.com]
Sent: Wednesday, September 29, 2010 1:09 PM
To: php-***@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

Loading...