*Manually Configuring Php on Debian-based distros*  
  
First edit the sources.list file:  
  
sudo nano /etc/apt/sources.list

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/01.png)  
Add the following line to the end of the file:  
  
deb-src http://packages.dotdeb.org all wheezy

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_PHP_54_Linux/02.png)  
  
Update your system:  
  
sudo apt-get update

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/03.png)

Install php  
  
sudo apt-get install php5 php5-dev

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_PHP_54_Linux/04.png)  
  
Accept the installation of the dependencies.  
  
Check php version by:  
php-v

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/05.png)

To enable the extensions:  
  
mssql:  
sudo apt-get install php5-mssql

![](http://cdn1.netmake.com.br/img_kb/pt_br/configurando_ambiente_manualmente_PHP_54_Linux/06.png)  
  
postgresql:  
sudo apt-get install php5-pgsql

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/07.png)  
mysql:  
php5-mysql sudo apt-get install

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/08.png)  
sqlite:  
sudo apt-get install php5-sqlite

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/09.png)  
  
firebird:  
sudo apt-get install php5-interbase

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/10.png)  
  
odbc:  
sudo apt-get install php5-odbc

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/11.png)  
  
Enabling GD library:  
sudo apt-get install php5-gd

![](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/12.png)

Do not forget to delete the php functions in disable\_functions option to enable them.  
  
Accept the installation of the dependencies.  
  
Enabling ZendGuardLoader:  
Download the file at the end of the tutorial.  
At the end of the php.ini file add:  
  
[Zend]  
zend\_extension =   
zend\_loader.enable = 1  
zend\_loader.disable\_licensing = 0  
zend\_loader.license\_path =  
  
restart apache:  
sudo /etc/init.d/apache2 stop  
sudo /etc/init.d/apache2 start  
  
  
Remember to perform the procedure below to enable the implementation of zendid:  
[ZendId](http://suporte.scriptcase.com.br/index.php?/Knowledgebase/Article/View/490/0/permission-zendid)  
  
Web server:  
/var/www/

[ZendGuardLoader.so](http://cdn1.netmake.com.br/img_kb/en_us/setting_environment_manually_php_54_linux/ZendGuardLoader.so)