-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Apache2: PHP: Cannot load extensions without being in LD_PRELOAD #13256
Comments
Due to notorious android/ndk#201. Similar to #2674 for Node.js.
|
It is quite non-trivial to fix this because these "undefined" symbols are defined either by [EDIT] In case if the wording was ambiguous, I meant only one shared object should define each of these symbols. |
I know this is hard to fix because I myself have tried using |
The workaround specified of setting LD_PRELOAD to lib php.so brakes some things (Most notably running commands and DNS resolving for web requests.). This does not work for me so this issue will not be closed. |
An easy workaround is to build these extensions without specifying Another workaround is to build (or prepare for) two types of shared libraries, one is for CLI and the other is for Apache. The only major issue for this is where to place these shared libraries. Maybe |
For the latter, termux-packages/packages/php/build.sh Line 78 in 901deb1
A possible workaround for this is to build Another workaround is to hack the code base so that CLI and Apache can use different |
These solutions would close this issue. Thank you. |
Extensions for PHP/Apache are packaged under the name of `php-apache-*` and are installed under the directory `$PREFIX/lib/php-apache/`. (Extensions under `$PREFIX/lib/php/` will not work with PHP/Apache.) See also #13256.
Extensions for PHP/Apache are packaged under the name of `php-apache-*` and are installed under the directory `$PREFIX/lib/php-apache/`. (Extensions under `$PREFIX/lib/php/` will not work with PHP/Apache.) See also termux/termux-packages#13256.
If you encounter any problem with |
Problem description
PHP cannot load extensions in php.ini, but only on Apache2, CLI works fine.
Linked to #5482 and #2479
What steps will reproduce the bug?
What is the expected behavior?
PHP extension loads successfully in both Apache and CLI
System information
termux-info:
Relevant portion of Apache error log:
The text was updated successfully, but these errors were encountered: