Apache 2.4 + php5.x + mysq5.xl Environment (2), php5.xmysq5. xl

Source: Internet
Author: User
Tags php windows phpinfo

Apache 2.4 + php5.x + mysq5.xl Environment (2), php5.xmysq5. xl
PHP5.X Installation


Php windows official: http://windows.php.net/download#php-5.6


For each php version, php provides two official forms: Non-Thread Safe and Thread Safe ).

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


Download the php [VC9 x86 Thread Safe (23:50:20)] zip file and decompress it to the installation directory. (Decompress the package to C: \ WEB \)

Set the php configuration file php. ini (in php \ php. ini)

1. If no php. ini file exists in the php Directory, copy the php. ini-development file and change it to php. ini.

2. Set the php extension dll path and search for extension_dir. The settings are as follows:

<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 dll (just remove the semicolon before 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. Add the php and php extension dll paths to the environment variable PATH. (C: \ WEB \ php; C: \ WEB \ php \ ext)

5.. php 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 Testing

In the Apache web directory, copy the following script to notepad and save it as phpinfo. php. Execute localhost/phpinfo. php. If you can print the php information, it indicates that php has been installed successfully.

<span style="font-family:SimSun;"><?phpphpinfo();?></span>

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.