Thanks a lot for this project, it's awesome!
This tutorial shows how to install Nginx + PHP + MySQL on Mac OS Catalina. It’s very straightforward process and doesn’t takes you more than 10 to 15 minutes. Install PHP First of all, ensure that brew brew is up-to-date and then install latest php 7.4 version. To locate your ini files type the following. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I recently purchased brand new MacBook Pro and I had to install NGINX, PHP and MySQL in my MacBook Pro. In this article, I am going to share my experience for how to install NGINX, PHP and MySQL on your Mac. This article is for someone interesting to set-up web development environment, especially for.
Nginx Mac Download
The most straightforward default web folder on OSX is probably ~/Sites
To improve the engagement of docker inside my company, i forced people to use this first plug-and-play web server as a mean to make people be impressed by docker capacity.
Also, i feel pretty pleased by the fact that you can finally run services and commands with
docker run/exec on mac seemlessly, thanks a lot for that docker!
Also, please note, that homebrew is not even needed anymore and finally webserver's config file are project centric!
Check that 80 and 443 port are free to use!Some very simple steps:
- Install docker for mac
- Create the docker 'local-nginx-rproxy' network :
docker network create local-nginx-rproxy
- Clone the repo:
git clone [email protected]:9c49d596991dbb47be6b52bfa3bce862.git
- Launch docker containers in background:
docker-compose up -d
- Access nginx: http://localhost
Adding http servers
I added an example with php-fpm, just do these steps:
- docker-compose -f docker-compose-php.yml up -d
- Access php: http://php.localhost
To connect on 443 port, you must create self signed certificates in
You can use a logic of wildcards certificate, for example: creating those two files
~/.certs allows you to access localhost with https!
Also if you see this and you know how to improve even further this boilerplate code, please raise your voice.