Note:
Installing SourceGuardian on a clustered environment must be done on the web leader node to ensure the software is available to all web nodes in the cluster.
For a clustered environment, SSH to web leader otherwise, continue to the next step:
ssh webCreate a target directory:
sudo mkdir /usr/local/sgDownload the latest SourceGuardian archive:
cd ~ && curl -LO https://www.sourceguardian.com/loaders/download/loaders.linux-aarch64.tar.gzExtract the contents:
sudo tar -xzvf loaders.linux-aarch64.tar.gz -C /usr/local/sgConfigure SourceGuardian for each available PHP version:
PHP_VERSIONS=$(ls /etc/php) for VERSION in $PHP_VERSIONS; do if [ -f /usr/local/sg/ixed.${VERSION}.lin ]; then sudo mkdir -p /etc/php/${VERSION}/cli/conf.d sudo mkdir -p /etc/php/${VERSION}/fpm/conf.d echo zend_extension=/usr/local/sg/ixed.${VERSION}.lin | sudo tee /etc/php/${VERSION}/cli/conf.d/06-sourceguardian.ini echo zend_extension=/usr/local/sg/ixed.${VERSION}.lin | sudo tee /etc/php/${VERSION}/fpm/conf.d/06-sourceguardian.ini echo “Configured Source Guardian for PHP ${VERSION}” fi doneVerify that the SourceGuardian module is loaded on all PHP versions:
for php_bin in $(find /usr/bin/ -name 'php*' -type f); do $php_bin -v 2>&1 | grep -E 'PHP|SourceGuardian'; doneTo persist the installation of SourceGuardian, perform the following steps in the AutoPilot interface:
- Navigate to the "Backups" tab of the deployment
- Select "Operating System" as the "Resource" option. Enter a unique "Backup Name". Select "Request".
- Navigate to the "Adjust" tab of the deployment
- Select "Instance Details"
- Select "Operating System Image", then select "Operating System", then select the image.
- After this, your changes persist from now on in your deployment.
Comments
0 comments
Please sign in to leave a comment.