Page 1 of 1

PHP configuration on Apache Server

Posted: Mon Sep 12, 2011 8:16 am
by NeelamHere
I have added this to httpd.conf file

Code: Select all

#LoadModule php5_module php5apache2_2.dll
Also set

Code: Select all

#PHPIniDir "C:/php"
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"

AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
In PHP ini file, I made following changes

Code: Select all

doc_root = C:\Program Files\Apache Group\Apache2\htdocs
uncommented ;

Code: Select all

extension_dir = C:\php\ext
and many other extensions

under environment variable in System dialog box(control panel)
set user variables
PHPRC C:\php

and System variable
Path ;c:\php at the end

placed php.ini and php5ts.dll under windows folder.

And opened phpinfo.php file from the document root of the web server
C:\Program Files\Apache Group\Apache2\htdocs

but I am getting blank window. can open the source code but it is not executing.

Server is running though I have to stop it by clicking on close button.

Re: PHP configuration on Apache Server

Posted: Mon Sep 12, 2011 9:55 am
by Weirdan
You need to uncomment (removee # character in front of) LoadModule and PHPIniDir

Re: PHP configuration on Apache Server

Posted: Tue Sep 13, 2011 2:33 am
by NeelamHere
I uncommented. The apache server cannot load the specified module to its server.