Install php using the apache module in WIN98
Foolboy@chinaren.com
★Related Software:
Mod_php4-4.0.1-pl2.zip
Php-4.0.1pl2-Win32.zip
The above software can be downloaded from www.php.net or www.phpuser.com.
Note that the two versions must be the same,
(The key is that mod_php4.dll is the same as php4ts. dll and Msvcrt. dll)
★Procedure:
Decompress two. ZIP files separately with winzip.
Decompress the php-4.0.1pl2-Win32.zip to E: \ php \ Program
Unzip the mod_php4-4.0.1-pl2.zip to the E: \ mod_php \ directory
(1) install the php interpreter and copy php. ini-dist to % WINDOWS %
Under the installation directory, rename it php. ini. Edit php. ini in the editor as follows:
Extension dir = E: \ Phptools \ php \; directory where the library is dynamically loaded
Add set pass = E: \ phptools \ php \ In Atuoexec. bat \
(In this case, you need to restart it );
Or directly copy php4ts. dll to % SYSTEM % (no need to restart)
(2) Add modules to Apache,
Copy mod_php4.dll under E: \ mod_php \ apache_dir \ modules \
In the. \ modules subdirectory under the Apache installation directory;
Copy Msvcrt. dll to the root directory of Apache installation;
Copy E: \ mod_php \ apache_dir \ conf \ mod_php4.conf to the. \ conf subdirectory of Apache;
Edit srm. conf in. \ conf of Apache and add one:
Include conf/mod_php4.conf;
★Final Test
Run apache-k start to start.
Apache/1.3.14 (Win32) PHP/4.0.1pl2 running...
You can know that your php has been run in the Apache module mode. If you are not sure
Write a test. php test.
Test. php
<? Phpinfo ()?>
Note: The Apache version used this time is 1.3.14.