標籤:http io ar 使用 for strong sp 檔案 div
一、如何選擇PHP5.3的VC9版本和VC6版本
VC6是什嗎?
VC6就是legacy Visual Studio 6 compiler,就是使用這個編譯器編譯的。
VC9是什嗎?
VC9就是the Visual Studio 2008 compiler,就是用微軟的VS編輯器編譯的。
那我們如何選擇下載哪個版本的PHP呢?
如果你是在windows下使用Apache+PHP的,請選擇VC6版本;
如果你是在windows下使用IIS+PHP的,請選擇VC9版本。
Integration EnvironmentAPMServ5.2.6 的php版本是php5.2.6,升級PHP版本到5.3.5:
1、到 php下載PHP5.3的VC6版本的zip檔案,我下載的是:php-5.3.5-Win32-VC6-x86.zip
2、先停掉自己的web伺服器,php-5.3.5-Win32-VC6-x86.zip解壓檔案後直接
覆蓋APMServ5.2.6的原始PHP檔案目錄,重新命名php.ini-development為php.ini
3、修改php.ini設定檔,找到extension_dir 設定php的擴充檔案目錄位址,
然後開啟自己需要的擴充,和根據自己的需求設定其他選項,我的是:
extension_dir= “D:/APMServ5.2.6/PHP/ext”
4、到Apache\conf目錄中找到httpd.conf修改配置,在LoadModule列表後面添加如下配置【具體路徑根據自己的環境替換】:
LoadFile "D:/APMServ5.2.6/PHP/libmysql.dll"
LoadFile "D:/APMServ5.2.6/PHP/php5ts.dll"
LoadModule php5_module "D:/APMServ5.2.6/PHP/php5apache2_2.dll"
PHPIniDir "D:/APMServ5.2.6/PHP/php.ini"
注意:新下載的php檔案夾中沒有libmysql.dll,需要把原版本裡面的該檔案拷到新版本的php檔案夾中
5、重啟伺服器,查看phpinfo資訊是不是有了
ps:
如果使用phpmyadmin,那麼也得升級。要麼提示
Deprecated: Function eregi() is deprecated in D:\APMServ5.2.6\www\phpMyAdmin\libraries\select_lang.lib.phpon line 146
http://sourceforge.net/projects/phpmyadmin/?source=dlp
直接替換原始phpMyAdmin檔案夾
三、php5.3.5安裝memcache注意事項
1、下載 php5.3.5 對應的 php_memecache.dll,
http://code.google.com/p/sirius/downloads/detail?name=php_memcache.dll&can=2&q=
若無法下載,請FQ或SVN
2、將php_memcache.dll放到php安裝目錄的ext檔案夾中
3、修改php.ini ,增加 extension=php_memcache.dll 擴充
4、重啟apache服務,用phpinfo.php查看是否memcache模組
APMServ5.2.6 升級php5.2 到 5.3版本及Memcache升級!