My Laravel Project is working fine on localhost, but when I hosting this on cpanel and try to login or register. it’s through me this error like could not find driver (SQL: select * from
userswhere
email= [email protected] limit 1)
. What Should I do..??
2
Answers
First of all, I want to thank all of you guys, I find another solution to solve this kind problem, What I have done just in my
.htaccess
file this line of code# php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php71” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php71 .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit
and changeDB_USERNAME=something DB_PASSWORD=something
and my problem is solved, this is enabled
mysql
also, Thank you guys Happy Coding....You probably didn’t enable PDO extension .
In your cpanel select
You see all extensions there , enable these extensions :