Step 1: Connect to Your Server
You first need to connect to your server using SSH. Open your terminal and run the command below, replacing username and your_server_ip with your actual server login details.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Copy to clipboard
1
2
Step 2: Check Your PHP Version
Before downloading the loader, you must know which version of PHP is installed on your server. This will determine which loader file you need to use. Copy to clipboard 1 2Step 3: Download and Extract ionCube Loader
Now, download the ionCube Loader package into a temporary directory and extract it. Copy to clipboard 1 2 3 4 5 6 7 8Step 4: Find Your PHP Extension Directory
PHP needs to know where to load extensions from. Run the following command to find the extension directory path. Copy to clipboard 1 2Step 5: Copy the Correct Loader File
Move into the extracted ionCube folder and look for the file that matches your PHP version. Copy to clipboard 1 2 3Step 6: Configure PHP to Load the Extension
You now need to edit your php.ini file to load ionCube Loader. The location of this file depends on your setup. You may need to edit more than one file one for your web server (FPM or OLS) and one for the command-line interface (CLI). Common locations include:- For Nginx / PHP-FPM:
- For OpenLiteSpeed:
- For CLI:
Step 7: Restart Services
For the changes to take effect, restart your PHP process and your web server.For Nginx / PHP-FPM:
Copy to clipboard 1 2 3 4For OpenLiteSpeed:
Copy to clipboard 1 2 3 4Step 8: Verify the Installation
You can confirm that ionCube Loader is working in two ways.Check via Command Line:
Copy to clipboard 1 2Check via Web Server (Recommended):
Create a file named phpinfo.php in your website’s public root directory. Copy to clipboard 1 2 3 4Troubleshooting
- Loader Not Appearing: If php -v does not show ionCube Loader, you may have edited the wrong php.ini file or used an incorrect path. Check the extension directory from Step 4 and the path in Step 6.
- Website Errors (500, etc.): Review your web server’s error logs. This can happen if there are permission issues with the .so file or if you are using a loader version that does not match your PHP version.
- Wrong Loader Version: The .so file version must match your PHP version exactly. For example, a PHP 8.0 loader will not work on PHP 8.1.
