instalando o php 5.6 ou superior no centos 6.9

1

eu sou novo aqui. Eu estava tentando atualizar minha versão do PHP de PHP 5.5.35 para PHP 5.6 or greater Eu procurei no google, mas nenhum dos métodos funciona. eu tentei


sudo yum install epel*
sudo yum update

sudo wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 
sudo rpm -Uvh remi-release-6*.rpm

sudo yum update

sudo yum --enablerepo=remi,remi-php56 update
sudo yum --enablerepo=remi,remi-php56 upgrade

mas na maioria das vezes todos os métodos me dão: no package available ou no package marked for update

lista de repo


 * base: mirror.hmc.edu
 * epel: mirror.hmc.edu
 * extras: mirror.hmc.edu
 * ius: mirrors.kernel.org
 * remi-php54: mirrors.mediatemple.net
 * remi-php56: mirrors.mediatemple.net
 * remi-php70: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: centos.unixheads.org
 * webtatic: us-east.repo.webtatic.com
 

sudo yum list installed | grep -i php

cpanel-perl-522-PHP-Serialization.x86_64          0.34-1.cp1156        installed
cpanel-php54.x86_64                               5.4.31-1.cp1156      installed
cpanel-php54-Auth-SASL.noarch                     1.0.6-4.cp1152       installed
cpanel-php54-Cache.noarch                         1.5.6-4.cp1152       installed
cpanel-php54-Console-Color.noarch                 1.0.3-4.cp1152       installed
cpanel-php54-Console-Table.noarch                 1.1.5-4.cp1152       installed
cpanel-php54-DB.noarch                            1.7.14-4.cp1152      installed
cpanel-php54-Date.noarch                          1.4.7-4.cp1152       installed
cpanel-php54-Date-Holidays.noarch                 0.21.8-4.cp1152      installed
cpanel-php54-Date-Holidays-Australia.noarch       0.2.1-4.cp1152       installed
cpanel-php54-Date-Holidays-Austria.noarch         0.1.5-4.cp1152       installed
cpanel-php54-Date-Holidays-Brazil.noarch          0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Croatia.noarch         0.1.1-4.cp1152       installed
cpanel-php54-Date-Holidays-Czech.noarch           0.1.0-4.cp1152       installed
cpanel-php54-Date-Holidays-Denmark.noarch         0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-EnglandWales.noarch    0.1.5-4.cp1152       installed
cpanel-php54-Date-Holidays-Finland.noarch         0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Germany.noarch         0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Iceland.noarch         0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Ireland.noarch         0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-Italy.noarch           0.1.1-4.cp1152       installed
cpanel-php54-Date-Holidays-Japan.noarch           0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Netherlands.noarch     0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-Norway.noarch          0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-PHPdotNet.noarch       0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Portugal.noarch        0.1.0-4.cp1152       installed
cpanel-php54-Date-Holidays-Romania.noarch         0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Russia.noarch          0.1.0-4.cp1152       installed
cpanel-php54-Date-Holidays-SanMarino.noarch       0.1.1-4.cp1152       installed
cpanel-php54-Date-Holidays-Serbia.noarch          0.1.0-4.cp1152       installed
cpanel-php54-Date-Holidays-Slovenia.noarch        0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Spain.noarch           0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-Sweden.noarch          0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-Turkey.noarch          0.1.1-4.cp1152       installed
cpanel-php54-Date-Holidays-UNO.noarch             0.1.3-4.cp1152       installed
cpanel-php54-Date-Holidays-USA.noarch             0.1.1-4.cp1152       installed
cpanel-php54-Date-Holidays-Ukraine.noarch         0.1.2-4.cp1152       installed
cpanel-php54-Date-Holidays-Venezuela.noarch       0.1.1-4.cp1152       installed
cpanel-php54-File.noarch                          1.4.1-4.cp1152       installed
cpanel-php54-File-Find.noarch                     1.3.2-4.cp1152       installed
cpanel-php54-File-Fstab.noarch                    2.0.3-4.cp1152       installed
cpanel-php54-HTML-Template-IT.noarch              1.3.0-4.cp1152       installed
cpanel-php54-HTTP.noarch                          1.4.1-4.cp1152       installed
cpanel-php54-HTTP-Request.noarch                  1.4.4-4.cp1152       installed
cpanel-php54-HTTP-WebDAV-Server.noarch            1.0.0RC8-4.cp1152    installed
cpanel-php54-Horde-Alarm.noarch                   2.2.4-4.cp1152       installed
cpanel-php54-Horde-Argv.noarch                    2.0.11-4.cp1152      installed
cpanel-php54-Horde-Auth.noarch                    2.1.8-5.cp1152       installed
cpanel-php54-Horde-Autoloader.noarch              2.1.1-4.cp1152       installed
cpanel-php54-Horde-Browser.noarch                 2.0.9-4.cp1152       installed
cpanel-php54-Horde-Cache.noarch                   2.5.0-4.cp1152       installed
cpanel-php54-Horde-Cli.noarch                     2.0.6-4.cp1152       installed
cpanel-php54-Horde-Compress.noarch                2.1.2-5.cp1152       installed
cpanel-php54-Horde-Compress-Fast.noarch           1.1.0-4.cp1152       installed
cpanel-php54-Horde-Constraint.noarch              2.0.2-4.cp1152       installed
cpanel-php54-Horde-Controller.noarch              2.0.3-4.cp1152       installed
cpanel-php54-Horde-Core.noarch                    2.20.2-4.cp1152      installed
cpanel-php54-Horde-Crypt.noarch                   2.5.3-4.cp1152       installed
cpanel-php54-Horde-Crypt-Blowfish.noarch          1.0.3-4.cp1152       installed
cpanel-php54-Horde-Css-Parser.noarch              1.0.6-4.cp1152       installed
cpanel-php54-Horde-CssMinify.noarch               1.0.2-4.cp1152       installed
cpanel-php54-Horde-Data.noarch                    2.1.2-4.cp1152       installed
cpanel-php54-Horde-Date.noarch                    2.1.0-4.cp1152       installed
cpanel-php54-Horde-Date-Parser.noarch             2.0.4-4.cp1152       installed
cpanel-php54-Horde-Dav.noarch                     1.1.2-4.cp1152       installed
cpanel-php54-Horde-Db.noarch                      2.2.3-4.cp1152       installed
cpanel-php54-Horde-Editor.noarch                  2.0.4-4.cp1152       installed
cpanel-php54-Horde-ElasticSearch.noarch           1.0.2-4.cp1152       installed
cpanel-php54-Horde-Exception.noarch               2.0.5-4.cp1152       installed
cpanel-php54-Horde-Feed.noarch                    2.0.1-4.cp1152       installed
cpanel-php54-Horde-Form.noarch                    2.0.9-4.cp1152       installed
cpanel-php54-Horde-Group.noarch                   2.0.5-4.cp1152       installed
cpanel-php54-Horde-HashTable.noarch               1.2.3-4.cp1152       installed
cpanel-php54-Horde-History.noarch                 2.3.4-4.cp1152       installed
cpanel-php54-Horde-Http.noarch                    2.1.5-4.cp1152       installed
cpanel-php54-Horde-Icalendar.noarch               2.0.11-4.cp1152      installed
cpanel-php54-Horde-Idna.noarch                    1.0.3-4.cp1152       installed
cpanel-php54-Horde-Image.noarch                   2.3.1-4.cp1152       installed
cpanel-php54-Horde-Imap-Client.noarch             2.28.1-4.cp1152      installed
cpanel-php54-Horde-Imsp.noarch                    2.0.5-4.cp1152       installed
cpanel-php54-Horde-Injector.noarch                2.0.4-4.cp1152       installed
cpanel-php54-Horde-Itip.noarch                    2.1.0-4.cp1152       installed
cpanel-php54-Horde-JavascriptMinify.noarch        1.1.2-4.cp1152       installed
cpanel-php54-Horde-Kolab-Format.noarch            2.0.4-4.cp1152       installed
cpanel-php54-Horde-Kolab-Session.noarch           2.0.1-4.cp1152       installed
cpanel-php54-Horde-ListHeaders.noarch             1.2.2-4.cp1152       installed
cpanel-php54-Horde-Lock.noarch                    2.1.1-4.cp1152       installed
cpanel-php54-Horde-Log.noarch                     2.1.2-4.cp1152       installed
cpanel-php54-Horde-LoginTasks.noarch              2.0.4-4.cp1152       installed
cpanel-php54-Horde-Mail.noarch                    2.6.0-4.cp1152       installed
cpanel-php54-Horde-Mail-Autoconfig.noarch         1.0.2-4.cp1152       installed
cpanel-php54-Horde-Mime.noarch                    2.9.1-4.cp1152       installed
cpanel-php54-Horde-Mime-Viewer.noarch             2.1.0-4.cp1152       installed
cpanel-php54-Horde-Nls.noarch                     2.0.5-4.cp1152       installed
cpanel-php54-Horde-Notification.noarch            2.0.2-4.cp1152       installed
cpanel-php54-Horde-Oauth.noarch                   2.0.1-4.cp1152       installed
cpanel-php54-Horde-Pack.noarch                    1.0.5-4.cp1152       installed
cpanel-php54-Horde-Pdf.noarch                     2.0.3-4.cp1152       installed
cpanel-php54-Horde-Perms.noarch                   2.1.4-4.cp1152       installed
cpanel-php54-Horde-Prefs.noarch                   2.7.3-4.cp1152       installed
cpanel-php54-Horde-Queue.noarch                   1.1.2-4.cp1152       installed
cpanel-php54-Horde-Rdo.noarch                     2.0.4-4.cp1152       installed
cpanel-php54-Horde-Role.noarch                    1.0.1-5.cp1152       installed
cpanel-php54-Horde-Routes.noarch                  2.0.2-4.cp1152       installed
cpanel-php54-Horde-Rpc.noarch                     2.1.4-4.cp1152       installed
cpanel-php54-Horde-Secret.noarch                  2.0.4-4.cp1152       installed
cpanel-php54-Horde-Serialize.noarch               2.0.3-4.cp1152       installed
cpanel-php54-Horde-Service-Facebook.noarch        2.0.5-4.cp1152       installed
cpanel-php54-Horde-Service-Twitter.noarch         2.1.1-4.cp1152       installed
cpanel-php54-Horde-SessionHandler.noarch          2.2.4-4.cp1152       installed
cpanel-php54-Horde-Share.noarch                   2.0.7-4.cp1152       installed
cpanel-php54-Horde-Smtp.noarch                    1.9.1-4.cp1152       installed
cpanel-php54-Horde-Socket-Client.noarch           2.0.0-5.cp1152       installed
cpanel-php54-Horde-SpellChecker.noarch            2.1.2-4.cp1152       installed
cpanel-php54-Horde-Stream.noarch                  1.6.2-4.cp1152       installed
cpanel-php54-Horde-Stream-Filter.noarch           2.0.3-4.cp1152       installed
cpanel-php54-Horde-Stream-Wrapper.noarch          2.1.2-4.cp1152       installed
cpanel-php54-Horde-Support.noarch                 2.1.3-4.cp1152       installed
cpanel-php54-Horde-SyncMl.noarch                  2.0.3-4.cp1152       installed
cpanel-php54-Horde-Template.noarch                2.0.2-4.cp1152       installed
cpanel-php54-Horde-Text-Diff.noarch               2.1.1-4.cp1152       installed
cpanel-php54-Horde-Text-Filter.noarch             2.3.1-4.cp1152       installed
cpanel-php54-Horde-Text-Flowed.noarch             2.0.2-4.cp1152       installed
cpanel-php54-Horde-Timezone.noarch                1.0.9-4.cp1152       installed
cpanel-php54-Horde-Token.noarch                   2.0.6-4.cp1152       installed
cpanel-php54-Horde-Translation.noarch             2.2.0-4.cp1152       installed
cpanel-php54-Horde-Tree.noarch                    2.0.4-4.cp1152       installed
cpanel-php54-Horde-Url.noarch                     2.2.4-4.cp1152       installed
cpanel-php54-Horde-Util.noarch                    2.5.5-4.cp1152       installed
cpanel-php54-Horde-Vfs.noarch                     2.2.2-4.cp1152       installed
cpanel-php54-Horde-View.noarch                    2.0.5-4.cp1152       installed
cpanel-php54-Horde-Xml-Element.noarch             2.0.3-4.cp1152       installed
cpanel-php54-Horde-Xml-Wbxml.noarch               2.0.1-4.cp1152       installed
cpanel-php54-Horde-Yaml.noarch                    2.0.2-4.cp1152       installed
cpanel-php54-Log.noarch                           1.12.7-4.cp1152      installed
cpanel-php54-MDB2.noarch                          2.4.1-4.cp1152       installed
cpanel-php54-Mail.noarch                          1.2.0-4.cp1152       installed
cpanel-php54-Mail-Mime.noarch                     1.8.3-4.cp1152       installed
cpanel-php54-Net-DNS2.noarch                      1.4.1-4.cp1152       installed
cpanel-php54-Net-FTP.noarch                       1.3.7-4.cp1152       installed
cpanel-php54-Net-IMAP.noarch                      1.1.2-4.cp1152       installed
cpanel-php54-Net-SMTP.noarch                      1.6.2-4.cp1152       installed
cpanel-php54-Net-Sieve.noarch                     1.3.2-4.cp1152       installed
cpanel-php54-Net-Socket.noarch                    1.0.14-4.cp1152      installed
cpanel-php54-Net-URL.noarch                       1.0.15-4.cp1152      installed
cpanel-php54-Net-UserAgent-Detect.noarch          2.5.2-4.cp1152       installed
cpanel-php54-PEAR-Command-Packaging.noarch        0.3.0-4.cp1152       installed
cpanel-php54-SOAP.noarch                          0.13.0-4.cp1152      installed
cpanel-php54-Services-Weather.noarch              1.4.7-4.cp1152       installed
cpanel-php54-Text-Figlet.noarch                   1.0.2-4.cp1152       installed
cpanel-php54-XML-Parser.noarch                    1.3.4-4.cp1152       installed
cpanel-php54-XML-RPC.noarch                       1.5.5-4.cp1152       installed
cpanel-php54-XML-SVG.noarch                       1.1.0-4.cp1152       installed
cpanel-php54-XML-Serializer.noarch                0.20.2-4.cp1152      installed
cpanel-php54-content.noarch                       2.0.4-5.cp1152       installed
cpanel-php54-horde.noarch                         5.2.5-13.cp1152      installed
cpanel-php54-horde-lz4.x86_64                     1.0.8-2.cp1152       installed
cpanel-php54-imp.noarch                           6.2.8-6.cp1152       installed
cpanel-php54-ingo.noarch                          3.2.5-6.cp1152       installed
cpanel-php54-ioncube.x86_64                       4.5.2-1.cp1142       installed
cpanel-php54-kronolith.noarch                     4.2.7-7.cp1152       installed
cpanel-php54-mnemo.noarch                         4.2.6-4.cp1152       installed
cpanel-php54-nag.noarch                           4.2.4-7.cp1152       installed
cpanel-php54-sourceguardian.x86_64                8.3-1.cp1142         installed
cpanel-php54-timeobjects.noarch                   2.1.0-4.cp1152       installed
cpanel-php54-trean.noarch                         1.1.1-5.cp1152       installed
cpanel-php54-turba.noarch                         4.2.6-7.cp1152       installed
cpanel-php54-webmail.noarch                       5.2.6-6.cp1152       installed
cpanel-php54-zendopt.x86_64                       6.0.0-1.cp1142       installed
mod_php71w.x86_64                                 7.1.4-1.w6           @webtatic

php moduale curruntly carregado:


sudo apachectl -M|grep -i php
AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:305
 suphp_module (shared)
    
por Kishan Nath 03.05.2017 / 08:18

1 resposta

0

Outra possível resposta é usar o repositório IUS (Inline with Upstream Stable), que oferece pacotes renomeados (por exemplo, php56) e, portanto, não quebrará nenhuma dependência. Isso permite ter pacotes php "oficiais" do rhel e novos lançamentos ao mesmo tempo.

Está disponível e descrito no link

    
por 23.04.2018 / 11:44