Install PHP 4.2 with Apache 2.0.39.html - what worked for me
| From: | bimal at bummerinc dot com | Date: | Wed, 10 Jul 2002 22:47:51 +0000 |
| Subject: | Install PHP 4.2 with Apache 2.0.39.html - what worked for me | ||
| Groups: | php.doc.chm | ||
| Request: | Send a blank email to php-doc-chm+get-256@lists.php.net to get a copy of this message | ||
<http://www.apache.org/dist/httpd/binaries/win32/>
The Apache server
2.0.39
<http://snaps.php.net/win32> Latest stable PHP
(check the log file
<http://snaps.php.net/win32/snapshot-STABLE.log>
and find the line that
says 'Building php4apache2'. If there's an OK next to it then you can
download that version from the parent directory)
Install Apache server
Unzip the php4-win32-STABLE-snapshotnumber.zip, you'll get a folder
php4-win32-STABLE-snapshotnumber
Rename it to PHP and copy it to the root drive (usually c:\, so you end
up with c:\PHP)
Copy the php.ini.recommended file to c:\winnt (or c:\windows) and rename
it php.ini
edit php.ini in notepad as follows:
1. find 'doc_root' using ctrl+F and set doc_root = "C:\Program
Files\Apache Group\Apache2\htdocs" (assuming you installed Apache in its
default path)
2. find 'extension_dir' using ctrl+F and set extension_dir =
"C:\PHP\sapi"
3. save it and exit
Move the file php4ts.dll to c:\winnt\system32 (or c:\windows\system)
Go to the folder C:\PHP\sapi and rename php4apache2.dll to
php4apache2.so (basically just change the extension from .dll to .so)
Go to Start -> Programs -> Apache HTTP Server 2.0.39 -> Configure Apache
Server and click on 'Edit the Apache httpd.conf Configuration File'
the httpd.conf file opens up. Look for the block of LoadModule
statements and at the end of the block add
LoadModule php4_module c:/php/sapi/php4apache2.so
then look for AddType using ctrl+F and below AddType application/x-tar
.tgz add
AddType application/x-httpd-php .php
Save and exit.
Stop Apache and start again and you should be good to go!