Last active
October 16, 2019 19:34
-
-
Save ericthehacker/f20f0a7a52d507793a5f7d14ba1e31da to your computer and use it in GitHub Desktop.
Install source guardian on web70 VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This quick and dirty script installs the Source Guardian loader on the web70 VM. | |
# Similar commands should work on other version of PHP -- simply replace the .lin file copied and the .ini file with the correct version. | |
cd /tmp | |
wget https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz -O ./source-guardian.tgz | |
mkdir source-guardian | |
cd source-guardian | |
tar -zxf /tmp/source-guardian.tgz | |
sudo cp ixed.7.2.lin /usr/lib64/php/modules/ | |
echo "extension=ixed.7.2.lin" | sudo tee /etc/php.d/60-sourceguardian.ini | |
sudo service httpd restart | |
rm -rf /tmp/source-guardian | |
rm /tmp/source-guardian.tgz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment