Simple integration tutorial of Apache2php4MySql5 in windows

Source: Internet
Author: User
Author: fbysssBlog: Workshop. Key words: Apache, php, MySql 1. software download 1. download Apache2 from www.apache.org by fbysss
Blog: blog.csdn.net/fbysss
Msn: Jameslastchina@hotmail.com
Disclaimer: This article is original from fbysss. for reprinting or reference, please specify the reference address.
Key words: Apache, php, MySql I. software download 1. Www.apache.orgDownload the Apache2 installation file reference link: Http://mirror.apache.or.kr/httpd/binaries/win32/apache_2.0.55-win32-x86-no_ssl.exe2. Www.php.netDownload the php4 zip package reference link: Http://www.php.net/get/php-4.4.2-Win32.zip/from/a/mirrorClarify: (1) php5 is relatively stable, but php4 is a better choice because many php applications are not compatible with php5. (2) php4 has an exe installation file in windows, but that version is a miniature version, which is incomplete. Therefore, we recommend you download the zip package, but you need to install it manually. 3. Www.mysql.comDownload the MySql5 reference link: Http://dev.mysql.com/downloads/mysql/5.0.html4. download PhpMyAdmin to control the MySql Reference link: Http://count.skycn.com/softdownload.php? Id = 10687 & url = http://gztt.driversky.com/down/phpMyAdmin-2.7.0.zipII. installation and configuration 1. the installation of Apache and MySql is relatively simple, and there is not much difference with the installation of general windows programs. follow the default options to proceed step by step. it is best to correct the installation path, do not be too long or contain spaces. For example, if you select d: \ when installing Apache, The Root after installation is d: \ Apache2.
The installation path of MySql can be d: \ mysql50. after installation, enter d: \ mysql50 \ bin and run mysqld-nt -- install to install MySQL as the system service. (Mysqld-nt -- remove is the uninstall service) after Apache2 is installed, open d: \ Apache2 \ conf \ httpd. conf: Find the LoadModule. after all the LoadModule statements, add # sss added (This sentence is a comment)
LoadModule php4_module 'd:/php4/php4apache2. dll'
AddType application/x-httpd-php. php
PHPIniDir 'd:/php4 and then retained and quit. 2. for php: (1) decompress the zip package to d: \ php4, and copy the dll files in the dlls and sapi directories to its parent directory, that is, d: \ php4. (2) set php. ini-dist (default php setting) or php. ini-recommended (recommended for php) is copied to the \ windows directory (some are winnt, depending on the system installation) and renamed as php. ini. (3) copy php4ts. dll to the \ windows \ system32 directory. (4) in the environment variable, add d \: php4 to the Path of the system variable. 3. extract PhpMyAdmin to d: \ Apache2 \ htdocs \ phpmyadmin. 4. run service 1. run MySql: Press "net start mysql". (net stop mysql is the end service.) 2. run Apache: Choose Start> Program> Apache HTTP Server 2.0.55> Control Apache Server> Monitor Apache Servers. a red feather icon is displayed in the lower right corner of the taskbar, right-click Open Apache Monitor and click start. if the configuration is incorrect, an error message is displayed. Otherwise, The word "The Apache2 server is starting" is displayed in The lower left corner of The window. 5. test consequence 1. open the browser and enter
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.