APMServ5.2.6 升級php5.2 到 5.3版本及Memcache升級!

來源:互聯網
上載者:User

標籤: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升級!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.