APACHE1.3.X+PHP4 Beta3 Installation and configuration _php Tutorial in Windows 9x/nt

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

Second, install PHP
To the official PHP publishing site, 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 you want to your favorite directory, such as C:PHP4B3. I recommend using the version number as the directory name so that you don't have to delete the old version when you try the updated version in the future. Installing PHP4 Beta under Windows 95/97 requires DCOM support. If your machine is not installed, go here to download a copy.

Third, configure PHP
The package that was distributed with PHP has a PHP main configuration file, Php.ini-dist. Copy it to your Windows system directory (Windows 9x Windows or Windows NT Winnt directory) and rename it to PHP.ini. This file needs to be modified appropriately, the most important thing is to add some of the modules that may be used, such as to join MySQL support. Find the "Dynamic Extensions" column in the php.ini file:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;
To modify or Extension=php_mysql.dll;
Remove the ";" Number from the front
In certain cases, if the DLL file you want to use 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 first section where you install the Apache directory and open the. confhttpd.conf file with your favorite file editor, in this case the 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"

http://www.bkjia.com/PHPjc/629560.html www.bkjia.com true http://www.bkjia.com/PHPjc/629560.html techarticle First, install Apache to release Apache official site htp://www.apache.org/dist, download Apache_1_3_x.win32.exe to your local computer and install it to C:apache. If the installation is not what ...

  • Related Article

    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.