Hello everyone!,
I've finished the laracasts' larabook tutorial, and it works pretty well on my localhost. However i've installed it to my shared hosting which is larabook.mburakergenc.com, but now I'm only facing with a blank screen. I did upload the public file into my public_html and also i did upload all the other files outside of the public_html and i configured my index.php file.
All the helps are appreciated! Thanks!
[2015-01-28 07:01:18] production.ERROR: exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /Users/tabutcu/Desktop/Larabook/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47
That's the error in the laravel.log file.
Maybe it has something with the changes on the files structure.
Here is a guide to deploy a laravel 4 app on a cpanel type hosting
Here is the larabook folder it is under myapps/larabook
Here is public folder under the public_html
And here is my index.php file
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require 'ftp://brinddea@mburakergenc.com/my_apps/larabook/bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let's turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight these users.
|
*/
$app = require_once 'ftp://brinddea@mburakergenc.com/my_apps/larabook/bootstrap/start.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have whipped up for them.
|
*/
$app->run();
I solved it. Paths were not correct in index.php file. I was using a subdomain so i configured my index.php again.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community