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 Jessie distribution*

## Installing the PHP 5.6

Use the following command to install PHP 5.6

sudo apt-get install php5-dev php5-cli php5 php5-pear

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/01.jpg)

Accept the installation of the dependants.

Verify the PHP version with the command:

php -v

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/02.jpg)

Important: By default the PHP has some disabled functions that'll be necessary for Scriptcase. So access your php.ini (/etc/php5/apache2/php.ini) and change the variable line disable\_functions according to the example:

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/03.jpg)

To enable the databases, we've selected some installation command examples:

MSSQL Server use this command sudo apt-get install php5-mssql

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/04.jpg)

PostgreSQL use this command sudo apt-get install php5-pgsql

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/05.jpg)

MySQL use this command sudo apt-get install php5-mysql

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/06.jpg)

SQLite use this command sudo apt-get install php5-sqlite

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/07.jpg)

Firebird use this command sudo apt-get install php5-interbase

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/08.jpg)

Odbc use this command sudo apt-get install php5-odbc

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/09.jpg)

## Activating the GD library

Use the command sudo apt-get install php5-gd to activate the GD library.

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_php_56_linux/10.jpg)

Accept the installation of the dependants.

## Activate Zend Guard Loader

Download the Zend Guard Loader for linux, on link below and place the so in /usr/lib/php5/Zend.

[Download ZendGuardLoader x86](http://cdn1.netmake.com.br/download/ZendGuardLoader/Linux/php56/x86/ZendGuardLoader.so)

[Download ZendGuardLoader x64](http://cdn1.netmake.com.br/download/ZendGuardLoader/Linux/php56/x64/ZendGuardLoader.so)

Set the permissions 777 recursive on the folder /usr/lib/php5/Zend

sudo chmod 777 -R /usr/lib/php5/Zend

Open the php.ini (/etc/php5/apache2/php.ini) and at the end of the file, add the line:

*[zend]  
zend\_extension=/usr/lib/php5/Zend/ZendGuardLoader.so  
zend\_loader.enable=1  
zend\_loader.disable\_licensing=0  
zend\_loader.license\_path=*

After this procedure restart the Apache using the command:  
sudo /etc/init.d/apache2 stop  
sudo /etc/init.d/apache2 start