# PHP, Laravel, NGINX and Postgres in local environment

**URL:** <https://community.nginx.org/t/php-laravel-nginx-and-postgres-in-local-environment/2823>\
**Category:** NGINX\
**Tags:** laravel, postgresql, php\
**Created:** [May 7, 2025, 7:16am UTC](https://community.nginx.org/t/php-laravel-nginx-and-postgres-in-local-environment/2823 "2025-05-07T07:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamiPress\_Cordial](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/gamipress_cordial/32/1605_2.png) [@GamiPress\_Cordial](https://community.nginx.org/u/GamiPress_Cordial)\
**Post date:** [May 7, 2025, 7:16am UTC](https://community.nginx.org/t/php-laravel-nginx-and-postgres-in-local-environment/2823/1 "2025-05-07T07:16:10Z")

</div>

I want to build an Application with **PHP** and **Laravel** : the application will use **Postgres Database** , and sit on an **NginX Server**.

How do I implement these installations in a Local environment on my Laptop ?

Regards.

---

<div class="post-metadata">

**Author:** ![alessandro](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/alessandro/32/4836_2.png) [@alessandro](https://community.nginx.org/u/alessandro)\
**Post date:** [May 7, 2025, 10:24am UTC](https://community.nginx.org/t/php-laravel-nginx-and-postgres-in-local-environment/2823/2 "2025-05-07T10:24:44Z")

</div>

Hey there! This is probably not the best place to get help with setting up PHP/Laravel and Postgres. However, there seem to be quite a few tutorials out there that cover your specific use case such as [Chapter 1: Dokerize Laravel App with Nginx and Postgres. - DEV Community](https://dev.to/burhanahmeed/dokerize-laravel-app-with-nginx-and-postgres-4le1).

In so far as setting up a dev environment in your laptop, you can probably go with either containers or a VM. The guide I shared above uses containers, but a VM should also do the trick. To setup NGINX you can either pull the official NGINX Docker image from Dockerhub or follow the steps here [nginx: Linux packages](https://nginx.org/en/linux_packages.html) to get it installed on a VM.

---

<div class="post-metadata">

**Author:** ![system](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/system/32/19_2.png) [@system](https://community.nginx.org/u/system)\
**Post date:** [July 18, 2025, 12:23pm UTC](https://community.nginx.org/t/php-laravel-nginx-and-postgres-in-local-environment/2823/3 "2025-07-18T12:23:49Z")

</div>

Closed on July 18, 2025, 12:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
