From 04d399489b675389bd3e778088ebdda5c4f0344a Mon Sep 17 00:00:00 2001 From: magomed Date: Fri, 17 Jun 2022 21:55:44 +0300 Subject: [PATCH] * correct path for profiler output --- docker-compose.base.yml | 2 +- dockerfiles/php-fpm/php74.Dockerfile | 7 ------- dockerfiles/php-fpm/xdebug.ini | 4 ++-- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/docker-compose.base.yml b/docker-compose.base.yml index cd1568d..3119084 100755 --- a/docker-compose.base.yml +++ b/docker-compose.base.yml @@ -28,7 +28,7 @@ services: restart: always volumes: - ${PROJECTS_DIR}:/usr/share/nginx/html - - ./data/profiler:/tmp + - ./data/profiler:/tmp/profiler expose: - 9000 workspace: diff --git a/dockerfiles/php-fpm/php74.Dockerfile b/dockerfiles/php-fpm/php74.Dockerfile index 408e96e..7ca1105 100644 --- a/dockerfiles/php-fpm/php74.Dockerfile +++ b/dockerfiles/php-fpm/php74.Dockerfile @@ -33,13 +33,6 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini ########################################################################### -# Permission denied on /tmp folder: -########################################################################### - -RUN mkdir /php-tmp && chmod 777 -R /php-tmp && chmod o+t -R /php-tmp -RUN sed -i "s/^;upload_tmp_dir =.*/upload_tmp_dir = \/php-tmp/g" "$PHP_INI_DIR/php.ini" - -########################################################################### # Tune opts: ########################################################################### diff --git a/dockerfiles/php-fpm/xdebug.ini b/dockerfiles/php-fpm/xdebug.ini index 7540bad..f90bbd7 100644 --- a/dockerfiles/php-fpm/xdebug.ini +++ b/dockerfiles/php-fpm/xdebug.ini @@ -10,7 +10,7 @@ xdebug.remote_enable=1 xdebug.cli_color=0 xdebug.profiler_enable=1 xdebug.profiler_enable_trigger=1 -xdebug.profiler_output_dir=/tmp +xdebug.profiler_output_dir=/tmp/profiler xdebug.remote_handler=dbgp xdebug.remote_mode=req @@ -20,7 +20,7 @@ xdebug.var_display_max_data=-1 xdebug.var_display_max_depth=-1 xdebug.trace_enable_trigger=1 -xdebug.trace_output_dir=/tmp +xdebug.trace_output_dir=/tmp/trace xdebug.trace_output_name="trace.%t" xdebug.show_exception_trace=1 \ No newline at end of file