PHP6 installation method

Source: Internet
Author: User
PHP6 installation method. Read the PHP6 installation method. Recently, it was found that many people cannot install php6, let me briefly describe the installation method (this article requires a certain PHP installation basis )! The installation package is required first. You can download it at: apache2.2: http://down.chinaz.com/L/100_Lastuptime_Desc_1.aspphp6:

Recently I found that many people cannot install php6, so I just want to briefly describe the installation method (this article requires some PHP installation basics )!
The installation package is required first. You can download it at the following address:
Apache2.2: http://down.chinaz.com/L/100_Lastuptime_Desc_1.asp
Php6: http://snaps.php.net

Step 1: install apache under c:/apache. After installation, enter it in your browser to check whether the installation is successful! If a running error occurs, Port errors may occur. Modify the Listen and ServerName configurations in c:/apache/conf/httpd. conf to other unused ports!

Step 2: unpackage php6 to c:/php, and then package c:/php. ini-recommended: Copy to c:/php. ini, or change the name directly! Configure php. ini correctly. Pay special attention to the extension_dir parameter and change it to "c:/php/ext /".

Step 3: Configure c:/apache/conf/httpd. conf. Add the following content at the end of the file:

LoadFile "c:/php/libmysql. dll"
LoadModule php5_module "c:/php/php6apache2_2.dll"
AddType application/x-httpd-php. php
PHPIniDir "C:/php"

Note that the LoadModule parameter should be php5_module rather than php6_module.
The purpose of LoadFile "c:/php/libmysql. dll" is to enable PHP to support php_mysql.dll extension.

Save and restart APACHE to run PHP!

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.