Need help in configuring PHP with Apache

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
sudhakar.botta
Forum Newbie
Posts: 1
Joined: Tue Jan 06, 2015 5:18 pm

Need help in configuring PHP with Apache

Post by sudhakar.botta »

[text][/text]Hi

I am new to PHP and Apache. And am in a process of installing PHP and APache...
I downloaded Apache 2.4 and PHP 5.4.13. And I installed..but as per the instructions i went through I changed the con
C:\Apache24\conf\httpd configuration file.
After changing the file Apache server is not starting.

changes done :

A.Add the following line after all of the LoadModule statements:

LoadModule php5_module "c:/php/php5apache2_2.dll"

B. Search for AddType, and add the following after the last AddType line:

AddType application/x-httpd-php .php

C. Add the PHP location to the end of the httpd.conf file. For example, at the end of the file, add the following:

PHPIniDir "c:/php"

Afetr updating the file am getting error on Apache start up.

Can any one please help me to configure and can run PHP from apache.


Regards
Sudhakar
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Need help in configuring PHP with Apache

Post by Celauran »

sudhakar.botta wrote:PHP 5.4.13
Why? That's badly outdated. Current release is 5.6.4
sudhakar.botta wrote:Afetr updating the file am getting error on Apache start up.
And what does the error say?
Post Reply