Installing the SourceGuardian PHP Extension on Debian 11 with PHP 7.4 and Apache2

Editions: ViMP Light, ViMP Ultimate [Standard], ViMP Corporate Campus or ViMP Corporate Enterprise
Versions: 4.4+

Installations of ViMP Light, ViMP Ultimate [Standard], ViMP Corporate Campus or ViMP Corporate Enterprise require the PHP extension SourceGuardian.

This article explains the installation of the extension for Debian 11 (64-bit) with PHP 7.4 under Apache2, further information on the usage can be found here.

A wizard for installing the latest SourceGuardian loaders is located here.

The general procedure under Apache2 is as follows:

First create a temporary folder "loader" at /usr/src/:

mkdir /usr/src/loader
cd /usr/src/loader

Download the sourceguardian package (64-bit here) directly into the new folder:

curl https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz --output loaders.linux-x86_64.tar.gz

Now extract the file:

tar xzf loaders.linux-x86_64.tar.gz

Copy the file that meets your PHP version like this:

cp ixed.7.4.lin /usr/lib/php/20190902/

"ts" in the filenames means "Thread Safety". If "Thread Safety" is enabled (usually it isn't), copy the file ixed.7.4ts.lin instead.

Now create the sourceguardian configuration file.

cd /etc/php/7.4/mods-available/
nano sourceguardian.ini

Enter the following lines into the file:

[sourceguardian]
zend_extension=/usr/lib/php/20190902/ixed.7.4.lin

and save it.

Activate the PHP extension with the command:

phpenmod sourceguardian

The command has no output for errors or success.

Restart Apache:

service apache2 stop
service apache2 start

Now the extension is installed for Apache2 and CLI and ViMP will be decrypted.

Last update on 2021/09/21 by Admin.

Go back