Hi,
I have installed MySQL, Apache and PHP on my PC. I think Apache works because when I "http://localhost" I get the "It Works" reply.
I then want to test PHP. I created a simple test file "phpinfo.ph p" with the text
. When I "http://localhost/phpinfo.php" the browser displays the php code rather than the expected php information.
Can someone tell me where to look for the problem???
details:
the test file "phpinfo.ph p" is in the same folder as "htdocs/index.html"
I have modified the Apache "httpd.conf " file as follows:
LoadModule php5_module "c:/program files (x86)/PHP/php5apache2_2.d ll"
AddType application/x-httpd-php .php
PHPIniDir "C:/program files (x86)/PHP"
Apache not recognising .php extension? Can anyone help ????
I am using Windows 7 (64).
thanks
I have installed MySQL, Apache and PHP on my PC. I think Apache works because when I "http://localhost" I get the "It Works" reply.
I then want to test PHP. I created a simple test file "phpinfo.ph p" with the text
Code:
<?php phpinfo(); ?>
Can someone tell me where to look for the problem???
details:
the test file "phpinfo.ph p" is in the same folder as "htdocs/index.html"
I have modified the Apache "httpd.conf " file as follows:
LoadModule php5_module "c:/program files (x86)/PHP/php5apache2_2.d ll"
AddType application/x-httpd-php .php
PHPIniDir "C:/program files (x86)/PHP"
Apache not recognising .php extension? Can anyone help ????
I am using Windows 7 (64).
thanks
Comment