Reputation: 1119
I'm installing my app on my VPS. composer create-project runs through everything gets just past "Generating autoload files" and then throws the following error:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'PDO' not found","file":"/home/mysite/myapp/app/config/database.php","line":16}}Script php artisan optimize handling the post-install-cmd event returned with an error
[RuntimeException] Error Output:
Need your help!
Upvotes: 1
Views: 3016
Reputation: 795
If your vps is CentOS: yum install php-pdo
or alternatively: pecl install pdo
Upvotes: 3