Build a PHP environment in Windows: Apache + PHP + MySQL, apachemysql_PHP tutorial

Source: Internet
Author: User
Build a PHP environment in Windows: Apache + PHP + MySQL and apachemysql. To build a PHP environment in Windows: Apache + PHP + MySQL, apachemysql often needs to re-build the PHP environment after changing the computer or reinstalling the system, this is a simple record of building a PHP environment in Windows: Apache + PHP + MySQL, apachemysql

Because you often need to re-build the PHP environment after changing the computer or reinstalling the system, this time a simple record of the process of building the PHP environment in Windows, the specific steps can refer to the online information

Preparations:

To manually build a PHP environment in Windows, you must first download the corresponding software. Note that the Apache and PHP versions must be consistent (both 32-bit and 64-bit ), if the version is inconsistent, the integration of Apache and PHP fails. that is, after the configuration file is modified, Apache is started and the following error is reported:

In fact, there are detailed details on http://windows.php.net/download/. the reader can select the desired version for the corresponding version.

The software version downloaded by the author is shown in:

Installation process:

1. install Apache

Double-click installation, which is no different from installing other Windows software

Modify Apache Site Directory

(3) modify the php configuration file, set the Directory of the PHP extension package, enable the corresponding library function, and set the time zone.

V. test

Create the index. php file under the Apache Site Directory configured above. the code in index. php is as follows:

 

Enter http: // localhost/in the address bar of the browser. if the PHP version information is displayed on the page, the integration of Apache and PHP is successful.

PHP Development tools

The above briefly describes how to build a PHP environment. as a PHP developer, you must have a proper development tool. There are a variety of powerful PHP development tools available on the market. some development tools are introduced at http://www.downcc.com/k/phpkaifa/and the following are the two PHP Development

(1) Zend Studio

The software for paid software, can be free trial, the method can refer to the http://www.imuum.com/zend-studio12-0-2-key-cracked-registration-key-download.html cracking

My local installation version: Zend Studio12.0.1

Workspace:

Project overview:

Access address: http: // localhost/Zend-workspaces/test/index. php

(2) EclipsePHP Studio

My local installation version: EclipsePHP Studio 4.0

Workspace:

Project overview:

Access address: http: // localhost/EPP-workspaces/test/application/index. php

The preceding installation requires manual installation of various software. In fact, many integrated environments can simplify these operations.

References:

Http://www.cnblogs.com/pharen/archive/2012/02/06/2340628.html

Ghost often needs to re-build the PHP environment after changing the computer or reinstalling the system. this time, a simple record of the PHP environment building process in Windows...

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.