Home >Backend Development >PHP Tutorial >Tutorial on installing php_PHP using apache module under WIN98

Tutorial on installing php_PHP using apache module under WIN98

WBOY
WBOYOriginal
2016-07-21 16:06:12965browse

Notes on installing php as apache module 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 versions of the two must be the same,
(The key is mod_php4.dll, php4ts.dll and Msvcrt. dll versions are the same)

★Specific steps:
Use winzip to decompress the two .zip files
php-4.0.1pl2-Win32.zip to the E:php directory
Unzip 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%, which is the installation directory of windows
, rename it to php.ini. Use the editor to edit php.ini and make the following changes:
extension dir = E:Phptoolsphp ; The directory where the dynamic loading library is located
Add SET PASS=E:phptoolsphp in Atuoexec.bat
(This will require a restart at the end);
Or copy php4ts.dll directly to %SYSTEM% (no need to restart)

(2) Add modules to Apache,
Copy mod_php4.dll under E:mod_phpapache_dirmodules to the .modules subdirectory under the Apache installation directory;
Copy Msvcrt.dll to the root directory of the Apache installation;
Copy E:mod_phpapache_dirconfmod_php4.conf to Apache's .conf subdirectory;
Then edit srm.conf under Apache's .conf and add an entry:
Include conf/mod_php4.conf;

★Final test
Execute apache -k start to start, and see
Apache/1.3.14 (Win32) PHP/4.0.1pl2 running...
You can know that your php is already running as an Apache module. If not,
Write a test.php test if you are sure.
test.php


Note: The Apache version used this time is 1.3.14

http://www.bkjia.com/PHPjc/315462.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315462.htmlTechArticleNotes on installing php as apache module 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 found at www.php.net or www.phpuser...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn