Setting environment manually PHP 5.6 - CentOS

Setting environment manually PHP 5.6 - CentOS

This article describes how to install PHP 5.6 on a CentOS 6 or CentOS 7 server

Access the terminal (as root) and run the commands below, according to the version of your system:

CentOS/RHEL 7.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Installing PHP 5.6:

yum install php56w php56w-cli php56w-common php56w-devel php56w-mbstring php56w-pecl-imagick php56w-xml 

Enabling PHP extensions :

Firebird/Interbase:

yum install php56w-interbase

Ldap Module:

yum install php56w-ldap

GD Module:

yum install php56w-gd

MySQL:

yum install php56w-mysql php56w-mysqlnd

MSSQL Server:

yum install php56w-mssql

ODBC:

yum install php56w-odbc

PDO:

yum install php56w-pdo

PostgreSQL:

yum install php56w-pgsql

Restart apache:

service httpd restart
    • Related Articles

    • Setting environment manually PHP 5.4 - CentOS

      This article describes how to install the PHP 5.4 on a CentOS 5 or CentOS 6 server 1. First, detect if any PHP packages are installed:      If packages are installed remove them, for example: 2. Add PHP 5.4 packages to yum using this command for ...
    • Setting environment manually PHP 5.6 - Windows

      Installing a Manual PHP 5.6 Environment - Windows This article will explain how to install and set-up a PHP 5.6 environment with Apache 2.4 so that it'll run Scriptcase. Follow the steps below with caution. Download the  Apache 2.4  ,  mod_fcgid ...
    • Setting environment manually PHP 8.1 - Windows IIS

      Install IIS on Windows Server 1) On the Start page, click the Server Manager tile. 2) In Server Manager, select Dashboard, and click Add roles and features. 3) In the Add Roles and Features Wizard, on the Before You Begin page, click Next. 4) On the ...
    • Setting environment manually PHP 5.4 - Linux

      Manually Configuring Php on Debian-based distros First edit the sources.list file: sudo nano /etc/apt/sources.list Add the following line to the end of the file: deb-src http://packages.dotdeb.org all wheezy Update your system: sudo apt-get update ...
    • Setting environment manually PHP 5.6 - Linux

      Installing a Manual PHP 5.6 Environment - Linux This article will explain how to install and set-up a PHP 5.6 environment with Apache 2.4 so that it'll run Scriptcase. Follow the steps below with caution. Note: This article was based on the Debian ...