From 28dd26e8731ee8d7a654e8ef4c5911ffad3bd2be Mon Sep 17 00:00:00 2001 From: Fascinated Date: Thu, 6 Jul 2023 00:53:03 +0100 Subject: [PATCH] attempt 5 --- docker/start.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/start.sh b/docker/start.sh index b14dd26..6d9bc89 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -35,9 +35,8 @@ sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/ # Set max upload size for nginx sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/" /etc/nginx/nginx.conf -# I don't know how to fix this properly, but it works. -#chmod 777 /run/php/php8.1-fpm.sock - # Start Nginx echo "Starting PHP & Nginx" -/etc/init.d/php8.1-fpm start && nginx -g 'daemon off;' \ No newline at end of file +/etc/init.d/php8.1-fpm start \ +chmod 777 /run/php/php8.1-fpm.sock \ +nginx -g 'daemon off;' \ No newline at end of file