導航:首頁 > 版本升級 > yumphp升級56

yumphp升級56

發布時間:2023-05-12 01:38:38

㈠ 阿里雲上的centos 7.2怎麼yum安裝php 5.6

阿里雲Centos配置php環境 方法/步驟 打開putty工具,在主機名稱中輸入阿里雲ecs的IP地址和埠。輸入好後,點擊「打開」進入。 進入putty界面後,輸入系統賬號和密碼。提示一下密碼是暗文的,輸入密碼時不簡首會顯示在屏幕上的攔睜數。 進入系統後,輸入命令進行安裝。 安裝apache: yum install httpd httpd-devel 啟動apache: /etc/init.d/httpd start 此時輸入伺服器的IP地址,應該看到apache的服務頁面,埠不用輸,apache默認就是使用80埠 安裝mysql: yum install mysql mysql-server 啟動mysql: /etc/init.d/mysqld start 安裝php yum install php php-devel 重啟apache使php生效 /etc/init.d/httpd restart 安裝php的擴展 yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc 安裝完擴展之後需要再次重啟apache /etc/init.d/httpd restart 最後在目錄:/var/www/html/下建立一個PHP文件 代碼內容如下: <?php phpinfo(); ?> 當你訪問這個文件時,就能看到php版本以及所安裝的插件信息了。 4 安裝完所有的軟體後,安裝VPSMate面板。它提供界面化操作文件和控制軟體。 本數據來源於網路地圖,最終結果以網路地圖最新數據為准。 我現在使早御用的是小鳥雲。他們官網最近有活動蠻優惠,可以去看看!

㈡ 阿里雲上的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 安裝成功!

㈢ 如何在CentOS 6.5上升級PHP版本

在更新PHP之前,先查看下當前PHP版本,避免重復的更新
# php -v
如何在CentOS 6.5上升級PHP
檢查當前PHP的安裝包
# yum list installed | grep php
如何在CentOS 6.5上升級PHP
移除當前PHP的安裝包,否則容易起沖突
# yum remove php*
如何在CentOS 6.5上升級PHP
由於默認的YUM源無法升級PHP,所以需要添加第三方的YUM源,此處用到webtatic。
因為是CentOS 6.5,所以用以下URL
# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
如果是CentOS 7.x
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
如何在CentOS 6.5上升級PHP
查看YUM源上能用PHP安裝包
# yum list php*
如何在CentOS 6.5上升級PHP
安裝PHP5.5及需要的擴展
# yum install php55w php55w-devel php55w-common php55w-mysql php55w-pdo php55w-opacache php55w-xml
如何在CentOS 6.5上升級PHP
再次查看PHP版本,以確認安裝是否成功
如何在CentOS 6.5上升級PHP
對了,如果你的PHP要用到Redis,請別忘了安裝php-redis 擴展
# yum install php-redis
如何在CentOS 6.5上升級PHP

㈣ yum 安裝的php56怎麼配置

action直接空,直接用submit按鈕,點擊不就提交到當前頁面了額,<input id="submit1" name="submit1" type="button">你這個地方幹嘛用button,用submit按鈕專額

如果樓主還是不清楚屬,樓主可以去後盾人學習,我就是在哪裡學習

㈤ 如何在CentOS 6.5上升級PHP版本

在更新PHP之前,先查看下當前PHP版本,避免重復的更新
# php -v
如何在CentOS 6.5上升級PHP
檢查當前PHP的安裝包
# yum list installed | grep php
如何在CentOS 6.5上升級PHP
移除當前PHP的安裝包,否則容易起沖突
# yum remove php*
如何在CentOS 6.5上升級PHP
由於默認的YUM源無法升級PHP,所以需要添加第三方的YUM源,此處用到webtatic。
因為是CentOS 6.5,所以用做衡以下URL
# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
如果是CentOS 7.x
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
如何在CentOS 6.5上升級PHP
查看YUM源上能用PHP安裝包
# yum list php*
如何在CentOS 6.5上升級PHP
激胡激安裝PHP5.5及需要的擴展
# yum install php55w php55w-devel php55w-common php55w-mysql php55w-pdo php55w-opacache php55w-xml
如何在明襪CentOS 6.5上升級PHP
再次查看PHP版本,以確認安裝是否成功
如何在CentOS 6.5上升級PHP
對了,如果你的PHP要用到Redis,請別忘了安裝php-redis 擴展
# yum install php-redis

㈥ linux系統的伺服器上如何將php軟體進行升級

|rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
php --version

㈦ yum 安裝lamp怎麼升級php

centos6.5
1.yum安裝和源代碼編譯在使用的時候沒啥區別,但是安裝的過程就大相徑庭了,yum只需要3個命令就可以完成,源代碼需要13個包,還得加壓編譯,步驟很麻煩,而且當做有時候會出錯,源代碼編譯安裝大概需要2個小時,好處在於可以自己配置地址等一些虧搜飢參數,yum安裝半個小時搞定,一般不漏姿會出錯,更新也很方便。

2.我的機器是centosrelease5.964為的系銷返統,一般機器都帶yum命令,並且yum包源都是可以用的,就是說不用你自己下載東西,直接yum-yinstall後面加上你所需要安裝的軟體,他會自動下載自動安裝,非常方便。例如yum-yinstallhttpd自動下載並安裝apache伺服器。lamp環境只需要安裝httpd,MySQL,PHP

3.首先更新一下yum-yupdate

4.用yum安裝Apache,Mysql,PHP.

4.1安裝Apache
yuminstallhttpdhttpd-devel
安裝完成後,用/etc/init.d/httpdstart啟動apache
設為開機啟動:chkconfighttpdon
4.2安裝mysql
yuminstallmysqlmysql-servermysql-devel
同樣,完成後,用/etc/init.d/mysqldstart啟動mysql
4.3設置mysql密碼
mysql>;USEmysql;
mysql>;UPDATEuserSETPassword=PASSWORD('newpassword')WHEREuser='root';
mysql>;FLUSHPRIVILEGES;
設置mysql密碼還可以用:mysql_secure_installation命令

4.4允許遠程登錄
mysql-uroot-p
EnterPassword:<yournewpassword>
mysql>GRANTALLPRIVILEGESON*.*TO'用戶名'@'%'IDENTIFIEDBY'密碼'WITHGRANTOPTION;
完成後就能用mysql-front遠程管理mysql了。
設為開機啟動
chkconfigmysqldon
5PHP5.4安裝
rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest.rpm(下載最新的源)
yuminstallphp54wphp54w-bcmathphp54w-cliphp54w-commonphp54w-develphp54w-fpmphp54w-gdphp54w-imapphp54w-ldapphp54w-mbstringphp54w-mcryptphp54w-mysqlphp54w-odbcphp54w-pdophp54w-pearphp54w-pecl-igbinaryphp54w-xmlphp54w-xmlrpcphp54w-opcachephp54w-intlphp54w-pecl-memcache安裝PHP對應的各種擴展;
使用yum安裝就是各種方便,用源碼安裝試了十幾次,各種bug無法解決

㈧ php5.3如何升級到php5.6

升級很容易,先卸載 php 5..=3

yum remove php*

然後安裝

yum install php56*

就可以了

如果輪歷含我的回答沒爛肢能幫助您,請臘笑繼續追問。

㈨ centos6.5的php5.3.3這個版本怎麼升級到5.6

簡單介紹一下,如何在CentOS上安裝PHP5.6。

配置yum源

追加CentOS 6.5的epel及remi源。

#rpm-Uvhhttp://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm-Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm

以下是CentOS 7.0的源。

#yuminstallepel-release
#rpm-ivhhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpm

使用yum list命令查看可安裝的包(Packege)。

#yumlist--enablerepo=remi--enablerepo=remi-php56|grepphp

安裝PHP5.6

yum源配置好了,下一步就安裝PHP5.6。

#yuminstall--enablerepo=remi--enablerepo=remi-php56phpphp-opcachephp-develphp-mbstringphp-mcryptphp-mysqlndphp-phpunit-PHPUnitphp-pecl-xdebugphp-pecl-xhprof

用PHP命令查看版本。

#php--version
PHP5.6.0(cli)(built:Sep3201419:51:31)
Copyright(c)1997-2014ThePHPGroup
ZendEnginev2.6.0,Copyright(c)1998-2014ZendTechnologies
withZendOPcachev7.0.4-dev,Copyright(c)1999-2014,byZendTechnologies
withXdebugv2.2.5,Copyright(c)2002-2014,byDerickRethans

在這里安裝的版本是PHP5.6.0,細心的用戶可能已經發現ZendGuardLoader變成Zend OPcahe了。

對從PHP5.5開始PHP代碼緩存從APC變成了Zend OPcache了。

更多問題可以去php中文網問答社區提問http://www.php.cn/wenda.html,大神在線幫你解決,希望對你有幫助

㈩ 如何在linux上安裝php5.6,謝謝,

不知道你問的linux,是哪個發行版本,常用的如 ubntu,centos,debian等。

我列一個centos7(伺服器常用這個版本)的安裝方法吧

centos7默認使用yum install 來安裝程序,但默認源安裝的php是5.4的,版本比較低,

要安裝高版本的,要麼下載源代碼手動編譯安裝,但對不熟悉的,萬一出點錯誤,會越搞越亂。我一般使用epel源安裝php,裡面各個版本都有,最新的php7.3

  1. 首先安裝epel

    rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

    這裡面的url是目前我用的,如果提示出錯,就是換url了,可以在電腦上手動打開epel源列表去檢查 epel-release是哪個版本,換上對應的名字

  2. 按版本安裝php

rpm-Uvhhttps://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yuminstallphp56wphp56w-mysqlphp56w-pdophp56w-gdphp56w-sslphp56w-mbstringphp56w-cliphp56w-xmlphp56w-bcmath

我這里列的是一些常用的php擴展,如果需要其它的,手動加上即可

如果需要安裝php其它版本,把包名里的56改成對應版本即可 ,如

yuminstallphp71wphp71w-mysqlphp71w-pdophp71w-gdphp71w-sslphp71w-mbstringphp71w-cliphp71w-xmlphp71w-bcmath

yuminstallphp72wphp72w-mysqlphp72w-pdophp72w-gdphp72w-sslphp72w-mbstringphp72w-cliphp72w-xmlphp72w-bcmath

可對應安裝php7.1和php7.2,這種安裝方法,會默認配置好對應的設置,php.ini在/etc/中查找,命令行也默認啟用了 (php-cli)

閱讀全文

與yumphp升級56相關的資料

熱點內容
做win10系統u盤安裝系統教程視頻教程 瀏覽:34
兒童單詞分類app 瀏覽:486
手機怎麼打開cpp文件 瀏覽:958
為什麼u盤只能復制很少的文件 瀏覽:399
中興v889m系統升級包 瀏覽:880
安順有哪些網路公司 瀏覽:612
javasplit正則分割字元串 瀏覽:932
免費游戲代碼 瀏覽:423
閱讀文件時出錯什麼意思 瀏覽:780
投標文件初評階段的內容 瀏覽:249
企業招聘app哪個靠譜服務好 瀏覽:135
數據中台需要什麼產品 瀏覽:374
資料庫的股票一般是多少 瀏覽:587
db什麼資料庫 瀏覽:677
哪個訂酒店賓館的app便宜 瀏覽:443
java多點登陸 瀏覽:557
win10創意者玩游戲 瀏覽:352
iphone5激活與未激活的區別 瀏覽:337
網路拓撲圖編程 瀏覽:259
電腦微信能接收文件發不了文件是怎麼回事 瀏覽:659

友情鏈接