Installation of Apache1.3.14 + PHP4.0.4 in WIN98 _ PHP Tutorial

Source: Internet
Author: User
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/629874.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/629874.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...

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.