#PHP Extensions won't load

10 messages · Page 1 of 1 (latest)

primal silo
#

Hello. I am currently trying to run WordPress on mobile. So far it works but I have abit of an issue regarding loading php-imagick and php-redis. I've installed imagemagick and redis along with it's php extensions and it shows the file when I typed in php -m. But when I tried to see it again with print_r(get_loaded_extensions()) on index page the extensions not loading. Here's the error_log:

PHP Warning:  PHP Startup: Unable to load dynamic library '/data/data/com.termux/files/usr/lib/php/redis.so' (tried: /data/data/com.termux/files/usr/lib/php/redis.so (dlopen failed: cannot locate symbol "zend_string_init_interned" referenced by "/data/data/com.termux/files/usr/lib/php/redis.so"...), /data/data/com.termux/files/usr/lib/php//data/data/com.termux/files/usr/lib/php/redis.so.so (dlopen failed: library "/data/data/com.termux/files/usr/lib/php//data/data/com.termux/files/usr/lib/php/redis.so.so" not found)) in Unknown on line 0   
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /data/data/com.termux/files/usr/lib/php/imagick (dlopen failed: library "/data/data/com.termux/files/usr/lib/php/imagick" not found), /data/data/com.termux/files/usr/lib/php/imagick.so (dlopen failed: cannot locate symbol "core_globals" referenced by "/data/data/com.termux/files/usr/lib/php/imagick.so"...)) in Unknown on line 0```

I'm lost atm and I hope you can help me out. Thank you
wintry copper
#

try reinstall both of the extension

primal silo
primal silo
#

update: i tried to build imagick from source (this is the first time i build from source so i may not know much) and tried that one from latest to beta to imagick 3.6. Somehow still not being able to load imagick, same error being (dlopen failed: cannot locate symbol "core_globals" referenced by "/data/data/com.termux/files/home/coding/wordpress/conf/imagick.so"...). I don't know what that means and I tried googling it but not much comes up so far. I hope anyone can help, thank you

primal silo
#

I ended up using Andronix(ubuntu) and it works

wintry copper
primal silo
#

altho i do actually thinking of trying proot

wintry copper
#

andronix already use proot for emulation

primal silo