In this tutorial, we'll show you how to install the SourceGuardian PHP encoder on your servers.

This tutorial assumes you have already
 connected your server
 to SellCloud.

Download, Extract, and Configure

To install SourceGuardian, SSH in to your server as the root user and run the following commands for the PHP version you're adding SourceGuardian to.

PHP 5.4

sudo mkdir /usr/local/sourceguardian
cd /usr/local/sourceguardian
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
sudo tar xzf loaders.linux-x86_64.tar.gz
sudo cp ixed.5.4.lin /opt/sp/php5.4/lib/php/extensions/no-debug-non-zts-20100525/
sudo bash -c 'echo "zend_extension=/opt/sp/php5.4/lib/php/extensions/no-debug-non-zts-20100525/ixed.5.4.lin" > /etc/php5.4-sp/conf.d/sourceguardian.ini'
sudo service php5.4-fpm-sp restart

PHP 5.5

sudo mkdir /usr/local/sourceguardian
cd /usr/local/sourceguardian
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
sudo tar xzf loaders.linux-x86_64.tar.gz
sudo cp ixed.5.5.lin /opt/sp/php5.5/lib/php/extensions/no-debug-non-zts-20121212/
sudo bash -c 'echo "zend_extension=/opt/sp/php5.5/lib/php/extensions/no-debug-non-zts-20121212/ixed.5.5.lin" > /etc/php5.5-sp/conf.d/sourceguardian.ini'
sudo service php5.5-fpm-sp restart

PHP 5.6

sudo mkdir /usr/local/sourceguardian
cd /usr/local/sourceguardian
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
sudo tar xzf loaders.linux-x86_64.tar.gz
sudo cp ixed.5.6.lin /opt/sp/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
sudo bash -c 'echo "zend_extension=/opt/sp/php5.6/lib/php/extensions/no-debug-non-zts-20131226/ixed.5.6.lin" > /etc/php5.6-sp/conf.d/sourceguardian.ini'
sudo service php5.6-fpm-sp restart

PHP 7.0

sudo mkdir /usr/local/sourceguardian
cd /usr/local/sourceguardian
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
sudo tar xzf loaders.linux-x86_64.tar.gz
sudo cp ixed.7.0.lin /opt/sp/php7.0/lib/php/extensions/no-debug-non-zts-20151012/
sudo bash -c 'echo "zend_extension=/opt/sp/php7.0/lib/php/extensions/no-debug-non-zts-20151012/ixed.7.0.lin" > /etc/php7.0-sp/conf.d/sourceguardian.ini'
sudo service php7.0-fpm-sp restart

PHP 7.1

SourceGuardian does not yet support PHP 7.1.

Verifying the Installation

You can verify SourceGuardian is installed correctly by running the command:

phpX.Y-sp -i | grep SourceGuardian

You should see output like the following:

    with SourceGuardian v11.0.4, Copyright (c) 2000-2016, by SourceGuardian Ltd.
SourceGuardian
SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 11.0.4
SourceGuardian Loader Build Number => 0x00000017
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 70 Users Found This Useful (277 Votes)