Support the ongoing development of Laravel.io →
Installation Configuration Testing
Last updated 2 years ago.
0

take a look in Apache's log file

0

First you need to find the error, see laravel.log or php error log

0

[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.

0

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

0

Here is the larabook folder it is under myapps/larabook

Larabook Folder

Here is public folder under the public_html Larabook Folder

And here is my index.php file

<?php
/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <[email protected]>
 */

/*
|--------------------------------------------------------------------------
| 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://[email protected]/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://[email protected]/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();

Last updated 2 years ago.
0

I solved it. Paths were not correct in index.php file. I was using a subdomain so i configured my index.php again.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.