Compare commits

..

14 Commits

Author SHA1 Message Date
8f77510052 build fix 2023-10-15 00:25:08 +05:00
8c17953315 testing cleaner build 2023-10-15 00:19:25 +05:00
5330168595 Fix php-imagemagik 2022-12-07 21:34:13 +05:00
44f11cee27 fix php env 2022-12-07 20:16:05 +05:00
6c6061c1ee removed php8.1 junk, disabled some output thing 2022-12-07 18:45:16 +05:00
573c0f9066 BRUHH php.ini rename 2022-11-05 19:56:52 +05:00
fede9db8e7 php memory limit increase 2022-11-05 19:52:29 +05:00
85a27b96dd more childen 2022-11-05 19:45:40 +05:00
bd0563afa7 commented pdlib, its there there tho 2022-11-05 19:44:35 +05:00
4c8ebad4fc php error log fix 2022-11-05 19:36:34 +05:00
cbd2b2069d php 7.4 config files 2022-11-05 19:15:48 +05:00
e519143590 start services php 7,4 2022-11-05 19:06:58 +05:00
e005ae74a3 php 7.4 nginx 2022-11-05 19:03:37 +05:00
1261888847 \ ffs 2022-11-05 19:01:07 +05:00
228 changed files with 839 additions and 637 deletions

33
.build/docker-compose.yml Normal file
View File

@ -0,0 +1,33 @@
version: '3.5'
services:
#########################
fpm:
build:
context: .
dockerfile: fpm.Dockerfile
x-bake:
pull: true
platforms:
- linux/amd64/v1
- linux/amd64/v2
- linux/amd64/v3
- linux/arm/v7
- linux/arm64
hostname: fpm
platform: linux/amd64/v3
image: git.shihaam.dev/dockerfiles/nextcloud-fpm:latest
nginx:
build:
context: .
dockerfile: nginx.Dockerfile
x-bake:
pull: true
platforms:
- linux/amd64/v1
- linux/amd64/v2
- linux/amd64/v3
- linux/arm/v7
- linux/arm64
hostname: nginx
platform: linux/amd64/v3
image: git.shihaam.dev/dockerfiles/nextcloud-nginx:vest

20
.build/fpm.Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM git.shihaam.dev/dockerfiles/php-fpm:8.2.3
SHELL ["/bin/bash", "-c"]
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN --mount=type=cache,target=/var/cache/apt \
apt update && install locales -y \
&& apt auto-remove -y \
&& apt clean -y
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
RUN --mount=type=cache,target=/var/cache/apt \
apt update && apt install bzip2 zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

3
.build/nginx.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM git.shihaam.dev/dockerfiles/nginx-fpm:latest
COPY nginx.conf /etc/nginx/conf.d/default.conf

164
.build/nginx.conf Normal file
View File

@ -0,0 +1,164 @@
# Set the `immutable` cache control options only for assets with a cache busting `v` argument
map $arg_v $asset_immutable {
"" "";
default "immutable";
}
server {
listen 80;
server_name _;
#Logs
access_log /root/logs/nginx/access.log;
error_log /root/logs/nginx/error.log;
# Path to the root of your installation
root /var/www/html;
# Prevent nginx HTTP Server Detection
server_tokens off;
# HSTS settings
# WARNING: Only add the preload option once you read about
# the consequences in https://hstspreload.org/. This option
# will add the domain to a hardcoded list that is shipped
# in all major browsers and getting removed from this list
# could take several months.
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" always;
# set max upload size and increase upload timeout:
client_max_body_size 4G;
client_body_timeout 600s;
fastcgi_buffers 64 4K;
# Enable gzip but do not remove ETag headers
gzip on;
gzip_vary on;
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
# Pagespeed is not supported by Nextcloud, so if your server is built
# with the `ngx_pagespeed` module, uncomment this line to disable it.
#pagespeed off;
# The settings allows you to optimize the HTTP2 bandwitdth.
# See https://blog.cloudflare.com/delivering-http-2-upload-speed-improvements/
# for tunning hints
client_body_buffer_size 512k;
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
# Specify how to handle directories -- specifying `/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour
# when a client requests a path that corresponds to a directory that exists
# on the server. In particular, if that directory contains an index.php file,
# that file is correctly served; if it doesn't, then the request is passed to
# the front-end controller. This consistent behaviour means that we don't need
# to specify custom rules for certain paths (e.g. images and other assets,
# `/updater`, `/ocm-provider`, `/ocs-provider`), and thus
# `try_files $uri $uri/ /index.php$request_uri`
# always provides the desired behaviour.
index index.php index.html /index.php$request_uri;
# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
location = / {
if ( $http_user_agent ~ ^DavClnt ) {
return 302 /remote.php/webdav/$is_args$args;
}
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Make a regex exception for `/.well-known` so that clients can still
# access it despite the existence of the regex rule
# `location ~ /(\.|autotest|...)` which would otherwise handle requests
# for `/.well-known`.
location ^~ /.well-known {
# The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`.
location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; }
location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
location /.well-known/pki-validation { try_files $uri $uri/ =404; }
# Let Nextcloud's API for `/.well-known` URIs handle all other
# requests by passing them to the front-end controller.
return 301 /index.php$request_uri;
}
# Rules borrowed from `.htaccess` to hide certain paths from clients
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }
# Ensure this block, which passes PHP files to the PHP process, is above the blocks
# which handle static assets (as seen below). If this block is not declared first,
# then Nginx will encounter an infinite rewriting loop when it prepends `/index.php`
# to the URI, resulting in a HTTP 500 error response.
location ~ \.php(?:$|/) {
# Required for legacy support
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
fastcgi_param front_controller_active true; # Enable pretty urls
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_max_temp_file_size 0;
}
location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463, $asset_immutable";
access_log off; # Optional: Don't log access to assets
location ~ \.wasm$ {
default_type application/wasm;
}
}
location ~ \.woff2?$ {
try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
}
# Rule borrowed from `.htaccess`
location /remote {
return 301 /remote.php$request_uri;
}
location / {
try_files $uri $uri/ /index.php$request_uri;
}
}

View File

@ -62,7 +62,7 @@ RUN apt install -y php${PHPVERSION}-{gmp,exif} --no-install-recommends
RUN apt install -y php${PHPVERSION}-{apcu,memcached,redis} --no-install-recommends
#Installing optional PHP modules and tools for preview generation #Maybe add LibreOffice here
RUN apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no-install-recommends
RUN apt install -y php${PHPVERSION}-imagick libmagickcore-6.q16-6-extra imagemagick ffmpeg libreoffice --no-install-recommends
#Installing Optional cli enhancement PHP Modules
#RUN apt install -y php${PHPVERSION}-pcntl --no-install-recommendsb
@ -72,7 +72,7 @@ RUN apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no
RUN echo "deb https://repo.delellis.com.ar bullseye bullseye" > /etc/apt/sources.list.d/20-pdlib.list \
&& wget -qO - https://repo.delellis.com.ar/repo.gpg.key | apt-key add - \
&& apt update \
&& apt install -y php${PHPVERSION}-pdlib --no-install-recommends
&& apt install -y php${PHPVERSION}-pdlib --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y

View File

@ -129,7 +129,7 @@ server {
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
fastcgi_param front_controller_active true; # Enable pretty urls
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mysqlnd.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/opcache.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/pdo.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xml.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/apcu.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/bcmath.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/bz2.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/calendar.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ctype.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/curl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/dom.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/exif.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ffi.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/fileinfo.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ftp.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gd.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gettext.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gmp.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/iconv.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/igbinary.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/imagick.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/intl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/json.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mbstring.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/msgpack.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mysqli.ini

View File

@ -0,0 +1 @@
../../mods-available/20-pdlib.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/pdo_mysql.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/phar.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/posix.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/readline.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/redis.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/shmop.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/simplexml.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sockets.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvmsg.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvsem.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvshm.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/tokenizer.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xmlreader.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xmlwriter.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xsl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/zip.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/memcached.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mysqlnd.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/opcache.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/pdo.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xml.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/apcu.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/bcmath.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/bz2.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/calendar.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ctype.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/curl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/dom.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/exif.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ffi.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/fileinfo.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/ftp.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gd.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gettext.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/gmp.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/iconv.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/igbinary.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/imagick.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/intl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/json.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mbstring.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/msgpack.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/mysqli.ini

View File

@ -0,0 +1 @@
../../mods-available/20-pdlib.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/pdo_mysql.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/phar.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/posix.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/readline.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/redis.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/shmop.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/simplexml.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sockets.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvmsg.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvsem.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/sysvshm.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/tokenizer.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xmlreader.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xmlwriter.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/xsl.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/zip.ini

View File

@ -0,0 +1 @@
/etc/php/7.4/mods-available/memcached.ini

View File

@ -16,14 +16,14 @@
; Default Value: none
; Warning: if you change the value here, you need to modify systemd
; service PIDFile= setting to match the value here.
pid = /run/php/php8.1-fpm.pid
pid = /run/php/php7.4-fpm.pid
; Error log file
; If it's set to "syslog", log is sent to syslogd instead of being written
; into a local file.
; Note: the default prefix is /var
; Default Value: log/php-fpm.log
error_log = /root/logs/php-fpm/php8.1-fpm.log
error_log = /root/logs/php-fpm/php-fpm.log
; syslog_facility is used to specify what type of program is logging the
; message. This lets syslogd specify that messages from different facilities
@ -55,7 +55,7 @@ error_log = /root/logs/php-fpm/php8.1-fpm.log
; Log buffering specifies if the log line is buffered which means that the
; line is written in a single write operation. If the value is false, then the
; data is written directly into the file descriptor. It is an experimental
; option that can potentially improve logging performance and memory usage
; option that can potentionaly improve logging performance and memory usage
; for some heavy logging scenarios. This option is ignored if logging to syslog
; as it has to be always buffered.
; Default value: yes
@ -142,4 +142,4 @@ error_log = /root/logs/php-fpm/php8.1-fpm.log
; Relative path can also be used. They will be prefixed by:
; - the global prefix if it's been set (-p argument)
; - /usr otherwise
include=/etc/php/8.1/fpm/pool.d/*.conf
include=/etc/php/7.4/fpm/pool.d/*.conf

View File

@ -33,7 +33,7 @@ group = www-data
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /run/php/php8.1-fpm.sock
listen = /run/php/php7.4-fpm.sock
; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
@ -71,7 +71,7 @@ listen.group = www-data
; process.priority = -19
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
; or group is different than the master process user. It allows to create process
; or group is differrent than the master process user. It allows to create process
; core dump and ptrace the process for the pool user.
; Default Value: no
; process.dumpable = yes
@ -93,8 +93,6 @@ listen.group = www-data
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; pm.max_spawn_rate - the maximum number of rate to spawn child
; processes at once.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
@ -113,7 +111,7 @@ pm = dynamic
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 5
pm.max_children = 25
; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
@ -130,12 +128,6 @@ pm.min_spare_servers = 1
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 3
; The number of rate to spawn child processes at once.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
; Default Value: 32
;pm.max_spawn_rate = 32
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
@ -148,7 +140,7 @@ pm.max_spare_servers = 3
;pm.max_requests = 500
; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. It shows the following information:
; recognized as a status page. It shows the following informations:
; pool - the name of the pool;
; process manager - static, dynamic or ondemand;
; start time - the date and time FPM has started;
@ -238,7 +230,7 @@ pm.max_spare_servers = 3
; last request memory: 0
;
; Note: There is a real-time FPM status monitoring sample web page available
; It's available in: /usr/share/php/8.1/fpm/status.html
; It's available in: /usr/share/php/7.4/fpm/status.html
;
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
@ -246,22 +238,6 @@ pm.max_spare_servers = 3
; Default Value: not set
;pm.status_path = /status
; The address on which to accept FastCGI status request. This creates a new
; invisible pool that can handle requests independently. This is useful
; if the main pool is busy with long running requests because it is still possible
; to get the status before finishing the long running requests.
;
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Default Value: value of the listen option
;pm.status_listen = 127.0.0.1:9001
; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
@ -294,13 +270,13 @@ pm.max_spare_servers = 3
; %d: time taken to serve the request
; it can accept the following format:
; - %{seconds}d (default)
; - %{milliseconds}d
; - %{milli}d
; - %{miliseconds}d
; - %{mili}d
; - %{microseconds}d
; - %{micro}d
; %e: an environment variable (same as $_ENV or $_SERVER)
; it must be associated with embraces to specify the name of the env
; variable. Some examples:
; variable. Some exemples:
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
; %f: script filename
@ -330,17 +306,17 @@ pm.max_spare_servers = 3
; %t: server time the request was received
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %T: time the log has been written (the request has finished)
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %u: remote user
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
; The log file for slow requests
; Default Value: not set
@ -399,7 +375,7 @@ pm.max_spare_servers = 3
; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environment, this can cause some delay in the page
; Note: on highloaded environement, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes
@ -418,7 +394,7 @@ pm.max_spare_servers = 3
; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER.
; Default Value: yes
;clear_env = no
clear_env = no
; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit

View File

@ -0,0 +1,3 @@
; configuration for php pdlib module
; priority=20
extension=pdlib.so

Some files were not shown because too many files have changed in this diff Show More