De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Ismael A Bezerra
Data de Publicação: 21 de dezembro de 2009
Bem pesquisei muito na internet para instalar o PHP5.2 no meu CentOS 5 usando o yum, pois o phpmyadmin-3.2.4 ele só roda com a versão do PHP 5.2 e os repositorios padrões instala apenas a versão do PHP 5.1. Portanto fiz todos esses passos abaixo para instalar o PHP 5.2.
/etc/yum.repos.d/myrepo.repoCom o seguinte conteudo:
[fedora-dries] name=Extra Fedora rpms dries - 6 - $basearch baseurl=http://ftp.riken.jp/Linux/dries/fedora/fc6/$basearch/dries/RPMS http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc6/$basearch/dries/RPMS gpgkey=http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt enabled=1 gpgcheck=0 [fedora-extras] name=Fedora Extras 6 - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-6&arch=$basearch #mirrorlist=file:///etc/yum.repos.d/local-extras enabled=0 gpgkey=http://ftp.riken.jp/Linux/fedora/extras/RPM-GPG-KEY-Fedora-Extras gpgcheck=0 [atrpms] name=Centos $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=0 enable=1 [dag] name = Dag enabled =1 baseurl = http://dag.freshrpms.net/redhat/el4/en/$basearch/dag/ http = //ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el4/en/$basearch/dag/ gpgcheck =0 [dries] name=Extra RedHat EL 4 rpms dries - $releasever - $basearch baseurl=http://apt.sw.be/dries/redhat/el4/en/$basearch/dries/RPMS gpgcheck=0 enabled=1 gpgkey=http://dries.ulyssis.org/ayo/RPM-GPG-KEY.dries.txt [jpackage-generic] name=JPackage (free), generic mirrorlist=http://www.jpackage.org/jpackage_generic.txt failovermethod=priority gpgcheck=0 [kagesenshi] name=KageSenshi Package Repository baseurl=http://devel.foss.org.my/~kagesenshi/repo/pub/$basearch/ enabled=0 gpgcheck=0 [livna] name=Fedora Core 4 - i386 - livna baseurl=http://rpm.livna.org/fedora/4/i386/RPMS.lvn failovermethod=priority [pbone.net] name=Centos-$releasever baseurl=ftp://ftp.pbone.net/mirror/ftp.centos.org/$releasever/os/$basearch/ gpgkey=ftp://ftp.pbone.net/mirror/ftp.centos.org/$releaserver/os/$basearch/RPM-GPG-KEY-CentOS-5 gpgcheck=0 enable=1 [rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag #baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 0 [doylenet] name=Doylenet custom repository for CentOS baseurl=http://files.doylenet.net/linux/yum/centos/5/i386/doylenet/ gpgcheck=1 gpgkey=http://files.doylenet.net/linux/yum/centos/RPM-GPG-KEY-rdoyle enabled=1 [utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
/etc/yum.repos.d/mirrors-rpmforge
Com o seguinte conteúdo:
http://apt.sw.be/redhat/el5/en/$ARCH/dag http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag #http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
yum clean all yum check-updateEle irá atualizar a base dos repositórios e verificar por atualizações pendentes
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel php-mcrypt -y
ou
Essa linha é se voce já tiver instalado o pacote do php
yum update php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel php-mcrypt -y
Pronto ele irá instalar o PHP atualizado para versão 5.2 a última versão
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários