Skip to content

Instantly share code, notes, and snippets.

@ericthehacker
Last active October 16, 2019 19:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericthehacker/f20f0a7a52d507793a5f7d14ba1e31da to your computer and use it in GitHub Desktop.
Save ericthehacker/f20f0a7a52d507793a5f7d14ba1e31da to your computer and use it in GitHub Desktop.
Install source guardian on web70 VM
#!/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