julie-coderiver
julie-coderiver

Reputation: 1119

Laravel 4 installation error on my VPS - "class PDO not found"

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

Answers (1)

Soheil
Soheil

Reputation: 795

If your vps is CentOS: yum install php-pdo or alternatively: pecl install pdo

Upvotes: 3

Related Questions