简体   繁体   中英

Class 'PDO' not found when uploading laravel website to cpanel

After uploading website to cpanel it shows error Class 'PDO' not found. The version of laravel is 5.8 and php is 7.1. Please help in solving this issue. 在此处输入图片说明

You are receiving this error because PDO extension is not enabled in your PHP configuration. If this is shared hosting server, you will have to contact your hosting provider to enable it for your account. If you own your server, please ensure that you have enabled PDO extension. You can check it using simple phpinfo page.

Depending on your server's configuration steps may be different to enable PDO extension. If it is cPanel server, it can be enabled using EasyApache 4.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM