php 5 problematic with apache 2.2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
mangologin
Forum Newbie
Posts: 3
Joined: Tue Jun 23, 2009 7:07 am

php 5 problematic with apache 2.2

Post 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!
Sephern
Forum Commoner
Posts: 73
Joined: Sun Jan 04, 2009 4:44 pm

Re: php 5 problematic with apache 2.2

Post 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
Post Reply