Apache 2.4+PHP5.X+MYSQ5.XL Environment Construction (ii)

Source: Internet
Author: User
Tags phpinfo

php5.x Installation


Download

Window version of PHP official: http://windows.php.net/download#php-5.6

Description

Each PHP version, PHP officially provides two forms, non-thread-safe (Non thread safe), thread safe.

The thread-safe version is used here because the Apache interface is not provided for non-thread safety. Http://write.blog.csdn.net/postedit?ref=toolbar

installation

Download the zip file for php "VC9 x86 Thread Safe (2014-dec-17 23:50:20)" and extract it to the installation directory. ( unzip here to C:\WEB\)


Set PHP config file php.ini (location in Php\php.ini)

1, PHP directory if there is no php.ini file, copy file php.ini-development renamed to PHP.ini

2, set the PHP extension DLL path, search Extension_dir, set the following

<span style= "Font-family:simsun;" >; Directory in which the loadable Extensions (modules) reside.; Http://php.net/extension-dir; Extension_dir = "./"; On windows:extension_dir = "C:/web/php/ext" </span>

3., enable the necessary extension DLLs (just remove the semicolon in front of the DLL)

; Image Processing Module

Extension=php_gd2.dll

; Mail Processing module

Extension=php_imap.dll

Multi-byte character processing module

Extension=php_mbstring.dll

Extension=php_exif.dll

; MySQL interface module

Extension=php_mysql.dll

Extension=php_mysqli.dll

Extension=php_pdo_mysql.dll

; OpenSSL interface Module

Extension=php_openssl.dll

4. PHP and PHP Extension DLL paths are added to the environment variable "path". (C:\web\php;c:\web\php\ext)

5. PHP's Time zone settings

<span style= "Font-family:simsun;" >[Date]; Defines the default timezone used by the date functions; Http://php.net/date.timezonedate.timezone = prc</span>

PHP Test

In the Apache web directory, copy the script below into Notepad, save as phpinfo.php, execute localhost/phpinfo.php, and if you can print out PHP information, the PHP has been installed successfully.

<span style= "Font-family:simsun;" ><?phpphpinfo ();? ></span>


Apache 2.4+PHP5.X+MYSQ5.XL Environment Construction (ii)

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.