Windows Apache PHP5 Installation Detailed tutorial _php tutorial

Source: Internet
Author: User
Tags mysql tutorial win32 installer
Download Apache to remember next openssl httpd-2.2.19-win32-x86-openssl-0.9.8r.msi download PHP remember thread safe, so that it is easy to build HTTP service PHP tutorial -5.2.17-win32-vc6-x86.msi under The surface is reproduced. The installation method for this article is for apache+php+mysql installation under Windows XP, and also for installation and configuration under Windows 2003. 1. Installation Environment
The operating system is the Chinese version of Windows XP, Apache, PHP, MySQL, the latest version is as of 2007.09.07, respectively, downloaded on their official website:
* Apache 2.2.6:http://apache.mirror.phpchina.com/httpd/binaries/win32/
* PHP 5.2.4 (Windows Binaries PHP 5.2.4 Zip package): http://www.php.net/downloads.php
* MySQL 5.0.45 windonws:http://dev.mysql tutorial. Com/downloads/2. Directory structure planning for installation
For ease of maintenance, the server software can be installed on the system disk (C-drive) and the location of its own files to other disks, which is important for future maintenance. 3. Install Apache 2.2.6 under Windows XP
Installation under Windows XP
1. Run the Apache 2.2.6 installation program and follow the prompts to the Next. In the server information the Network domain, the server name field to fill in the name of a domain, such as php.com, and then follow the prompts to complete the Next. 2. At the end of the installation, a DOS window pops up and disappears, and the system Apache starts automatically. 4. Install PHP 5.2.4 under Windows XP
1. Unzip the downloaded PHP 5 zip package directly, and I will extract the PHP 5.2.4 zip file directly under the d:php directory. Installing PHP does not recommend using the Win32 Installer (mainly for later installation extension trouble). 2. In the Explorer, enter the PHP installation directory, copy php.ini-dist or php.ini-recommended, and name it php.ini. Then open php.ini. 3. Find: ; Extension=php_mysql.dll to remove the preceding; Extension=php_mysql.dll 4. Find: Extension_dir = "./" change it to the absolute path of your ext subdirectory in your PHP installation directory. For example, my: Extension_dir = "d:/php/ext/" This step is important. Otherwise, PHP will not find the Php_mysql.dll module and cannot be loaded. 5. In the "Control Panel", "System", "Advanced", "Environment variables", in the "system variables" found path, edit the value of the path variable, add your PHP directory d:php, before you must use a semicolon (;) it and the preceding values are separated.
5. Configure Apache and PHP to open the httpd.conf file in the Conf subdirectory of the Apache installation directory.
1. Find: DocumentRoot "xxxxxxx" to the contents of your native website. For example my: DocumentRoot "E:/web" after the change to a little pull down, find "# This should is changed to the whatever you set DocumentRoot to." And then change this place. 2. Locate LoadModule, and add these two lines in the space below, based on your PHP installation directory: LoadModule php5_module "D:/php/php5apache2_2.dll"
Phpinidir "d:/php" This do not, so that the Apache server cannot start 3. Found: DirectoryIndex index.html modified to: DirectoryIndex index.php index.html4. Found: AddType application/x-gzip. gz. tgz add these two lines: AddType application/x-httpd-php. php
AddType application/x-httpd-php. HTML5. Save httpd.conf
6. In your website directory (for example, my is e:/web/), manually create a index.php file, content: Phpinfo ();
? >7. Launch the Apache service in a DOS window (assuming Apache is installed in the C:Program Filesapache software FoundationApache2.2) #如果之前启动了, first stop
C:Program Filesapache software foundationapache2.2bin> httpd-k stop
Or: net stop apache2.2# start the APAHCE service
C:Program Filesapache software foundationapache2.2bin> httpd-k start
Or: net start apache2.28. Open http://localhost/index.php to see the results of the test output. 6. Install MySQL 5.0.45 under Windows XP
MySQL installation is relatively simple, it provides a Win32 installation package. After downloading according to the prompt installation, you can also choose Custom at the installation type, specify the installation directory, which is installed directly by default in the C drive. After the installation is completed, you will be asked if you want to register on the official website and skip. Then ask if you Configure the MySQL Server now, select and continue, then follow the prompts, set the character set, and the root administrator's password.

http://www.bkjia.com/PHPjc/629842.html www.bkjia.com true http://www.bkjia.com/PHPjc/629842.html techarticle download Apache to remember next openssl httpd-2.2.19-win32-x86-openssl-0.9.8r.msi download PHP remember thread safe, so that it is easy to build HTTP service PHP tutorial -5.2.17-win32-vc6-x86 . Ms ..

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