Install php in the apache module mode under WIN98 and install php in the apache module mode under 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
Note: The Apache version used this time is 1.3.14.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.