I found that my project uses php7.1 from phpinfo(). And from other forums, I found that uncommenting php_pdo_mysql.so from /etc/php/php7.1/apache2/php.ini and restarting the server solves the issue. But in my php.ini, there is only php_pdo_mysql.dll. Since it is a linux server, I know dll files don’t work. How do i install pdo?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.