Table of Contents
php5.3 php5.4 install and config on windows VC6 and VC9,php5.3php5.4
Senario
Download & Install PHP5.4 for Windows
php5.4 [VC9] 在 VC6 环境中安装
Download php-5.4.30
download mod_fcgid-2.3.6-win32-x86.zip
Restart Apache
Check your version
enable php_memcache.dll
load 正确版本的 php_memcache.dll
php5.3 php5.4 之间切换
php5310想IIS与Apache一块用,该怎下载,弄什VC9与VC6
PHP 53 Windows Binary 官方网站为何没有 VC6 版本?
Home php教程 php手册 php5.3 php5.4 install and config on windows VC6 and VC9,php5.3php5.4

php5.3 php5.4 install and config on windows VC6 and VC9,php5.3php5.4

Jun 13, 2016 am 09:28 AM
and config install php5.4 windows

php5.3 php5.4 install and config on windows VC6 and VC9,php5.3php5.4

Senario

Yii2 框架开始要求 PHP 版本在 PHP 5.4.0 之上

<p>eg. yii2 中用到这样的代码 php 5.3.5 就不支持</p>
Copy after login
<code>	$extension = [
		&#39;name&#39; => $package->getName(),
		&#39;version&#39; => $package->getVersion(),
	];</code>
Copy after login

Download & Install PHP5.4 for Windows

<p>window php-5.4.0 之后不再支持 VC6 的编译包, 只下载到了 VC9 的编译包。</p>
Copy after login

php5.4 [VC9] 在 VC6 环境中安装

<p>win下的apache是用VC6编译的,其插件(apache module)也必须用VC6编译。<br />PHP5.4为什么不支持VC6?因为VC6太旧了,1998年的工具..<br />不能用是指php以apache mod的方式不能用。<br />现在php都以fast-cgi的方式挂载支持apache,连微软iis都放弃isapi转采用fast-cgi了。<br />在不同的进程下,VC9的php fast-cgi通过进程间通讯支持apache,即使apache不是vc不是win版都没问题。<br />去下载apache的mod_fcgid,然后把php配置到fcgid上。就可以用了</p>
Copy after login

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
    php.ini

    <code>; 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</code>
    Copy after login

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

    <code>#LoadModule cgi_module modules/mod_cgi.so
    LoadModule fcgid_module modules/mod_fcgid.s
    #php-5.4.30-Win32-VC9-x86
    #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    PHPIniDir "C:/php5.4/"
    LoadModule php5_module "C:/php5.4/php5apache2_2.dll"
    #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTAL</code>
    Copy after login

    (原创文章 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 eye on the version, otherwise you can't restart apache normally

    load 正确版本的 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 22, 2013 2:19 AM 182281 php_memcache-3.0.8-5.4-ts-vc9-x86.zip

    当然,之前有些老的项目在 PHP5.4 之下支持也不是很好,比如 split 函数在 5.4 中就不支持。

    php5.3 php5.4 之间切换

    • apache web端: reconfig httpd.conf
    • cmd console端: reconfig computer $PATH

    php5310想IIS与Apache一块用,该怎下载,弄什VC9与VC6

    (PHP安装)
    zhidao.baidu.com/question/322636938.html
    参考最佳答案
     

    PHP 53 Windows Binary 官方网站为何没有 VC6 版本?

    你好,目前官方最新的5.3.6只有vc9,还没有vc6,据说是5.3.6有bug,还没解决好。要用vc6只好用5.3.5版的了。
     

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem of third-party interface returning 403 in Node.js environment? How to solve the problem of third-party interface returning 403 in Node.js environment? Mar 31, 2025 pm 11:27 PM

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

How to download okx trading platform How to download okx trading platform Mar 26, 2025 pm 05:18 PM

The OKX trading platform can be downloaded through mobile devices (Android and iOS) and computers (Windows and macOS). 1. Android users can download it from the official website or Google Play, and they need to pay attention to security settings. 2. iOS users can download it through the App Store or follow the official announcement to obtain other methods. 3. Computer users can download the client of the corresponding system from the official website. Always make sure to use official channels when downloading, and register, log in and security settings after installation.

What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? Apr 01, 2025 am 08:06 AM

The problem of comparing and synchronizing BeyondCompare files: Case sensitivity failure when using Beyond...

How to avoid third-party interfaces returning 403 errors in Node environment? How to avoid third-party interfaces returning 403 errors in Node environment? Apr 01, 2025 pm 02:03 PM

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

Four ways to implement multithreading in C language Four ways to implement multithreading in C language Apr 03, 2025 pm 03:00 PM

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

Why can't my code get the data returned by the API? How to solve this problem? Why can't my code get the data returned by the API? How to solve this problem? Apr 01, 2025 pm 08:09 PM

Why can't my code get the data returned by the API? In programming, we often encounter the problem of returning null values ​​when API calls, which is not only confusing...

Where to download Python .whl files under Windows? Where to download Python .whl files under Windows? Apr 01, 2025 pm 08:18 PM

Python binary library (.whl) download method explores the difficulties many Python developers encounter when installing certain libraries on Windows systems. A common solution...

How to monitor system performance through Debian logs How to monitor system performance through Debian logs Apr 02, 2025 am 08:00 AM

Mastering Debian system log monitoring is the key to efficient operation and maintenance. It can help you understand the system's operating conditions in a timely manner, quickly locate faults, and optimize system performance. This article will introduce several commonly used monitoring methods and tools. Monitoring system resources with the sysstat toolkit The sysstat toolkit provides a series of powerful command line tools for collecting, analyzing and reporting various system resource metrics, including CPU load, memory usage, disk I/O, network throughput, etc. The main tools include: sar: a comprehensive system resource statistics tool, covering CPU, memory, disk, network, etc. iostat: disk and CPU statistics. mpstat: Statistics of multi-core CPUs. pidsta

See all articles