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
Configuroing Apachee for new PHP
Moderator: General Moderators
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.
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.