Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tisuchi's avatar

Problem with Laravel 5.2 on Bluehost Shared hosting

I made a simple application with laravel 5.2. When I wanna upload this it got following issue on Bluehost shared hosting...

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@callforconference.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache Server at callforconference.com Port 80

I created a folder in root directory where I stored all of my laravel 5.2 files and folder. And inside public_html , I stored all the files from public folder. Then I changed index.php file from public folder as follows-

require DIR.'/../laracfc/bootstrap/autoload.php';

$app = require_once DIR.'/../laracfc/bootstrap/app.php';

However, still I am getting Internal Server Error. Any idea how to solve this?

My site is http://callforconference.com/

1 like
7 replies
bobbybouwmann's avatar

Have you set the correct permissions on the storage directory?

4 likes
tisuchi's avatar

yes... My storage folder permission is 755. Isn't it enough?

3 likes
tisuchi's avatar
tisuchi
OP
Best Answer
Level 70

Thank you to all... I have fixed this issue. It's actually PHP Version issue. Nothing else....

5 likes
Hamelraj's avatar

@tisuchi can you show me file path how we can Use BlueHost for Laravel 5.2 because im facing some issues ?

3 likes
tisuchi's avatar

@Hamelraj

Two things you need to do---

  1. Create a folder within your root directory (normally cpanel root directory in bluehost is /home/your_username in left hand side ) based on your sitename. For example, "lc" is the folder, where you need to upload all the files and folder except public folder.

  2. Now in public_html folder, upload all the contents from public folder and add valid credentials. After that, open index.php within 'public_html' folder and changed following lines-

require DIR.'/../lc/bootstrap/autoload.php';
//here **../** meaning need to go back one step from current directory and then find inside **lc** folder
$app = require_once DIR.'/../lc/bootstrap/app.php';

Now save and refresh. Hope will work fine for you.

**** make sure that you have selected PHP version > 5.4

6 likes
Hamelraj's avatar

@tisuchi u create project using composer or manually deploy the project ? and Laravel 5.2 not working in PHP 5.4 have to have 5.6 right ? and i followed this video link https://www.youtube.com/watch?v=ybJYyU5FPv4 but when i try login i will get error ('auth.login') not find like that ??? something root path is wrong ???

3 likes
tisuchi's avatar

Yes @Hamelraj. Its true that laravel 5.2 required > 5.5.9 PHP version.

The video you are following that should be fine. However, just follow me whatever I mentioned on above comment.

By the way, is your site is now? Can I see the link?

5 likes

Please or to participate in this conversation.