PHP configuration on Apache Server

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
NeelamHere
Forum Newbie
Posts: 5
Joined: Mon Sep 12, 2011 8:09 am

PHP configuration on Apache Server

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PHP configuration on Apache Server

Post by Weirdan »

You need to uncomment (removee # character in front of) LoadModule and PHPIniDir
NeelamHere
Forum Newbie
Posts: 5
Joined: Mon Sep 12, 2011 8:09 am

Re: PHP configuration on Apache Server

Post by NeelamHere »

I uncommented. The apache server cannot load the specified module to its server.
Post Reply