Win2003 under Apache + PHP5 + mys_php Tutorial

Source: Internet
Author: User
First from the official website APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57
Apache_2.0.50-win32-x86-no_ssl.msi
Php-5.0.0-win32.zip
Mysql-4.0.20d-win.zip
Phpmyadmin-2.5.7.zip
Operating system win2003 system disk: D-Disk
First step: Install Apache and configure support for PHP
Click Install File Apache_2.0.50-win32-x86-no_ssl.msi
Install Apache in the D:apache2 directory (as you prefer)
Unzip the contents of the Php-5.0.0-win32.zip into the d:php.
Locate the php.ini-dist in the PHP directory and rename it to php.ini and copy it to the Windows directory (Win2K Winnt)
As my php.ini is copied to the D:windows directory.
Copy the Php5ts.dll,libmysql.dll in the PHP directory to the System directory (SYSTEM/SYSTEM32) as mine is D:windowssystem.
Configure the httpd.conf in Apache
Open d:apache2confhttpd.conf This file
Find Adddefaultcharset iso-8859-1 change it to Adddefaultcharset GB2312 (let default language encoding to Simplified Chinese)
Find DocumentRoot "D:/apache2/htdocs" to change it to your Web directory (not change) as my DocumentRoot "D:/website"
Find DirectoryIndex index.html Index.html.var in the back add index.htm index.php
Select installation Mode: Modular mode installation or CGI mode installation (optional)
--------------Modular Installation Configuration------------------------------------
Find #LoadModule Ssl_module modules/mod_ssl.so line, add a line after this line
LoadModule Php5_module D:/php/php5apache2.dll
Where D:/php/php5apache2.dll is in your PHP directory where Php5apache2.dll is located
Find AddType application/x-gzip gz. tgz line, add a line after this line
AddType application/x-httpd-php. php
---------------------------------------------------------------
--------------CGI installation configuration--------------------------------------
Find the AddType application/x-gzip gz tgz Line and add the following
scriptalias/php/"d:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php-cgi.exe"
---------------------------------------------------------------
At this point the PHP environment is basically configured successfully
Build a file named test.php in the Web root directory (such as my d:website) as follows

http://www.bkjia.com/PHPjc/629887.html www.bkjia.com true http://www.bkjia.com/PHPjc/629887.html techarticle first from the official website of the APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57 apache_2.0.50-win32-x86-no_ssl.msi php-5.0.0-win32.zip Mysql-4.0.20d-win.zip phpmyadmin-2.5.7.zip operation system ...

  • 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.