Page 1 of 1

php 5 problematic with apache 2.2

Posted: Tue Jun 23, 2009 7:13 am
by mangologin
hello,

I have installed both php and apache 2.2 and have made suitable changes to the httpd.conf file like
#PHP5
LoadModule php5_module "C:/server/php/php5apache2_2.dll"

also configured my php.ini file,(changed my extension directory to : extension_dir = "C:/server/php/ext" )
and i gave http://www.myserver.dev in my apache installation!

and also added the php5 to my document root,but now whenever i create php scripts along with html,my php scripts are displayed as they are ,whereas my html scripts are getting executed.Anybody knows how to solve the same?

please help

thanks!

Re: php 5 problematic with apache 2.2

Posted: Thu Jun 25, 2009 11:53 am
by Sephern
Did you install PHP after Apache? If you did, you can set the options so it pre-configures your server to work with PHP, and makes all the edits to relevant changes to conf files. It might be worth doing this just in case you did something wrong.

You are saving your files with a .php extension right? :p