Actualizado el sábado, 15 septiembre, 2018
Instalar Apache HTTP Server (httpd) y PHP 5.5.14 en Fedora 20/19/18/17, CentOS / Red Hat (RHEL) 6.5/5.10
Acceder como root e instalar Remi repository según tu Sistema linux.
su -
Fedora
## Remi Dependency on Fedora 20 / 19 / 18 / 17 ##
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
## Fedora 20 ##
rpm -Uvh
## Fedora 19 ##
rpm -Uvh
## Fedora 18 ##
rpm -Uvh
## Fedora 17 ##
rpm -Uvh
CentOS y Red Hat
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh
## CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Instalar Apache (httpd) Web server y PHP 5.5.14
Fedora 20/19
yum --enablerepo=remi install httpd php php-common
Fedora 18/17
yum --enablerepo=remi,remi-test install httpd php php-common
CentOS 6.5/5.10 y Red Hat (RHEL) 6.5/5.10
yum --enablerepo=remi,remi-php55 install httpd php php-common
Instalar PHP 5.5.14 modulos
APCu, CLI, PEAR, PDO, MySQL, PostgreSQL, MongoDB, SQLite, Memcache, Memcached, GD, MBString, MCrypt, XML
Fedora 20/19
yum --enablerepo=remi install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
Fedora 18/17
yum --enablerepo=remi,remi-test install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
CentOS 6.5/5.10 y Red Hat (RHEL) 6.5/5.10
yum --enablerepo=remi,remi-php55 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
Start Apache HTTP server (httpd) y autostart Apache HTTP server (httpd) en boot de arranque.
/etc/init.d/httpd start ## use restart after update
## O ##
service httpd start ## use restart after update
## Fedora ##
systemctl enable httpd.service
## CentOS / RHEL ##
chkconfig --levels 235 httpd on
Activar Remote Connection de Apache HTTP Server (httpd) –> Abrir Web server Port (80) en Iptables Firewall
1. CentOS/Red Hat (RHEL) 1.1 Edit /etc/sysconfig/iptables file:
nano -w /etc/sysconfig/iptables
1.2 Add following INPUT rule:
-A INPUT -m statestate NEW -m tcp -p tcpdport 80 -j ACCEPT
1.3 Restart Iptables Firewall:
service iptables restart
## O ##
/etc/init.d/iptables restart
2. Fedora 2.1 Add New Rule to Firewalld
firewall-cmdpermanentzone=public --add-service=http
## O ##
firewall-cmdpermanentzone=publicaddport=80/tcp
2.2 Restart firewalld.service
systemctl restart firewalld.service
Y ahora a disfrutar de nuestro nuevo php.
Muy bueno, gracias.
@JCuli :
De nada
Holas, tengo un Centos 6.5 con PHP 5.5.14, no lo instale yo pero, quise instalar php-gd y php-mbstring pero en albos tengo conflictos del siguiente tipo:
yum install php-mbstring
…
…
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.1.x86_64
yum –enablerepo=remi,remi-php55 install php-mbstring
..
…
Error: Package: php55w-mysql-5.5.14-1.w6.x86_64 (@webtatic)
yum –enablerepo=remi,remi-php55 install php-gd
..
…
Error: Package: php55w-mysql-5.5.14-1.w6.x86_64 (@webtatic)
tengo que desinstalar php 5.5.14 e instalar una version anterior como la 5.3.3 ? No existe manera de instalar gb y mbstring en las version 5.5.14 para Centos???
Muchas gracias por sus respuestas…
Hola Yuan. Php-gd y php-mbstring no deberían darte ningún problema ni con tu php y mucho menos con centos 6.x. Es evidente que tienes un problema de dependencias posiblemente a un error en la actualización. Por eso, yo soy siempre mas partidario de instalar una versión limpia en otro directorio, intenta instalar la 5.5.16,,, ya sabes creas la carpeta propietaria y lo instalas allí, permisos tal y tal.. y cambias el php.ini. Si todo te funciona correctamente desinstalas la anterior versión y listo. Esto suponiendo que tienes todos los permisos configurados correctamente,,, que presupongo que si.
A mi me pasaba lo mismo..y lo echo como dice sergio y ha funcionado. Muchas gracias.