diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/Dockerfile b/Dockerfile index 6396c6f..e8e7996 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,11 @@ RUN yum -y install \ EXPOSE 80 +RUN mkdir -p /var/lib/php/session + COPY root / -VOLUME ["/var/log/httpd"] +VOLUME ["/var/log/httpd", "/var/lib/php/session"] ENV PROXY_TIMEOUT 120 ENV PHP_MAX_EXECUTION_TIME 60 diff --git a/root/etc/confd/templates/www.conf.tmpl b/root/etc/confd/templates/www.conf.tmpl index 2e3fc62..70d621d 100644 --- a/root/etc/confd/templates/www.conf.tmpl +++ b/root/etc/confd/templates/www.conf.tmpl @@ -217,7 +217,6 @@ catch_workers_output = yes ; specified at startup with the -d argument ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com php_flag[display_errors] = off -;php_admin_value[error_log] = /opt/rh/php55/root/var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on php_value[max_execution_time] = {{getenv "PHP_MAX_EXECUTION_TIME"}} php_value[memory_limit] = {{getenv "PHP_MEMORY_LIMIT"}} @@ -228,7 +227,7 @@ php_value[upload_max_filesize] = {{getenv "PHP_UPLOAD_MAX_FILESIZE"}} ; Set session path to a directory owned by process user php_value[session.save_handler] = files -php_value[session.save_path] = /opt/rh/php55/root/var/lib/php/session +php_value[session.save_path] = /var/lib/php/session ; Pass the full ENV through. clear_env = false