Hi folks,
I wanted to tryout the extensibility of Flarum, but I get stuck in not getting mcrypt loading correctly. I did everything as shown in the tutorial / documentation, and beyond that I followed a couple of tutorials to get it working, but no luck so far. This is the error log when I look at the installed PHP-modules:
php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/extensions/mcrypt.so' (tried: /usr/local/php/extensions/mcrypt.so (/usr/local/php/extensions/mcrypt.so: invalid ELF header), /usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/php/extensions/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/php/extensions/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
The first error is after I manually downloaded a single file called mcrypt.so and moved this to /usr/local/php/extensions/ + gave it the correct permissions.
Anyone who could tell me how to solve this problem?
[EDIT]
Maybe this helps... what I see in PHPinfo
