From 0114c7b09fd4c6e12ae564fe97f7ba7553bf24bf Mon Sep 17 00:00:00 2001 From: bunkerity Date: Thu, 24 Jun 2021 21:32:49 +0200 Subject: [PATCH] examples - edit basic PHP --- examples/basic-website-with-php/README.md | 5 +++++ examples/basic-website-with-php/variables.env | 4 ++-- ui/dependencies.sh | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/basic-website-with-php/README.md b/examples/basic-website-with-php/README.md index 3c0f923..9014aeb 100644 --- a/examples/basic-website-with-php/README.md +++ b/examples/basic-website-with-php/README.md @@ -15,6 +15,11 @@ $ docker-compose up ## Linux +You will need to configure your php-fpm service to listen on localhost with the following directive : +```conf +listen = 127.0.0.1:9000 +``` + ```shell $ cp variables.env /opt/bunkerized-nginx/variables.env $ cp web-files/* /opt/bunkerized-nginx/www diff --git a/examples/basic-website-with-php/variables.env b/examples/basic-website-with-php/variables.env index 66a955d..0b7a68f 100644 --- a/examples/basic-website-with-php/variables.env +++ b/examples/basic-website-with-php/variables.env @@ -6,5 +6,5 @@ REDIRECT_HTTP_TO_HTTPS=yes DISABLE_DEFAULT_SERVER=yes USE_CLIENT_CACHE=yes USE_GZIP=yes -REMOTE_PHP=myphp -REMOTE_PHP_PATH=/app +REMOTE_PHP=localhost +REMOTE_PHP_PATH=/opt/bunkerized-nginx/www diff --git a/ui/dependencies.sh b/ui/dependencies.sh index 5dc7af6..76deaf8 100644 --- a/ui/dependencies.sh +++ b/ui/dependencies.sh @@ -1,4 +1,4 @@ #!/bin/sh apk add py3-pip bash -pip3 install docker flask \ No newline at end of file +pip3 install docker flask flask-login