If you need to install SourceGuardian loader for a specific alt-PHP version, you can follow these general steps:
-
Download the SourceGuardian Loader:
- Visit the official SourceGuardian website and download the appropriate loader for your alt-PHP version.
-
Upload the Loader to Your Server:
- Transfer the loader file (usually named
ixed.XX
) to your server. You can use FTP, SFTP, or any other preferred method to upload files.
- Transfer the loader file (usually named
-
Determine the PHP Extension Directory:
- You'll need to know the directory where PHP extensions are stored for the specific alt-PHP version you're using. This can vary depending on your server's configuration.
-
Move or Copy the Loader to the Extension Directory:
-
Navigate to the directory where PHP extensions are stored. This is typically something like
/opt/alt/phpXX/usr/lib64/php/modules/
. -
Move or copy the SourceGuardian loader file (
ixed.XX
) to this directory.
-
-
Configure php.ini:
-
Open the
php.ini
file for the alt-PHP version you're using. This is typically located in/opt/alt/phpXX/usr/php/php.ini
. -
Add the following line to load the SourceGuardian extension:
makefile
-
-
-
extension=ixed.XX
-
Replace
XX
with the appropriate version number.
-
-
Restart PHP-FPM or Web Server:
-
Restart the PHP-FPM service or the web server to apply the changes.
-
For PHP-FPM, you can use a command like:
bash
-
-
sudo service alt-phpXX-fpm restart
-
For Apache, you can use:
bash -
-
sudo service httpd restart
-
-
Verify Installation:
-
Create a PHP file (e.g.,
sourceguardian_test.php
) with the following content:php
-
-
-
phpinfo();
-
Upload this file to your server and access it through a web browser. Look for the SourceGuardian section in the PHP configuration. This should confirm that SourceGuardian is now installed and active.
-
Remember to replace XX
with the actual version number of alt-PHP you're using (e.g., 7.4
, 8.0
, etc.).
Please note that these are general instructions, and specific steps may vary depending on your server environment and alt-PHP configuration. Always refer to SourceGuardian's documentation or consult with your hosting provider if you encounter any issues.