From 8c8e29a918ff5d63006d1e737d225444c49cf37f Mon Sep 17 00:00:00 2001 From: Alex Prokopenko Date: Fri, 10 Sep 2021 17:42:19 +0300 Subject: [PATCH] + fastcgi SERVER_NAME with $host nginx variable for correctly passing server name to xdebug in phpstorm * chmod to tmp folder in php-fpm container --- config/nginx/conf.d/vhosts.conf.example | 2 ++ dockerfiles/php-fpm/php74.Dockerfile | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/config/nginx/conf.d/vhosts.conf.example b/config/nginx/conf.d/vhosts.conf.example index 0948602..503be98 100644 --- a/config/nginx/conf.d/vhosts.conf.example +++ b/config/nginx/conf.d/vhosts.conf.example @@ -23,6 +23,7 @@ server { fastcgi_pass php74; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SERVER_NAME $host; } } @@ -48,6 +49,7 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; + fastcgi_param SERVER_NAME $host; fastcgi_pass php73; fastcgi_index index.php; diff --git a/dockerfiles/php-fpm/php74.Dockerfile b/dockerfiles/php-fpm/php74.Dockerfile index ac9f6d3..f7c725d 100644 --- a/dockerfiles/php-fpm/php74.Dockerfile +++ b/dockerfiles/php-fpm/php74.Dockerfile @@ -33,6 +33,11 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini ########################################################################### +# Permission denied on /tmp folder: +########################################################################### +RUN chmod 1777 /tmp + +########################################################################### # Tune opts: ###########################################################################