yii PDO.php error: failed to open stream: No such file or directory

Sari Rahal

So i have been trying to move my yii project from my local to an ec2 server. I am currently running into this error:

http://ec2-54-69-72-155.us-west-2.compute.amazonaws.com/www/index.php

I have checked online, and i made a PHP info file that displays this : http://ec2-54-69-72-155.us-west-2.compute.amazonaws.com/www/phpinfo_test.php

I have tried re installing/updating and it's up to date.

My database connection looks like this:

'db'=>array(
                'connectionString' => 'mysql:host=localhost;dbname=databasename',
                'emulatePrepare' => true,
                'username' => 'root',
                'password' => 'password',
                'charset' => 'utf8',
            ),

Anyone that could shed some light on this would be nice. Thank you.

DracoBlue

Looks like neither php-pdo nor php-mysql extensions are available on your EC2 machine.

Since PDO class is usually available as soon as the extension is loaded, yii is confused and tries to find it as PDO.php - which it will never find :).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Laravel classloader.php error failed to open stream: No such file or directory

PHP - Failed to open stream : No such file or directory

PHP/SQL - failed to open stream: No such file or directory

PHP - failed to open stream: No such file or directory in

PHP Warning failed to open stream: No such file or directory

include(MYPDF.php): failed to open stream: No such file or directory yii tcpdf

Yii2: failed to open stream: No such file or directory

PHP error with "logger.php" - Unknown: Failed to open stream: No such file or directory in Unknown on line 0

failed to open stream: No such file or directory

Failed to open stream: No such file or directory

File exists but PHP throwing "failed to open stream: no such file or directory"

PHP Warning: require_once: failed to open stream: No such file or directory in

include(MultiModelForm.php): failed to open stream: No such file or directory

Failed to open stream: No such file or directory in...? PHP Specific

php artisan migrate:reset failed to open stream: No such file or directory

app/bootstrap.php.cache : failed to open stream: No such file or directory

include_once(): failed to open stream: No such file or directory - PHP

/autoload.php): failed to open stream: No such file or directory in

Warning: include(dbconn.php): failed to open stream: No such file or directory

Laravel include(DatabaseSeeder.php): failed to open stream: No such file or directory

PHP/WAMP: Failed to open stream error with uploaded file

failed to open stream: No such file or directory Codeignter

failed to open stream: No such file or directory (Laravel)

failed to open stream: No such file or directory issue

failed to open stream: No such file or directory on Homestead environment

PHP error failed to open stream/failed opening

PHP failed to open Stream no such file or directory when trying to execute a php file

fopen: failed to open stream: No such file or directory - but file/directory exists

Creating Child Theme. "Warning: file_get_contents9():failed to open stream: No such file or directory" Error