I bought a new laptop and installed Ubu 20.04. I downloaded the latest apache2, php and mysql
I got phpMyAdmin from their own webpage, because, previously, when I used the Ubuntu supplied version, I often got errors.
When I open: localhost/phpMyAdmin I see a message:
Composer detected issues in your platform. Your Composer dependencies require the following PHP extensions to be installed: mysqli, xml
I cannot run phpMyAdmin.
pedro@pedro-HP:~$ php -i | grep extension_dir extension_dir => /usr/lib/php/20190902 => /usr/lib/php/20190902 pedro@pedro-HP:~$
I checked /usr/lib/php/20190902, sure enough those two extensions were not there.
Not knowing where to get them, I copied them from my older laptop. I don't know if there is a version problem, but php does not find them.
The new laptop has php version 7.4, the old laptop has 7.2
I set php.ini to:
I tried with the .so file extension, but saw and error on apache2 error.log: php seems to add .so, so it was looking for mysqli.so.so and xml.so.so
so I removed the .so (no pun intended)
I restarted apache2 and mysql every time I made a change, but the error persists.
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
Now I don't know what else I can do.
Do you have any tips for me? On my old laptop, exactly the same set-up works fine!!