Hello everyone,
I'm facing a persistent issue with DirectAdmin and ionCube Loader on my server. I am trying to get DirectAdmin to recognize that ionCube is installed for PHP 7.4, but I keep getting the error message:
"Could not detect version for PHP 7.4 and IonCube 14"
The strange thing is that ionCube Loader is definitely installed and working correctly. When I check my phpinfo() page, it clearly shows:
This confirms that the loader is active for the web server.
This problem started immediately after a recent DirectAdmin/CustomBuild update. I have tried reverting to a previous version of the ionCube loader, but that did not solve the problem, which suggests the issue lies within the updated DA scripts.
Here is a list of all the troubleshooting steps I have already taken without success:
Any help would be greatly appreciated. Thank you!
I'm facing a persistent issue with DirectAdmin and ionCube Loader on my server. I am trying to get DirectAdmin to recognize that ionCube is installed for PHP 7.4, but I keep getting the error message:
"Could not detect version for PHP 7.4 and IonCube 14"
The strange thing is that ionCube Loader is definitely installed and working correctly. When I check my phpinfo() page, it clearly shows:
Code:
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v14.4.1, Copyright (c) 2002-2025, by ionCube Ltd.
This confirms that the loader is active for the web server.
This problem started immediately after a recent DirectAdmin/CustomBuild update. I have tried reverting to a previous version of the ionCube loader, but that did not solve the problem, which suggests the issue lies within the updated DA scripts.
Here is a list of all the troubleshooting steps I have already taken without success:
- CustomBuild Installation: I have successfully run ./build php_ioncube. The installation process completes without any errors.
- options.conf: The php_ioncube option is correctly set to yes in /usr/local/directadmin/custombuild/options.conf.
- CLI PHP Verification: I have checked the PHP CLI version using /usr/local/php74/bin/php -v. The output confirms that the ionCube Loader is also loaded correctly for the command-line interface.
- php.ini Configuration: I have verified both the web server's php.ini (FPM) and the CLI's php.ini. In both files, the zend_extension line for ionCube is present and is the very first zend_extension listed to ensure correct loading order. The path /usr/local/ioncube/ioncube_loader_lin_7.4.so is correct.
- Rebuilding Configurations: I have run ./build php_conf and even the more forceful ./build rewrite_confs multiple times.
- File Permissions: I've checked the permissions for the loader file (/usr/local/ioncube/ioncube_loader_lin_7.4.so) and the php.ini files. They have standard permissions (755 for the loader, 644 for the .ini files) and correct ownership (root:root).
- SELinux Check: I have checked sestatus, and SELinux is disabled, so it is not interfering.
- Clean Reinstallation: I performed a full reinstallation cycle: ./build set_php_ioncube no, ./build php_conf, then ./build set_php_ioncube yes, followed by ./build php_ioncube. The problem still persists.
Any help would be greatly appreciated. Thank you!