PHP Environment Setup

Source: Internet
Author: User

The original local environment can be used here, it is recommended to use a single software model for learning, but also more conducive to training software compatibility problem solving ability.

    • Apache Httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
    • PHP Php-5.3.10-win32-vc9-x86.zip
    • MySQL Mysql-5.5.20-win32.msi

Can be referenced under Windows to build a PHP development environment

I compare this time to facilitate the rapid construction, using the integration package XAMPP5.6, directly including the above software, Windows7 operating system, a comparison of the main changes in the place there are a few:

Apache section

1. Lets you parse PHP files AddType application/x-httpd-php. php. html. htm

2. Change directoryindex in configuration file,documentroot,<directory> three options, DirectoryIndex join index.php, DocumentRoot, <Directory> for the document root directory

PHP section

1. Set the specific directory for the PHP expansion pack

; On Windows:
Extension_dir = "d:/develop/php/ext"

2. Turn on the library function to locate the row of the library you want to open

Extension=php_curl.dll

Extension=php_gd2.dll

Extension=php_mbstring.dll

Extension=php_mysql.dll

Extension=php_xmlrpc.dll

3. Set time zone Date.timezone = Asia/shanghai

Test:

Start Apache, create a new file index.php in the Site directory, enter the content

<?php
  Phpinfo ();
?>

Open the browser input http://localhost, display the following content, the installation was successful, and successfully associated with MySQL.

PHP Environment Setup

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.