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

qwertynik's avatar

Launching laravel on a VPS

Hello guys,

I was planning to launch my first application laravel application on a VPS. Since this is my first launch wanted to know the steps which need to be taken from the experienced folks here.

Changes which need to be done at config level, env level, DB level etc.

I do a see a course here on using forge to do the same, however, at this moment I would like to handle this myself manually ( deployment + backup + maintenance ).

Thanks in advance!

0 likes
15 replies
Cruorzy's avatar

Just read upon those subjects in general, make sure you install Nginx/Apache PHP and MySQL/MariaDB.

Configuration is just a case of using google, with a few exceptions.

1 like
qwertynik's avatar

Thanks @cruorzy

Would be helpful if you could point to any course/article ( if you have any ) which walks-through this process in detail. Google is available, however, I prefer courses/articles ( in most cases leads to faster results )

esorone's avatar

Can you share your OS which you are going to use? And what kind of webserver are you going to use?

esorone's avatar

Then I would start to install a vanilla Ubuntu on AWS. After this I would follow a tutorial.

@Qwertynik showed a tutorial of 16.04 but on https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04 you find a newer version

I used the same steps, to get my VPS going. (Different VPS provider)

The only "difficult" part for me was creating the server block level (server blocks are similar to Apache's virtual hosts). This due the fact I was used to use Apache and this was my first nginx.

If you have any questions, just let us know.

1 like
qwertynik's avatar

@esorone

Sure thanks, I will go over the article and set up the server, will let you know if I have any questions.

Other than changing some properties in the .env file in laravel app, are there any other laravel specific changes which need to be done when making an application live?

esorone's avatar

Maybe you run into a .htaccess problem, sometimes this happens to me. But I do remember if it was on Nginx or Apache

Good luck

1 like
douglasakula's avatar

Wow. Hope its not after 1 year :)

Glad you were sorted though

Please or to participate in this conversation.