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

Anoud's avatar
Level 1

How to host Laravel (localhost) on hoster like One.com

Hi,

I have Laravel project on my Laptop, and I'm using Valet and Mysql with Sequel Pro. Therefore, I need to host my website on One.com. But I don't know how! Especially my database and all PHP file on my laptop!.

Could you please help me.

Thank you

0 likes
2 replies
D9705996's avatar
D9705996
Best Answer
Level 51

I've not used one.com but it looks like shared hosting. You could try and adapt this tutorial

https://dev.to/asapabedi/deploying-laravel-5-applications-on-shared-hosting-without-the-use-of-ssh--16a6

One issue is you can't run your migrations without ssh access (although this package might help but it doubt it https://github.com/spatie/laravel-web-tinker) so you will manually need to setup and manage your tables.

I would look at laravel forge a $12 / month plus about another $10 for a basic digital ocean droplet (or other supported provider) but will save you countless hours on setup, configuration, deployment, etc

Theres a free trial if you want to try before you buy and an ace tutorial series here

https://laracasts.com/series/learn-laravel-forge

Whatever you do make sure you dont expose anything outside the public folder to the web. E.g. if you have to go to /public/... in your url you can mostly likely just put /.env to get access to your secret configuration! Getting security wrong can be costly

https://mobile.twitter.com/paulr_rohan/status/1055427836650041344?s=19

Please or to participate in this conversation.