php5.3 php5.4 install and config on Windows VC6 and vc9,php5.3php5.4_php tutorial

Source: Internet
Author: User
Tags vc9 microsoft iis

php5.3 php5.4 install and config on Windows VC6 and vc9,php5.3php5.4


Senario

Yii2 framework begins to require PHP version above PHP 5.4.0

eg. This code is used in Yii2 PHP 5.3.5 does not support

$extension = ['name' => $package->getName(),'version' => $package->getVersion(),];

Download & Install PHP5.4 for Windows

Window php-5.4.0 no longer supports VC6 's compilation package, only downloaded to VC9 's compilation package.

php5.4 [VC9] installation in VC6 environment

The Apache under Win is compiled with VC6, and its plugin (Apache module) must also be compiled with VC6.
PHP5.4 Why not support VC6? Because VC6 is too old for the tools of the 1998.
Not used means that PHP is not available in Apache mod mode.
PHP is now mounted in fast-cgi to support Apache, and even Microsoft IIS has abandoned the ISAPI switch to use FAST-CGI.
In different processes, VC9 PHP fast-cgi through interprocess communication support Apache, even if Apache is not VC is not the win version is no problem.
To download Apache mod_fcgid, and then configure PHP to Fcgid. You can use it.

Download php-5.4.30

From Http://windows.php.net/downloads/releases/php-5.4.30-Win32-VC9-x86.zip

    • Extract .zip file into C:\php5.4
    • Copy php.ini-production php.ini
    • Modify C:\php5.4\php.ini
      Ini

      ; Directory in which the loadable extensions (modules) reside.; http://php.net/extension-dir; extension_dir = "./"; On windows:; extension_dir = "ext" extension_dir = "C:\php5.4\ext

Download Mod_fcgid-2.3.6-win32-x86.zip

From http://www.apache.org/dist/httpd/binaries/win32/

    • Extract mod_fcgid.so into C:\Apache2.2\modules
    • Modify C:\Apache2.2\conf\httpd.conf
      httpd.conf

      #LoadModule cgi_module modules/mod_cgi.soLoadModule fcgid_module modules/mod_fcgid.s#php-5.4.30-Win32-VC9-x86#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLPHPIniDir "C:/php5.4/"LoadModule php5_module "C:/php5.4/php5apache2_2.dll"#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTAL

      (Original article http://www.cnblogs.com/ganiks/) [http://www.cnblogs.com/ganiks/]

Restart Apache

Check your version

Check apache_php version and PHP console version

    • Echo Phpinfo (); To check
    • Open a cmd window, ' php-v ' to check

Enable Php_memcache.dll

Keep an in the version, otherwise you can ' t restart Apache normally

Load the correct version of Php_memcache.dll

My Environment:
Thread Safety Enabled
Compiler MSVC9 (Visual C + + 2008)
Architecture x86
Loaded Configuration File C:\php5.4\php.ini
PHP Version 5.4.30

http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
Tuesday, October, 2:19 AM 182281 php_memcache-3.0.8-5.4-ts-vc9-x86.zip

Of course, some older projects are not very well supported under PHP5.4, such as functions that are split not supported in 5.4.

Switch between php5.3 php5.4

    • Apache Web side: Reconfig httpd.conf
    • CMD console side: Reconfig computer $PATH

php5310 want IIS and Apache a piece of use, how to download, get what VC9 and VC6

(PHP installation)
Zhidao.baidu.com/question/322636938.html
Refer to Best answers

Why is there a VC6 version of the official web site for Windows Binary in PHP?

Hello, the official latest 5.3.6 There are vc9, there is no VC6, it is said that 5.3.6 has a bug, has not been resolved. To use VC6 had to use 5.3.5 version of the.

http://www.bkjia.com/PHPjc/844684.html www.bkjia.com true http://www.bkjia.com/PHPjc/844684.html techarticle php5.3 php5.4 install and config on Windows VC6 and vc9,php5.3php5.4 Senario YII2 framework began to require PHP version above PHP 5.4.0 eg. yii2 In the use of this code PHP 5.3.5 is not ...

  • Related Article

    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.