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

mjedari's avatar

Deploying Laravel project on Ubuntu Server

Hi guys,

I have a VPS and I want to deploy my Laravel project on it. Serve project on Ubuntu and Apache2.I didn't set any domain name and also DNS server. How can I do it?

I had done it! but the thing is: Is this safe that my all files are in the www/html folder? can anybody see them?

0 likes
1 reply
masandikdev's avatar

first if you install Laravel on your own server you need to configure vhost / virtualhost.

Laravel use /public' as root domain, so in your case that you install it on ip address you need to edit `000-default.conf' since you install apache2 at debian based or you create the one.

also i recommended to install composer too its very helpful too.

Please or to participate in this conversation.