Failed to find PDO driver when installing laravel 5 on CentOS 7 with DigitalOcean

I am trying to run my standalone Laravel 5 webapp. First of all, I created a new bit on DigitalOcean. Through ssh access, I installed the fully working LAMP stack (I got the apache test page on my ip address).

After that, I pulled the git repository into a folder /var/www/html. Using composer, install all my dependencies.

When I am in my-ip-addres / public, I get laravel error

PDOException in line Connector.php 55: could not find driver

I thought that maybe my PDO module was not installed correctly, but when I look in my phpinfo()file, everything looks right.

Is there anyone who can help me solve this problem?

+4
source share
1 answer

run this sudo apt-get install phpX-mysqlX command : php version (7.0 or 5.6 or ...) and then service apache restart.

0
source

Source: https://habr.com/ru/post/1621877/


All Articles