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

geni.09's avatar

HOW TO UPLOAD LARAVEL PROJECT INTO A WEB SERVER?

Hi! I'm just a beginner to Laravel and I was hardcoding PHP until I learned Laravel last Friday. I created a project for school and I use XAMPP as my localhost database server. My project is located inside "C:\xampp\htdocs", now I need this project to be accessible in the internet not just in my local network since our professor require it. I've done some research but no success since some web hosting included in the tutorials I've seen requires payment. How and where can I do this?

0 likes
10 replies
topvillas's avatar

Heroku offers a free tier and it's extremely easy to set up and deploy.

1 like
geni.09's avatar

Thank you very much for your response I really appreciate it. I will search tutorials for it. If you have any links or articles that would help me progress on how to upload Laravel to Heroku, may I ask for it as a favor? Thanks again.

geni.09's avatar

I'm getting the error "Whoops, looks like something went wrong" message after typing "heroku open" on git.

I tried these fixes: (1) config/app ---change 'app_debug', false to 'app_debug', true (2) changed the permission to the storage folder (3) tried php artisan config:clear and php artisan cache:clear (4) config/app ---added some string on 'app_key'

but nothing worked.. i think i'm running out of solutions

al0mie's avatar

Try to set env variables for your requirements like heroku config:set APP_DEBUG=true in your project. After go to heroku run bash and run required commands.

geni.09's avatar

@jlrdw Even the link you gave requires payment, i explained that I can't afford those at the meantime.. the reason i'm looking for free web hosting that is convenient to laravel

al0mie's avatar

@geni.09 depends of your requirements. Usually there need run migrations or seeds or run another command that you need. I guess originally error was due you not configured your env variables.

jlrdw's avatar

@geni.09 surely you gest, some web host are only 3.99 per month. But byethost also has free hosting, but not sure of php version.

Please or to participate in this conversation.