How to Uninstall/Remove Sourceguardian from a cPanel/WHM Server

How to Uninstall/Remove SourceGuardian from a cPanel/WHM Server


 

Log into your cPanel server via SSH as root user. Type the command “php -m | grep SourceGuardian” to check whether SourceGuardian is installed or not. SourceGuardian is installed on the below server.
 

root@cpanel [~]# php -m | grep -i SourceGuardian
SourceGuardian

root@server [~]# /scripts/phpextensionmgr status SourceGuardian
Determining status of SourceGuardian
SourceGuardian loader extension is installed

 
Sourceguardian can be easily uninstalled using the cPanel script /scripts/phpextensionmgr. Command to uninstall SourceGuardian is given below

Command : /scripts/phpextensionmgr uninstall SourceGuardian
 

root@server [~]# /scripts/phpextensionmgr uninstall SourceGuardian
Uninstalling SourceGuardian
Removing SourceGuardian Loader from /usr/local/lib/php.ini

 
SourceGuardian is now removed from the above server. Run the below command to make sure it is uninstalled from the server.

Command : /scripts/phpextensionmgr status SourceGuardian
 

root@server [~]# /scripts/phpextensionmgr status SourceGuardian
Determining status of SourceGuardian
SourceGuardian loader extension is NOT installed

 
METHOD 2

You can also remove SourceGuardian from the server by running easyapache on the server. Run easyapache on the server using cPanel script /scripts/easyapache and uncheck “SourceGuardian loader for PHP”.
 

Uninstall/Remove SourceGuardian on cPanel Server

Uninstall/Remove SourceGuardian on cPanel Server