I tried to install mbstring to use Phalcon, I don't know what I'm doing wrong but it doesn't appear in phpinfo().
Here's is basically what I've used :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2
sudo apt-get install php ; 8.2 here
sudo apt-get install php-mbstring
After that I edited the file /etc/php/8.2/apache2/php.ini (note that this is the one that appear in the "Loaded Configuration File" when using phpinfo()) to modify from :
; extension=mbstring
to
extension=mbstring
extension_dir is still commented.
Also tried that :
extension=/usr/lib/php/20210902/mbstring.so
As find / -type f -name "mbstring.so" returns /usr/lib/php/20210902/mbstring.so
Then
sudo systemctl restart apache2
Once done there is still nothing about mbstring using phpinfo().
What I am doing wrong ?
I'm pretty sure this is only one step I missed. FYI :
root@localhost:/etc/php/8.2/mods-available# php -m | grep mbstring
PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: /usr/lib/php/20220829/mbstring.so (/usr/lib/php/20220829/mbstring.so: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/mbstring.so.so (/usr/lib/php/20220829/mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
EDIT : Got the same issue for phalcon.so and php-xml so I really think I missed something...
EDIT2 : I'm trying to do the thing as they must be done, so don't hesitate to told me if something seems wrong.