Page 1 of 1

Need help in configuring PHP with Apache

Posted: Tue Jan 06, 2015 5:31 pm
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

Re: Need help in configuring PHP with Apache

Posted: Tue Jan 06, 2015 5:37 pm
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?