Install Apache1.3.14 + PHP4.0.4 in WIN98. 1. install Apache (latest version 1.3.14) and configure httpd in the directory of apacheconf. the conf file is as follows: 1.1 search # ServerNamenew. host. name, set new. host. replace name with yours. apache installation
After installing apache (latest version 1.3.14), configure and install the httpd. conf file in the apacheconf directory as follows:
1.1 Search for # ServerName new. host. name and replace new. host. name with your own host name. if the host name is xman, change it
ServerName xman
Remove the preceding.
1.2 publish a folder:
If you want to publish your Directory d: myweb, the release name is myweb, search for Alias in the httpd. conf file, and add
Alias/myweb "d:/myweb"
Note that in Apache 1.3.14, the path in the quotation marks is separated by "/", rather "".
2. install PHP:
2.1 decompress php-4.0.4-win32.zip (latest version 4.0.4) to a directory on the hard disk, for example, to the d: php directory.
2.2 move php4ts. dll in the php directory to the windows directory, for example, c: windowssystem.
2.3 modify the apacheconfhttpd. conf file and add the following content:
LoadModule php4_module X:/php/sapi/php4apache. dll
AddType application/x-httpd-php. php
Both LoadModule and AddType can be found by searching.
2.4 Copy the php. ini-dist file under the php (d: php) directory to the windows directory (c: windows) and change it to php. ini.
Start apache.
In the startup window, you can see
Apache/1.3.14 (Win32) PHP/4.0.4 running...
.
3 test:
Edit the helloworld. php file as follows:
Echo "Hello World! ";
?>
After Apache is started, enter http: // xman/myweb/helloworld. php in IE.
Hello World! It indicates that you have successfully installed Apache + php.
The above Apache versions are Apache1.3.14 and php version is php4.0.4. Other versions may be slightly different, but they are similar. Win2000 and win98 are basically the same, just put php4ts. dll under WINNTSYSTEM32. For more information, see install. When you install a service, an error may occur when you disable it. change it to cgi.
Http://www.bkjia.com/PHPjc/315925.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/315925.htmlTechArticle1. install Apache (latest version 1.3.14) and configure httpd in the directory of apacheconf. the conf file is as follows: 1.1 search # ServerName new. host. name, set new. host. replace name with you...