Install PHP in Apache mode under WIN98

Source: Internet
Author: User
Tags copy install php ini versions win32 zip root directory
Install PHP notes under WIN98 in Apache module mode
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 both versions must be the same,
(The key is Mod_php4.dll is the same as the Php4ts.dll and Msvcrt.dll versions)

★ Specific steps:
Extract two. zip files, respectively, with WinZip
Php-4.0.1pl2-win32.zip extract to E:\php\ Eye Road
Mod_php4-4.0.1-pl2.zip Extract to E:\mod_php\ directory

(i) Install PHP interpreter, copy php.ini-dist to%windows% that is WINDOWS
's installation directory, rename it to php.ini. Edit the php.ini changes with the editor as follows:
Extension dir = E:\Phptools\php\; the directory where the library is dynamically loaded
Add SET pass=e:\phptools\php\ in Atuoexec.bat
(This will eventually require a reboot);
or copy the Php4ts.dll directly to the%system% (no reboot required)

(b) Adding modules to Apache,
Copy the Mod_php4.dll under E:\mod_php\apache_dir\modules\ to
In the. \modules subdirectory under the Apache installation directory;
Copy the Msvcrt.dll to the root directory of Apache installation;
Copy the E:\mod_php\apache_dir\conf\mod_php4.conf to the. \conf subdirectory of Apache;
Then edit the srm.conf of Apache's. \conf to add a clause to it:
Include conf/mod_php4.conf;

★ Final Test
Perform apache-k start and see the appearance of
apache/1.3.14 (WIN32) php/4.0.1pl2 running ...
You can know that your PHP has been running in the Apache module, and if you're not sure,
Write a test.php test.
test.php
? Phpinfo ()?>

Note: This use of the Apache version is 1.3.14


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.