php5.3 php5.4 install and config on windows VC6 and VC9
2020-12-13 05:17
标签:blog http io art for re Yii2 框架开始要求 PHP 版本在 PHP 5.4.0 之上 eg. yii2 中用到这样的代码 php 5.3.5 就不支持 window php-5.4.0 之后不再支持 VC6 的编译包, 只下载到了 VC9 的编译包。 win下的apache是用VC6编译的,其插件(apache module)也必须用VC6编译。 From http://windows.php.net/downloads/releases/php-5.4.30-Win32-VC9-x86.zip modify C:\php5.4\php.ini From http://www.apache.org/dist/httpd/binaries/win32/ modify C:\Apache2.2\conf\httpd.conf (原创文章 http://www.cnblogs.com/ganiks/)[http://www.cnblogs.com/ganiks/] Check apache_php version and php console version Keep an eye on the version, otherwise you can‘t restart apache normally My environment: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/ 当然,之前有些老的项目在 PHP5.4 之下支持也不是很好,比如 php5.3 php5.4 install and config on windows VC6 and VC9,搜素材,soscw.com php5.3 php5.4 install and config on windows VC6 and VC9 标签:blog http io art for re 原文地址:http://www.cnblogs.com/ganiks/p/php5_3-php5_4-on-windows-server.htmlSenario
$extension = [
'name' => $package->getName(),
'version' => $package->getVersion(),
];
Download & Install PHP5.4 for Windows
php5.4 [VC9] 在 VC6 环境中安装
PHP5.4为什么不支持VC6?因为VC6太旧了,1998年的工具..
不能用是指php以apache mod的方式不能用。
现在php都以fast-cgi的方式挂载支持apache,连微软iis都放弃isapi转采用fast-cgi了。
在不同的进程下,VC9的php fast-cgi通过进程间通讯支持apache,即使apache不是vc不是win版都没问题。
去下载apache的mod_fcgid,然后把php配置到fcgid上。就可以用了Download php-5.4.30
.zip
file into C:\php5.4
php.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
httpd.conf#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
Restart Apache
Check your version
enable php_memcache.dll
load 正确版本的 php_memcache.dll
Thread Safety enabled
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Loaded Configuration File C:\php5.4\php.ini
PHP Version 5.4.30
Tuesday, October 22, 2013 2:19 AM 182281 php_memcache-3.0.8-5.4-ts-vc9-x86.zipsplit
函数在 5.4 中就不支持。php5.3 php5.4 之间切换
上一篇:shell中返回一个数组
下一篇:Python里的目录
文章标题:php5.3 php5.4 install and config on windows VC6 and VC9
文章链接:http://soscw.com/essay/30662.html