simple php in html file running under Apache 2.4 with php 5.5 issues

Simple Html script

[code]

It works!

<?php echo "php works"; ?> [/code] Web page shows "It works!" but not "php works"

Have edited http.conf

added line under a long list of LoadModule section.
LoadModule php5_module “c:/php/php5apache2_4.dll”

added line under section.
AddType application/x-httpd-php .php

Added to end of file.

PHPIniDir “C:/php”

Is this correct or am I putting these lines in the wrong place.
I have restarted Apache and it starts fine.

Im running the setup under windows 7, in case that makes any difference.

Found my own solution .
Followed instructions from this webpage , worked for me .

www.premiumwebbloghosting.com/2012/03/how-to-install-php-on-windows-7.html

Seems theres possibly some missing config in the new php documentation under manual install for windows.

Sponsor our Newsletter | Privacy Policy | Terms of Service