CodeNoob CodeNoob - 1 month ago 14
Apache Configuration Question

Route cloud not find driver

I am new whit Laravel and write my first

route
, but have my first problem.

Server : Php5.6 + Mysql + apache2 , Linux Mint

First install whit :

composer create-project laravel/laravel test 5.0 --prefer-dist


And permisions in :

chmod 777 -R ./storage/ && chmod 777 -R ./bootstrap/


In route php

Route::get('/test',function (){
echo "Batman like the black color.";
});


This can go to direction
localhost/<nameproyect>/test
. This not go , but i write for check this route is create fine , write
php artisan route:list
.

This is a broblem:

[PDOException]
could not find driver


In php.ini , i have :

extension = pdo.so
extension = pdo_mysql.so

Answer

You can install MySQL PDO driver installing php5-mysql

sudo apt-get install php5-mysql