jeudi 26 mars 2015

Fatal error: Class 'PDO' not found in /home/../../../config/database.php on line 16 Laravel 5 Godaddy

This is my first project on Laravel 5 and I am trying to up load it to laravel 5. I am trying to add this to a site that is already there. It is going to be inside regular php site. This what I have done so far.


I moved my public folder that was inside my laravel inside of home/public_html/public and renamed it to public_html/NEW_NAME. Inside of index I pointed to the new location of app and autoload.


Next home/laravel/NEW_NAME


Inside of the ssh access I ran php composer.phar install to install composer.


Once I do that, i get:



Fatal error: Class 'PDO' not found inconfig/database.php on line 16


Line 16:'fetch' => PDO::FETCH_CLASS



I decided to replace: 'fetch' => PDO::FETCH_CLASS, with 'fetch' => 8, to see what that would do and I got this



Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding() in /home/dorism120021/laravel/NEW_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 43


Line 43: mb_internal_encoding('UTF-8');



Also, on my godaddy account it says that PDO is select. I am using a sqlite database. PHP 5.5. That is also selected too.


I am not sure what I am missing or what I am doing wrong. If anyone could point me in the right direction that would be greatly appreciated.


Aucun commentaire:

Enregistrer un commentaire