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

najim123's avatar

500 Server Error Laravel 6 on GoDaddy server.

Hello, I have just uploaded a laravel 6 website (kingstouchchurch.org) on GoDaddy shared server and did all the processes: putting everything in PUBLIC folder in html_public and others outside html_public.

Also updating the index.php file (autoload & bootstrap).

But I get 500 Server Error.

I have also tried altering permissions but to no avail! Please help!

0 likes
6 replies
Cruorzy's avatar

No no no :)

Everything in the /html_public folder and you should be able (hopefully) to change your document root to the /html_public/public folder.

I have no idea about the GoDaddy server tho.

Also make sure you have your .env rightfully configured and APP_KEY set.

1 like
najim123's avatar

Hi @cruorzy! Thanks for your immediate reply.

So I took a look at .env and changed APP_URL from localhost to the home URL of the website. Good news is: At least now the homepage is working.

However, if I go to any other link on the website it gives me this error: "Not Found The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

What could be the issue?

Thanks for your help!

siangboon's avatar

check out whether your .htaccess set correctly...

1 like
najim123's avatar
najim123
OP
Best Answer
Level 1

Thanks a lot guys! @cruorzy @jlrdw and @siangboon I have finally made it work with your help.

This was the problem and solution.

  • For some reason that I don't know, I could not find the .ENV file even though I made visible all the hidden files (dotfiles). That was when I couldn't find the whole site. Then I uploaded it from my local project and changed the APP_URL from local to the website's domain.

  • Then after that, only the home page could be found and 404 errors when try to access other pages.

  • Thanks to @siangboon I took a look at .htaccess file and I could not find it. So I uploaded it alone again and everything is working fine now.

I still don't know why the .env and .htaccess files were not there in the first place.

Please or to participate in this conversation.