APPX Software Library

Chapter 8: Troubleshoot by Symptom

The Extension Does Not Load

SymptomCheck and action
Cannot open shared object or module cannot be foundConfirm the absolute extension path and all companion libraries; inspect ldd on Linux and the required Microsoft runtime on Windows.
Wrong ELF class or not a valid Win32 applicationMatch the extension architecture to PHP. A 64-bit operating system alone does not identify the running PHP architecture.
Module API mismatch or undefined symbolUse the extension for the actual PHP minor version and selected TS or NTS build (830 for PHP 8.3; 850 for PHP 8.5). Do not reuse an older extension.
PHP CLI works, APPX failsCompare PATH, the loaded php.ini, account, current directory and filesystem permissions from the APPX execution context.
Browser demo works, APPX failsCompare CLI PHP with web PHP. Configure the CLI's php.ini.

Inspect startup errors before changing the application chart definition. An extension that cannot load is below the APPX API layer.