Enable SourceGuardian (sg11) encryption component support for Linux virtual hosts.

Published: 2019-03-08

Note: For sg11, our company only supports self-installation on linux virtual hosting. php5.3 and above are supported.

1. Log in to the hosting control panel and find the [Remote File Download] feature.

image.png

2. For Remote Download File, enter http://download.myhostadmin.net/vps/sg11_for_linux.zip  For Download Save Path, enter /others/

image.png

3. Click [php Version] in the control panel, and select php5.3 or above. In the example, php5.5 is selected (Note: php5.2 cannot edit php.ini, so you need to select a higher version).

image.png

4. Click [File Management] in the control panel, open and enter the others directory, place the mouse over the archive just downloaded remotely, and click the Extract button.The number in the extracted file name corresponds to the php version. For example,ixed.5.4.lin is the sg11 file for php5.4.

image.png

5. Modify php.ini.

Create a new file locally and name it x.php

<?php

$str_ver=substr(phpversion(),0,3);

$phprc=$_SERVER['PHPRC'];

echo "extension=".$phprc."/ixed.".$str_ver.".lin";

?>

Write the above code into it, then upload it to the wwwroot directory, then visit http://your website domain/x.php 

image.png

Visiting it will give you an address. Copy this address and add it to thephp.ini file in the others directory at the bottom and save.

image.png

6. Enter the wwwroot directory, edit x.php again, enter <?phpinfo()?> in it and save, then visit http://your website domain/x.php  and search for SourceGuardian. If you can find it, the installation is successful. If you cannot find it, please check the operation steps or submit a ticket.

image.png

For the Swoole Loader extension, extension installation can refer to: https://www.west.cn/faq/list.asp?unid=2350