php - No such file or directory - Error Message When Uploading on Open Shift -
i have created project using laravel, working fine on localhost . using following url in localhost http://localhost/prg/public/, , working fine. opens index page.
i have uploaded same working project on open shift. rename repo old-repo , upload project , rename repo.
the project opens index page, when click on link opens error page.
pdoexception (2002) sqlstate[hy000] [2002] no such file or director open: /var/lib/openshift/554c70a5e0b8cdc55a00007e/app-root/runtime/repo/vendor/laravel/framework/src/illuminate/database/connectors/connector.php code
*/ public function createconnection($dsn, array $config, array $options) { $username = array_get($config, 'username'); $password = array_get($config, 'password'); return new pdo($dsn, $username, $password, $options); }
check database connection settings in app/config/database.php.
i had same problem once, forgot change host localhost openshift server address, update username , password in config file, if haven't already.
Comments
Post a Comment