SYSTEM INFORMATION | |
---|---|
OS type and version | CentOS Linux 7.9.2009 |
Virtualmin version | Version 7.8.2 |
I’ve been trying to deploy a Laravel 9 (9.52.16) project into a server with Virtualmin, and after a lot of headaches (It’s amazing that there’s not a single clear and reliable tutorial on how to do that on the entire internet) I managed to have it let’s say, “responding”. I had to install php 8.0.30 because Laravel 9 doesn’t like any other php version. But I reached a point in where all I get is a " [Class “PDO” not found] when I go to the url
Asked chatGPT, Bard for solutions, and kept me giving me advices on what to do, nothing working. One of the advices was to add extension=pdo_mysql.so to the php.ini
But since then, what I get in the PHP Error Log is:
[22-Nov-2023 22:50:45 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_mysql.so’ (tried: /opt/remi/php80/root/usr/lib64/php/modules/pdo_mysql.so (/opt/remi/php80/root/usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory), /opt/remi/php80/root/usr/lib64/php/modules/pdo_mysql.so.so (/opt/remi/php80/root/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Reinstalled php several times, and nothing.
By the way, Laravel won’t start with a previous php version (If someone knows how to do it, would be more than welcome) … so, totally out of ideas. Indeed not sure if I should post this here or in a Laravel forum or in a Centos forum.