0

I have extracted my zip file(project files) to public_html and moved files from public/ folder created by Laravel to public_html and modified index.php to

require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';

But i am getting a 500 Internal server error? Cant it be caused by .htacces?

5
  • Because the public folder with index.php should be the webroot. So rename public to public_html and keep the path the same (so the other folders are still on the same lavel as public_html Commented Nov 3, 2017 at 12:30
  • can you print the stacktrace? Commented Nov 3, 2017 at 12:30
  • I am on a share hosting, I am not sure if i cant get 'stack trace' Commented Nov 3, 2017 at 12:35
  • @ThomasMoors - so if i rename public which is inside public_html to public_html, I am going to end up with public_html/public_html? Commented Nov 3, 2017 at 12:46
  • no make public, public_html, so replace it! Commented Nov 3, 2017 at 13:04

1 Answer 1

2

you shoud copy entire project to public_html and then point your domain to public_html/your_project_folder/public/ folder

Sign up to request clarification or add additional context in comments.

7 Comments

Hi, I have tried that but i dont have a option in 'Addon' to change Document root..FYI, Its on a shared hosting, I cant SSH
ok are you sure you have your .htaccess file in public folder and .env in your project folder? storage, and bootstrap folder have to be writable
i have .htaccess in 'public_html', storage and bootstrap have 775 rights and are in the same folder level as well...so 'public_html/public/' has nothing
.htaccess shoud be in public folder, where is .env file?
and you should not move file from inside public folder, leave it there
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.