From b73fdd07f7c11e5e28eb9c25f834b71c4a3a4995 Mon Sep 17 00:00:00 2001 From: ChiefSoft works Date: Sun, 4 Sep 2022 01:05:37 +0000 Subject: [PATCH] environment fixed --- wrenchboard/configs/php.ini | 7 ++++--- wrenchboard/configs/www.conf | 4 ++++ wrenchboard/docker-compose.yml | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/wrenchboard/configs/php.ini b/wrenchboard/configs/php.ini index 76b7a417..b8556812 100644 --- a/wrenchboard/configs/php.ini +++ b/wrenchboard/configs/php.ini @@ -13,6 +13,7 @@ ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP + ; (otherwise in Windows) ; 6. The directory from the --with-config-file-path compile time option, or the ; Windows directory (C:\windows or C:\winnt) @@ -194,7 +195,7 @@ engine = On ; Development Value: Off ; Production Value: Off ; http://php.net/short-open-tag -short_open_tag = Off +short_open_tag = On ; The number of significant digits displayed in floating point numbers. ; http://php.net/precision @@ -727,7 +728,7 @@ default_charset = "UTF-8" ; see documentation for security issues. The alternate is to use the ; cgi.force_redirect configuration below ; http://php.net/doc-root -doc_root = +;doc_root = /opt/mainsite/wrenchboard/www ; The directory under which PHP opens the script using /~username used only ; if nonempty. @@ -775,7 +776,7 @@ enable_dl = Off ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. ; http://php.net/cgi.fix-pathinfo -;cgi.fix_pathinfo=1 +cgi.fix_pathinfo=1 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside ; of the web tree and people will not be able to circumvent .htaccess security. diff --git a/wrenchboard/configs/www.conf b/wrenchboard/configs/www.conf index 00176bdf..efa7b8dc 100644 --- a/wrenchboard/configs/www.conf +++ b/wrenchboard/configs/www.conf @@ -1,3 +1,6 @@ +[global] +error_log = /proc/self/fd/2 + ; Start a new pool named 'www'. ; the variable $pool can be used in any directive and will be replaced by the ; pool name ('www' here) @@ -258,6 +261,7 @@ ping.response = OK ; The access log file ; Default: not set ;access.log = log/$pool.access.log +access.log = /proc/self/fd/2 ; The access log format. ; The following syntax is allowed diff --git a/wrenchboard/docker-compose.yml b/wrenchboard/docker-compose.yml index b5196cec..b3c29bf0 100644 --- a/wrenchboard/docker-compose.yml +++ b/wrenchboard/docker-compose.yml @@ -13,4 +13,5 @@ services: volumes: - ./configs:/cfgs - ../www:/app + - ../www:/opt/mainsite/wrenchboard/www env_file: .env