Hello,
I am new to this, and having trouble installing apache and php correctly. Any help would be greatly appreciated!
I have installed Apache 2.2.17 and it seems to be fine. I get "it works" when I type http://localhost/ into my browser. I have downloaded the zip files for php 5.3.3 VC6 x86 Thread Safe into c:\php. I've renamed php.ini-development as php.ini and followed instructions to configure apache for php including adding the following lines to the httpd.conf file:
LoadModule php5_module "c:/php/php5apache2_2.dll" LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"
I've saved a file test.php in the htdocs file in the apache folder. The file contains the text <?php phpinfo(); ?>
When I enter http://localhost/test.php into my broswer then I just get the text <?php phpinfo(); ?>. But I can run the php file from the command line successfully.
I have looked for other posts from people with similar issues, but haven't been able to find a solution.
Thanks in advance for any help anyone can give me.