From 1cdb19604bc6f04ea0d17049fef4fd5890d60650 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Wed, 21 Sep 2022 10:16:31 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa2fe07..4350895 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ > 🐳 Full Docker image for Nginx PHP-FPM container created to run Laravel or any php based applications. - [Docker Hub](https://hub.docker.com/r/jkaninda/nginx-php-fpm) +- [Github](https://github.com/jkaninda/nginx-php-fpm) ## Specifications: @@ -81,7 +82,7 @@ services: - LARAVEL_PROCS_NUMBER=2 # Optional, Laravel queue:work process number #- CLIENT_MAX_BODY_SIZE=20M # Optional #- DOMAIN=example.com # Optional - #- DOCUMENT_ROOT=/var/www/html Optional + - DOCUMENT_ROOT=/var/www/html #Optional ``` @@ -100,7 +101,12 @@ services: ### Add more supervisor process in > /var/www/html/conf/worker/supervisor.conf +### Storage permision issue +> docker-compose exec php-fpm /bin/bash +> chown -R www-data:www-data /var/www/html/storage + +> chmod -R 775 /var/www/html/storage > P.S. please give a star if you like it :wink: From 40fef8dc7436a01253f849c874c4b72ce2ae1a19 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Wed, 21 Sep 2022 10:17:47 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- src/supervisor/supervisord.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4350895..64b7e2f 100644 --- a/README.md +++ b/README.md @@ -105,8 +105,8 @@ services: > docker-compose exec php-fpm /bin/bash > chown -R www-data:www-data /var/www/html/storage - > chmod -R 775 /var/www/html/storage + > P.S. please give a star if you like it :wink: diff --git a/src/supervisor/supervisord.conf b/src/supervisor/supervisord.conf index 3912f99..71e88fc 100644 --- a/src/supervisor/supervisord.conf +++ b/src/supervisor/supervisord.conf @@ -18,8 +18,8 @@ command=/usr/sbin/nginx -g "daemon off;" numprocs=1 autostart=true autorestart=true -stderr_logfile=/var/log/ngnix.err.log -stdout_logfile=/var/log/ngnix.out.log +stderr_logfile=/var/log/nginx.err.log +stdout_logfile=/var/log/nginx.out.log user=root priority=100