Last active
October 19, 2015 22:28
-
-
Save merolhack/68479c9b0fb588a997f1 to your computer and use it in GitHub Desktop.
REHL(CentOs & Oracle Linux): Instalación y configuración de PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instalar PHP de los repositorios de REMI | |
yum --enablerepo=remi install php php-common php-cli -y | |
# Reiniciar Apache | |
service httpd restart | |
# Comprobar módulos instalados | |
php -m | |
# Revisar configuración | |
php-config | |
# Instalar módulos de PHP para la conexión a MySQL de los repositorios de REMI | |
yum --enablerepo=remi install php-pear php-pdo php-mysql -y | |
# Instalar módulos de PHP adicionales | |
yum --enablerepo=remi install php-gd php-mbstring php-mcrypt php-soap php-xml -y | |
# Instalar módulo de PHP BCMath | |
yum --enablerepo=remi install php-bcmath -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Agregar UTF-8 como charset | |
nano /etc/php.ini | |
default_charset = "UTF-8" | |
# Modificar la configuración de MBString | |
nano /etc/php.ini | |
[mbstring] | |
mbstring.language = all | |
mbstring.internal_encoding = UTF-8 | |
mbstring.http_input = auto | |
mbstring.http_output = UTF-8 | |
mbstring.encoding_translation = On | |
mbstring.detect_order = UTF-8 | |
mbstring.substitute_character = none; | |
mbstring.func_overload = 0 | |
mbstring.strict_detection = Off | |
# Reiniciar Apache | |
service httpd restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Obtener información | |
yum --enablerepo=remi info php-intl | |
Available Packages | |
Name : php-intl | |
Arch : x86_64 | |
Version : 5.4.45 | |
Release : 2.el7.remi | |
Size : 138 k | |
Repo : remi | |
Summary : Internationalization extension for PHP applications | |
URL : http://www.php.net/ | |
License : PHP | |
Description : The php-intl package contains a dynamic shared object that will add | |
: support for using the ICU library to PHP | |
# Instalar | |
yum --enablerepo=remi install php-intl -y | |
# Reiniciar Apache | |
service httpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment