I'm trying to get my offline Laravel 5 webapp deployed. First of all I created a new droplet at DigitalOcean. Via ssh access I installed a fully working LAMP stack (I got the apache test-page at my ip-address).
After that, I pulled my git repo into the /var/www/html
folder. Using composer install all my dependencies were installed.
When I visit my-ip-addres/public, I get a laravel error
PDOException in Connector.php line 55: could not find driver
I thought maybe my PDO module wasn't installed correctly but when I look in my phpinfo()
file, everything looks correct.
Is there anyone who can help me out with this problem?
运行此命令sudo apt-get install phpX-mysql
X:php版本(7.0或5.6或...)然后service apache restart
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.