Configuroing Apachee for new PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chvol
Forum Newbie
Posts: 20
Joined: Fri Apr 26, 2002 2:49 pm

Configuroing Apachee for new PHP

Post by chvol »

Hello all,

I am running PHP under Apache webserver on my Windows 98 PC. I need to install the latest version of PHP. I downloaded PHP 4.2.3 from http://www.php.net/downloads.php, but at the end it said, “The software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install.txt file for more details.” I looked at install.txt but don’t know how to do what it says.

Charlie
chvol@aol.com
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

since it is unlikely that someone wants to repost the whole install.txt ( ;) ): which part you do not understand?
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

MAKE SURE before doing this, you stop your apache server... Lord only knows what will happen ( dunno, never tried it hehe )... Anyways, follow these steps:

If you would like to use PHP as a module in Apache, be sure to move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any older file. Then you should add the following two lines to you Apache conf file:

• LoadModule php4_module c:/php/sapi/php4apache.dll
• AddType application/x-httpd-php .php .phtml


Basically, Click Start -> Program Files -> Apache Group -> Configure Apache -> Edit Apache's http.conf

Then, scroll down until you start seeing LoadModule statements, and place the above LoadModule into the selected area...

Then, Scroll down again and find the AddModule statments, and place the AddModule statement above into the list.

Save it, start Apache, that's it.
Post Reply