Install php5.2.6in Windows XP.

Source: Internet
Author: User
Tags php download
PHP: install PHP5.2.6. in Windows XP. convert to traditional Chinese. This section describes how to install PHP in Windows XP. Before installing PHP, first confirm that ApacheHTTPServer has been installed. For how to install ApacheHTTPServer, see ApacheHTTPServer installation. Download PHP installation for PHP5.2.6PHP
Install PHP 5.2.6 in Windows XP.

Convert to traditional Chinese

This section describes how to install PHP in a Windows XP environment.

Before installing PHP, first confirm that Apache HTTP Server has been installed. For how to install Apache HTTP Server, see Apache HTTP Server installation.

Download PHP 5.2.6

The official PHP website is http://www.php.net /.

PHP download page is http://www.php.net/downloads.php, please select the PHP 5.2.6 installer link under Windows Binaries, then select an image site (such as cn2.php.net) Download PHP, you will get an installation file named php-5.2.6-win32-installer.msi.

Install PHP 5.2.6 in Windows XP

Double-click the PHP installation file php-5.2.6-win32-installer.msi and you will see the following screen:

Click Next to start the installation. on the License page, select I accept the terms in the License Agreement, as shown in:

Click Next to go to the Destination Folder screen, for example:

Click Next to go to the Web Server Setup screen and select Apache 2.2.x Module, for example:

Click Next and select the Directory of the Apache configuration file, for example:

By default, C: \ Program Files is displayed in the text box. you must select the Apache configuration file directory through the Browse button.

After selecting the Apache configuration file directory, click Next and select the features to be installed, such:

Click Next to install PHP, for example:

Click the Install button to perform the installation.

After the installation is complete, the installation end screen is displayed, for example:

Click Finish to complete the installation.

Modify the Apache configuration file

After the installation is complete, we also need to modify the Apache configuration file. The file path is

C: \ Program Files \ Apache Software Foundation \ Apache2.2 \ conf \ httpd. conf.

Use Notepad to open httpd. conf. you will notice that#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLStart#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLIs the end part of the configuration code.

Please update this code:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLPHPIniDir "C:/Program Files/PHP/"LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"AddType application/x-httpd-php .php#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Save the Apache configuration file httpd. conf.

Enable Apache Service

Choose Start --> All Programs --> Apache HTTP Server 2.2 --> Monitor Apache Servers from the Windows Start menu. after you click it, you will see a red icon in Taskbar, double-click the icon to open the Apache Service Monitor screen.

If Apache Service is not started, click Start to Start Apache Service. If Apache Service has been started, click Restart to Restart Apache Service.

Test PHP

Use Notepad to write a simple PHP file, save it as test. php, and save it in the Apache htdocs directory.

 

Then, enter http: // localhost: 8080/test. php in the browser. the page should contain only the words "Blabla.cn" instead of the source code.

?Author or editor: braah ?? Last Updated: 2008-05.-16Source: www.BlaBla.cn

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.