導航:首頁 > 編程語言 > 阿里雲ecs升級php版本

阿里雲ecs升級php版本

發布時間:2022-08-30 14:00:51

『壹』 阿里雲CentOS系統ECS怎麼升級php版本

聯系客服比較直接一點

『貳』 阿里雲上的centos 7.2怎麼yum安裝php 5.6

因之前通過網易的 centos 鏡像,將阿里雲的 centos 升級到最新版了,乘自己的項目尚未開始正式開發,遂將所有的相應環境都升級到最高。
查看 centos 版本:
[root@iZ23d ~]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
1、刪除之前的 php 版本:
[root@iZ23d ~]# yum remove php* php-common
Loaded plugins: langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
No Match for argument: php-5.4.16
No Match for argument: php-5.4.16.tar.gz
No Match for argument: php-7.0.1RC1
No Match for argument: php-7.0.1RC1.tar.gz
No Match for argument: phpMyAdmin-4.4.0.tar.gz
No Match for argument: php-common
No Packages marked for removal
2、rpm 安裝 Php7 相應的 yum源:
[root@iZ23d ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
warning: /var/tmp/rpm-tmp.LhJKKR: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing... ################################# [100%]
package webtatic-release-7-3.noarch is already installed
3、 直接yum安裝php7:
[root@iZ23d ~]# yum install php70w
Loaded plugins: langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
。。。 【省略】
Warning: RPMDB altered outside of yum.
Installing : php70w-common-7.0.0-1.w7.x86_64 1/3
Installing : php70w-cli-7.0.0-1.w7.x86_64 2/3
Installing : php70w-7.0.0-1.w7.x86_64 3/3
Verifying : php70w-7.0.0-1.w7.x86_64 1/3
Verifying : php70w-common-7.0.0-1.w7.x86_64 2/3
Verifying : php70w-cli-7.0.0-1.w7.x86_64 3/3
Installed:
php70w.x86_64 0:7.0.0-1.w7
Dependency Installed:
php70w-cli.x86_64 0:7.0.0-1.w7 php70w-common.x86_64 0:7.0.0-1.w7
Complete!
4、檢查 php 版本:
[root@iZ23d ~]# php -v
PHP 7.0.0 (cli) (built: Dec 2 2015 20:42:32) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
[root@iZ23d2e6hoqZ ~]#
以上顯示安裝成功!
5、重啟 Apache,查看 phpinfo :
[root@iZ23d ~]# systemctl restart httpd.service
檢查phpinfo:
PHP Version 7.0.0
SystemLinux iZ23d 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64
Build DateDec 2 2015 20:43:38
Server APIApache 2.0 Handler
Virtual Directory Supportdisabled
Configuration File (php.ini) Path/etc
Loaded Configuration File/etc/php.ini
Scan this dir for additional .ini files/etc/php.d
Additional .ini files parsed/etc/php.d/bz2.ini, /etc/php.d/calendar.ini, /etc/php.d/ctype.ini, /etc/php.d/curl.ini, /etc/php.d/exif.ini, /etc/php.d/fileinfo.ini, /etc/php.d/ftp.ini, /etc/php.d/gettext.ini, /etc/php.d/gmp.ini, /etc/php.d/iconv.ini, /etc/php.d/json.ini, /etc/php.d/phar.ini, /etc/php.d/shmop.ini, /etc/php.d/simplexml.ini, /etc/php.d/sockets.ini, /etc/php.d/tokenizer.ini, /etc/php.d/xml.ini, /etc/php.d/zip.ini
PHP API20151012
PHP Extension20151012
Zend Extension320151012
Zend Extension BuildAPI320151012,NTS
PHP Extension BuildAPI20151012,NTS
Debug Buildno
Thread Safetydisabled
Zend Signal Handlingdisabled
Zend Memory Managerenabled
Zend Multibyte Supportdisabled
IPv6 Supportenabled
DTrace Supportenabled
Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filterszlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*
This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
Configuration
apache2handler
Apache VersionApache/2.4.6 (CentOS)
Apache API Version20120211
Server [email protected]
Hostname:Portxxxx.xxxxx.xxx:0
User/Groupapache(48)/48
Max RequestsPer Child: 0 - Keep Alive: on - Max Per Connection: 100
TimeoutsConnection: 60 - Keep-Alive: 15
Virtual ServerYes
Server Root/etc/httpd
Loaded Molescore mod_so http_core mod_access_compat mod_actions mod_alias mod_allowmethods mod_auth_basic mod_auth_digest mod_authn_anon mod_authn_core mod_authn_dbd mod_authn_dbm mod_authn_file mod_authn_socache mod_authz_core mod_authz_dbd mod_authz_dbm mod_authz_groupfile mod_authz_host mod_authz_owner mod_authz_user mod_autoindex mod_cache mod_cache_disk mod_data mod_dbd mod_deflate mod_dir mod_mpio mod_echo mod_env mod_expires mod_ext_filter mod_filter mod_headers mod_include mod_info mod_log_config mod_logio mod_mime_magic mod_mime mod_negotiation mod_remoteip mod_reqtimeout mod_rewrite mod_setenvif mod_slotmem_plain mod_slotmem_shm mod_socache_dbm mod_socache_memcache mod_socache_shmcb mod_status mod_substitute mod_suexec mod_unique_id mod_unixd mod_userdir mod_version mod_vhost_alias mod_dav mod_dav_fs mod_dav_lock mod_lua prefork mod_proxy mod_lbmethod_bybusyness mod_lbmethod_byrequests mod_lbmethod_bytraffic mod_lbmethod_heartbeat mod_proxy_ajp mod_proxy_balancer mod_proxy_connect mod_proxy_express mod_proxy_fcgi mod_proxy_fdpass mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_wstunnel mod_ssl mod_systemd mod_cgi mod_perl mod_php7
以上顯示 php7 安裝成功!

『叄』 阿里雲伺服器支持哪個版本的php

阿里雲ecs只是一個操作系統,你需要什麼php版本,自己手動配置;如果不擅長的話,可以在他的阿里雲市場裡面找服務商,或者安裝已經設置好的鏡像,鏡像文件一般都註明php的版本。


『肆』 怎麼升級阿里雲資料庫php版本

1.[root@iZ28vpjayxiZ ~]# pecl install channel://pecl.php.net/msgpack-0.5.5
2.#修改php.ini 增加 extension=msgpack.so
4.[root@iZ28vpjayxiZ ~]# pecl install yar
5.yes
6.#修改php.ini 增加 extension=yar.so
7.#由於yar需要json支持,所以需要先載入json.so

『伍』 阿里雲伺服器 提示 PHP版本太低 如何處理

既然伺服器的管理許可權在你手裡,那你就安裝一個高版本的PHP吧,把舊的卸載掉,把新的裝上就行了。

『陸』 如何升級php版本

1.從官網下載一個php7.1.5

2.將剛下載的壓縮解壓縮,修改命名為php7.1.5,即php+版本號。

3.將這個文件夾放在wamp/bin/php 目錄下。

4.將原來版本的php5.5.12文件夾中的,php.ini , phpForApache.ini , wampserver.conf 文件 復制到 php7.1.5 文件夾中。

5.修改 php.ini , phpForApache.ini 兩個文件, 將兩個文件中所有的 php5.5.12 替換成 php7.1.5。

6.修改wampserver.conf文件, 如果你的apache版本是 2.2X 那麼修改

$phpConf['apache']['2.2']['LoadMoleName'] = 'php5_mole';
$phpConf['apache']['2.2']['LoadMoleFile'] = 'php5apache2_2.dll';


$phpConf['apache']['2.2']['LoadMoleName'] = 'php7_mole';
$phpConf['apache']['2.2']['LoadMoleFile'] = 'php7apache2_2.dll';
如果你的apache版本是 2.4 那麼修改

$phpConf['apache']['2.4']['LoadMoleName'] = 'php5_mole';
$phpConf['apache']['2.4']['LoadMoleFile'] = 'php5apache2_4.dll';
為試試吧,我還在後盾人線下面授培訓學習呢,大牛講師在身邊隨時解答呢,有不會的可以問我哦ヽ(○^㉨^)ノ♪

『柒』 阿里雲ecs怎麼配置php環境

雲伺服器Elastic Compute Service(ECS)是阿里雲提供的一種基礎雲計算服務。
使用雲伺服器ECS就像使用水、電、煤氣等資源一樣便捷、高效。您無需提前采購硬體設備,而是根據業務需要,隨時創建所需數量的雲伺服器ECS實例。在使用過程中,隨著業務的擴展,您可以隨時擴容磁碟、增加帶寬。如果不再需要雲伺服器,也能隨時釋放資源,節省費用。
ECS涉及的所有資源,包括實例規格、塊存儲、鏡像、快照、帶寬和安全組。您可以通過 雲伺服器管理控制台或者 阿里雲 App 配置您的ECS資源。
雲伺服器ecs都有哪些作用呢?

1、完全管理許可權:
對雲伺服器的操作系統有完全控制權,用戶可以通過連接管理終端自助解決系統問題,進行各項操作;
2、快照備份與恢復:
對雲伺服器的磁碟數據生成快照,用戶可使用快照回滾、恢復以往磁碟數據,加強數據安全;
3、自定義鏡像:
對已安裝應用軟體包的雲伺服器,支持自定義鏡像、數據盤快照批量創建伺服器,簡化用戶管理部署;
4、擁有API介面:
使用ECS API調用管理,通過安全組功能對一台或多台雲伺服器進行訪問設置,使開發使用更加方便。

『捌』 誰會用阿里雲ECS 安裝PHP

阿里雲ECS直接由一鍵web環境安裝包,搜索一下,然後上傳到自己的伺服器,執行以下哪個安裝程序,選擇php mysql apache/nginx 的版本就好的

『玖』 現在要升級php5.4已上的版本,怎麼升級

一、前言
我們公司伺服器上的PHP版本是5.2,真的太舊了,除了很多新特性無法使用之外,PHP5.4的性能也比5.2版本有所提高,有助於提供業務的吞吐量。今年,我們計劃將公司所有業務的PHP版本升級為5.4.41。
二、升級前准備
在升級PHP版本之前,首先要做的是檢查業務代碼的語法兼容性。其實,在官網上已經有相關的升級指引,我參考的是這2個鏈接。
從 PHP 5.2.x 移植到 PHP 5.3.x:http://php.net/manual/zh/migration53.php
從 PHP 5.3.X 遷移到 PHP 5.4.X:http://php.net/manual/zh/migration54.php
官方的文檔中,沒有升級指引從PHP5.2直接升級到PHP5.4,因此,需要對以上的升級指引,做一個歸納總結。上面的鏈接中有好幾篇子文章,我主要關注的是「不向下兼容的變化」,「PHP 5.3.x 中棄用的功能」,「被移除的擴展」,「其他改變」……,主要目的是找出不兼容的語法(導致錯誤),以及將會被移除的函數。
我們使用以下一個表格來進行總結,方便各業務的人員能夠對照PHP版本升級帶來的變化而修改各自的業務代碼
以上內容摘抄自官網的一些說明,這里就不詳細列出來了。
三、測試
完善的單元測試和功能測試可以保證PHP版本升級後能及時發現問題。
四、上線方案
灰度,再灰度,這個是我們的原則。上線的時候,先對一個機房的伺服器PHP版本進行升級,再逐步覆蓋到所有的伺服器。與此同時,上線之後,要密切留意是否error.log裡面是否包含「PHP Fatal error」的錯誤日誌,伺服器的響應狀態是否正常。
---------------------

『拾』 阿里雲centos6.6怎麼更新yum軟體源升級php7

Linux升級命令有兩個分別是yum upgrade和yum update, 這個兩個命令是有區別的:
代碼如下:
yum -y update
升級所有包同時也升級軟體和系統內核

代碼如下:
yum -y upgrade
只升級所有包,不升級軟體和系統內核
實驗分別測試 yum -y upgrade和yum -y update

升級前

系統版本: centos5.5
內核版本: 2.6.18-194.el5

升級前做過簡單配置文件修改

yum -y upgrade 升級後

系統版本: centos5.7
內核版本: 2.6.18-194.el5

yum -y update 升級後

系統版本: centos5.7
內核版本: 2.6.18-238.el5

閱讀全文

與阿里雲ecs升級php版本相關的資料

熱點內容
vc6查看編譯的錯誤 瀏覽:595
心理大全pdf 瀏覽:1002
區域鏈加密幣怎麼樣 瀏覽:341
查找命令符 瀏覽:95
壓縮工具zar 瀏覽:735
白盤怎麼解壓 瀏覽:474
辰語程序員學習筆記 瀏覽:47
程序員被公司勸退 瀏覽:523
java三子棋 瀏覽:692
加密空間怎麼強制進入 瀏覽:345
ug分割曲線命令 瀏覽:209
學碼思程序員 瀏覽:609
自考雲學習app為什麼登不上 瀏覽:410
domcer伺服器晝夜更替怎麼搞 瀏覽:436
plc和單片機哪個好 瀏覽:535
帝國神話組建雲伺服器 瀏覽:827
鄧散木pdf 瀏覽:199
方舟怎麼直連伺服器圖片教程 瀏覽:563
假相pdf 瀏覽:336
找對象找程序員怎麼找 瀏覽:976