Entry
Could someone provide a step-by-step installation guide for Windows 98 with PWS 4.0, including a sample php.ini hopefully...
Sep 6th, 2000 08:23
John Lim, Jerry Yoakum, Rick Proctor, http://www.php.net/manual/install-windows95-nt.php
1. Extract the distribution file to a directory of your choice.
"C:\PHP3\" is what I’ll use for this document.
2. Move .dll files not starting with php3_ to C:\windows\system
directory.
3. Copy the file, 'php3.ini-dist' to C:\WINDOWS directory and rename
it 'php3.ini'.
4. Edit your 'php3.ini' file:
o You will need to change the 'extension_dir' setting to point to
your php-install-dir, or where you have placed your 'php3_*.dll'
files. ex: c:\php3
o NOTE: This is where www.php.net says to set the 'doc_root' to
point to your webservers document_root. INSTEAD, comment ‘doc_root’
out by putting a ‘;’ in front of it. By un-commenting the
‘doc_root’ you will be able to use virtual directories.
o Choose which modules you would like to load when PHP starts. You
can uncomment the: 'extension=php3_*.dll' lines to load these
modules. Some modules require you to have additional libraries
installed on your system for the module to work correctly. The PHP
FAQ has more information on where to get supporting libraries. You
can also load a module dynamically in your script using:
dl("php_*.dll");
o (I did not try this step.) On PWS and IIS, you can set the
browscap.ini to point to: 'c:\windows\system\inetsrv\browscap.ini'
on Windows 95/98 and 'c:\winnt\system32\inetsrv\browscap.ini' on
NT Server. Additional information on using the browscap
functionality in PHP can be found at this mirror, select
the "source" button to see it in action.
5. Right-click on the INF file included with the distribution
(php_iis_reg.inf) and then click on ‘Install.’ If you used
something other then C:\php3 for your installation you need to edit
(notepad will do) this file and make sure the extensions and PHP
install directories match your configuration.
6. For each directory that you use php in, set the properties
to 'Execute.'
7. Enjoy!
Due to the length of the php3.ini file I will not be including a sample.
Please note that this is almost completely copied from the above link
to www.php.net with a few minor changes that made all the difference
for the Windows/PWS setup. The people at www.php.net have done a
wonderful job with php and should not be criticized for the minor
details. I would never have gotten this far without the documentation
that was provided.
==============================================
There is also a free Windows EXE installer for PHP available at
http://php.weblogs.com/easywindows
This installer automates 99% of the tasks below for IIS and PWS. Tested
on Win95/98, WinNT (SP5), and Win2000.
-- John Lim