Installation of apache+php in Win2K environment

Source: Internet
Author: User
Apache Http://www.php.net/do_download.php?download_file=php-4.0.5-Win32.zip&source_site=www.php.net

4. MySQL 3.23.38 (Mysql-3.23.38-win.zip)
Http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.38-win.zip

Second, the installation process

1. Install Apache 1.3.19 into the C:\Web\apache\ directory.
2. Extract the PHP 4.0.5 into the C:\Web\php\ directory.
3. Install the MySQL 3.23.38 to the C:\Web\mysql\ directory.
4. Copy the C:\web\php\php4ts.dll file to the C:\WINNT\system32\ directory.
5. Copy the C:\web\php\php.exel file to the C:\WINNT\ directory.
6. Copy the C:\web\php\php.ini-dist file to the C:\WINNT\ directory and rename Php.ini-dist to PHP.ini.
7. Run C:\web\apache\apache\apache.exe-i–n
8. Run C:\Web\mysql\bin\mysqld-nt.exe--install
9. Editor C:\WINNT\php.ini
Locate the "Extension_dir =./" field and change it to Extension_dir = "C:\myphp\php\extensions".
10. Run C:\web\apache\apache\apache.exe-i–n
11. Editor C:\Web\apache\Apache\conf\httpd.conf

Find "#BindAddress *" field

Change it to bindaddress 127.0.0.1. (If the host has a fixed IP address, this changes to the host IP address.) such as Bindaddress 211.101.152.106), locate the "ServerName" field and change it to ServerName localhost. (If the host has a fixed hostname, this is the host name.) such as ServerName bn001).

Locate the "scriptalias/cgi-bin/" c:/web/apache/apache/cgi-bin/field and add scriptalias/php/"c:/web/php/" below it. Find the "# and for PHP 4.x, use:" field, after which you add:

AddType application/x-httpd-php. php3
AddType application/x-httpd-php. PhP4
AddType application/x-httpd-php. php
AddType application/x-httpd-php. phtml
Action application/x-httpd-php "C:/web/php/php.exe"

Locate the "#LoadModule usertrack_module modules/mod_usertrack.so" field, LoadModule php4_module C:/web/php/sapi/php4apache.dll



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.