Installation and configuration of APACHE1.3.X+PHP4 Beta3 under Windows 9x/nt

Source: Internet
Author: User
Tags ini win32
First, install Apache
To release the official Apache site htp://www.apache.org/dist, download Apache_1_3_x.win32.exe to your local computer and install it into C:apache. If there is nothing wrong with the installation, after the installation, Apache can begin to use. There are a lot of Readme files available for reference under the Apache installation directory, but only one file is for the Win32 platform, including window 9x and Windows NT.

Second, the installation of PHP
To the official publishing site in PHP, select a mirror, locate the download area, select Source code and Windows distribution, and download Windows Binary. All you need to do is extract the files from your favorite directory, such as C:PHP4B3. I recommend using the version number as the directory name, so that you will not have to delete the old version when you try to update the version. Installing PHP4 Beta under Windows 95/97 requires the support of DCOM. If your machine is not installed, download a copy here.

Third, configure PHP
There is a PHP main configuration file Php.ini-dist in the package that is distributed with PHP. Copy it to your Windows system directory (Windows 9x Windows or Windows NT Winnt directory) and rename it to PHP.ini. You need to make appropriate changes to this file, the most important thing is to add a number of possible modules, such as the support of MySQL to join. Locate the "Dynamic Extensions" column in the php.ini file:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;
to modify; Extension=php_mysql.dll.
To remove the front ";" Number
In certain cases, if you want to use a DLL file that is not in this list, simply add a line, such as "Extension=mydll.dll". In this way, PHP is configured well.

Four, let Apache work with PHP
Find the directory in the first section where you installed Apache, and open the. confhttpd.conf file in your favorite file editor, in this case c:apacheconfhttpd.conf (this is the most important configuration file for Apache). To get Apache to work with PHP, you can just add a few lines, as follows:
scriptalias/php4b3/"c:/php4b3/"
AddType application/x-httpd-php3. php3
AddType application/x-httpd-php3. php
AddType application/x-httpd-php3. phtml
Action application/x-httpd-php3 "/php4b3/php.exe"

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.