minitutorials main logo the place to learn online

Sponsor This Site!
Sponsorship Details - miniTutorials is taking enquiries into various Sponsorship opportunities. Available NOW! Read More on our Sponsorship page.
This Page Sponsored by :
Proudly Sponsored by Your Company name here!
miniTutorials Sponsorship
Donate!
Consider donating to keep this site alive and up to date. Click on the Donate button to go straight to PayPal site and make a donation of an amount you choose.


More information on where the money goes on the Donations page.
Discussion Forums
visit the mini tutorial forums
For expert help and advice on any of our Tutorials or anything else .... visit the forums and ask away!!
Google Ads
My Profile

Details about the owner of this site can be found at :-

ohloh profile
View Gavin McDonald's profile on LinkedIn
Powered by a
UK2 Dedicated Server

Apache Web Server.

Installing and configuring PHP 4

Intermediate Level

Installing and configuring PHP 4


Steps 3 & 4 - Configure PHP 4 for Apache2 & vice-versa


Step 3 - Configure PHP 4 for Apache2

Edit php.ini in notepad and scroll down to the 'Paths and Directories' section.

Save and Close php.ini.

* - dlls are funny creatures, shared files being used by many programs, in my case I did overwrite all dlls that were in the system32 folder and have suffered no side effects as a result. I do not however want to be held accountable should you have a program that requires an older version of a dll that this installation might otherwise overwrite.

Step 4 - Configure Apache2 for PHP 4

Revisiting our earlier Apache 2 tutorial I said:-

Locate and edit 'httpd.conf' file (should be in 'C:\Apache2\Apache2\conf\httpd.conf')

--------------
In Section 1 : Global Environment.

ServerRoot should say : ServerRoot "C:/Apache2/Apache2"
Locate #ExtendedStatus On and just below it add :-

AddHandler server-parsed .shtml #LoadModule php4_module "c:/apache2/php/php4apache2.dll" #AddType application/x-httpd-php .php

The last 2 lines above are commented out to avoid errors, they will be un-commented when php4 is installed,but we put them here now to save time later.

So now we want to un-comment out those lines so they read like this :-

LoadModule php4_module "c:/apache2/php/php4apache2.dll" AddType application/x-httpd-php .php

The rest of 'httpd.conf' should be ok if the earlier tut was followed, so Save and Close this file then 'Stop and Start' the Apache Server service. (A soft start called a 're-start' differs slightly in operation from Stop/Start in regards to the Apache Server and I have had problems with it in the past so don't recommend it until all bugs are squashed!)

Ok, so lets get testing!

left arrow depicting to go back Back to Download & Install PHP 4 | Forward to Testing your Installation right arrow depicting to go forward


irca content rating labelValid CSSValid XHTML 1.0 Strict[Valid RSS] About Us | Site Map | Privacy Policy | Contact Us | ©2003 - 2008 miniTutorials.com link to minitutorials xml feedLink to RSS Feed

Site Design by 16 degrees complete web solutions.