Troubleshooting — NativeLoad Secure Runtime
The one-command installer handles the cases below automatically (it installs build tools, fixes SELinux labels, cleans stale traces, and verifies definitively with a clear error + fix if anything is off). This page is for manual installs and deeper diagnosis.
First, the definitive probe:
php src/ep-detect.sh
# {"installed":true,"active":true,"version":"2.0.0","ext_dir":"...","so":true,"php":"8.3"}
php -r 'var_dump(extension_loaded("eploader"));' # true = loaded
Error → cause → fix
"Installed but not shown in php -m" / active:false
The engine file is in place but PHP isn't loading it. Most common causes, in order:
- SELinux label (AlmaLinux / RHEL / CentOS / CloudLinux). A
.socopied from
a build dir keeps the wrong SELinux context, so PHP-FPM (and sometimes CLI) is denied loading it. Fix: ``bash restorecon -F "$(php -r 'echo ini_get("extension_dir");')/eploader.so" # still blocked? allow the dlopen: setsebool -P httpd_execmem 1 ``
- Web PHP ≠ CLI PHP.
php -mon the shell may use a different PHP than your
site. Install for the PHP your site uses (pass PHP_BIN/PHPIZE/PHPCONFIG for that version — see INSTALL), then restart it.
- FPM/Apache/LiteSpeed not restarted. CLI sees it immediately; the web SAPI
keeps the old process. Restart: systemctl restart php-fpm (or httpd / apache2 / lsws).
- Scan dir not read. Some builds ignore
conf.d. Put the directive in the
main ini instead: find it with php --ini, add extension=eploader.so.
PHP Warning: Module "eploader" is already loaded
Two ini files both load it (e.g. a leftover from an earlier install). Harmless (PHP loads it once), but to clean:
grep -rln eploader /etc/php.d /etc/php.ini /etc/php/*/ 2>/dev/null # find all
# keep ONE 99-eploader.ini, delete the extras, then restart the web service.
Note: running php -dextension=eploader.so ... while it is already in an ini also prints this — that is expected, not a problem.
php-config: command not found / phpize: command not found
The matching dev package isn't installed. The installer installs it for you; manually:
# AlmaLinux / RHEL / CentOS / CloudLinux
dnf install -y php-devel gcc make
# if your PHP is from Remi:
dnf install -y php-devel --enablerepo=remi
# Debian / Ubuntu
apt-get install -y php-dev build-essential
php-config's absence does not mean the engine can't load — it only affects building from source. The prebuilt engine installs without it.
module compiled with module API=NNNN, PHP compiled with NNNN (API mismatch)
php-devel is a different version than the running php. Install the php-devel that matches your exact PHP version (same repo/version), then reinstall:
EP_FORCE=1 sudo ./src/install.sh
undefined symbol: ... on load
Same root cause as API mismatch (dev headers ≠ running PHP). Rebuild against the matching php-devel. If you run several PHP versions, build once per version with that version's PHP_BIN/PHPIZE/PHPCONFIG.
"No prebuilt engine for my PHP version"
The one-command falls back to compiling from source automatically (installing php-devel/gcc/make first). Nothing to do — just let it build. On a locked box without a package manager, install php-devel gcc make manually and re-run.
Protected file prints raw bytes or a parse error
The runtime isn't active on the PHP that served the request (see the first section). Protected files fail safely — they never expose source. Install the runtime for that PHP and restart the web service.
No space left on device during build
Free space in /tmp (the build runs there) or point it elsewhere: TMPDIR=/var/tmp sudo ./src/install.sh.
Update
Re-run the one-command with EP_FORCE=1, or from the package:
EP_FORCE=1 sudo ./src/install.sh
# contPanel:
./src/contpanel-hook.sh --update
Uninstall
sudo ./src/uninstall.sh # remove from this PHP
EP_PURGE=1 sudo ./src/uninstall.sh # also scan the whole disk for stray copies
# contPanel:
./src/contpanel-hook.sh --uninstall
Multiple PHP versions: repeat with PHP_BIN=/that/php for each. Restart the web service afterward. Protected files won't run after removal — keep unprotected backups.
Still stuck? Capture this and send it
php -v
php -i | grep -iE "PHP Version|Zend Module API|Thread Safety|extension_dir"
php -dextension="$(php -r 'echo ini_get("extension_dir");')/eploader.so" -r ';' 2>&1 | head
getenforce 2>/dev/null
php --ini
These five outputs pinpoint any remaining case (version, ABI, the exact load error, SELinux mode, and which ini is loaded).