Sorry for the Late Reply:
This stupid WordPress here breaks the Code line breaks a bit and i dont find a dedicated way how to visualize the configs properly ??
nginx v1.27.0
server {
listen 80;
server_name wpt.mydomain.de;
root /server/www/wp;
server_tokens off;
client_max_body_size 16M;
client_body_timeout 300s;
fastcgi_buffers 32 32k;
fastcgi_buffer_size 32k;
fastcgi_hide_header X-Powered-By;
index index.php;
location / { try_files $uri $uri/ /index.php?$args; }
location ~ /. { deny all; }
location = /robots.txt { allow all; }
location ~* .(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires max; }
include /server/www/wp/nginx.conf;
rewrite ^/(readme.html|license.txt|wp-content/debug.log|wp-includes/$) /nothing_404_404?dYEu_secure-login=secure last;
rewrite ^/(((wp-content|wp-includes)/([A-Za-z0-9-_\/]))|(wp-admin/(!network\/?)([A-Za-z0-9-_\/]+)))(.txt|/)$ /nothing_404_404?dYEu_secure-login=secure last;
location ~ .php$ { fastcgi_split_path_info ^(.+?.php)(/.)$;
include fastcgi_params;
fastcgi_pass php-handler;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $fastcgi_script_name =404;
}
}
php v8.3.6 fpm
(Modules: cli, json, apcu, bcmath, curl, gd, mbstring, mysql, opcache, xml, zip, json, intl, imagick
)
[www]
user = www-data
group = www-data
listen = /run/php/php8.3-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 64
pm.start_servers = 16
pm.min_spare_servers = 16
pm.max_spare_servers = 48
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
php_admin_value[mysqli.allow_local_infile] = On
php_admin_value[mysqli.allow_persistent] = On
php_admin_value[mysqli.cache_size] = 2000
php_admin_value[mysqli.max_persistent] = -1
php_admin_value[mysqli.max_links] = -1
php_admin_value[mysqli.default_socket] = /run/mysqld/mysqld.sock
php_admin_value[mysqli.connect_timeout] = 60
php_admin_value[mysqli.trace_mode] = Off
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.save_comments] = 1
php_admin_value[opcache.jit] = 1255
php_admin_value[opcache.jit_buffer_size] = 128M
php_admin_value[opcache.memory_consumption] = 256
php_admin_value[opcache.interned_strings_buffer] = 64
php_admin_value[opcache.max_accelerated_files] = 10000
php_admin_value[memory_limit] = 512M
php_admin_value[upload_max_filesize] = 2G
php_admin_value[post_max_size] = 2G
php_admin_value[max_execution_time] = 3600
php_admin_value[max_input_time] = 3600
php_admin_value[output_buffering] = 0
No Changes in any other PHP Files, except /etc/php/8.3/fpm/conf.d/10-opcache.ini (Because the default is Jit disabled and pool.d config can’t overwrite the value of 10-opcache.ini if its defined)
zend_extension=opcache.so
opcache.jit=1255
Thats it, i try to set everything with the pool.d config, no php.ini modifications.
The nginx Section has no 443 and SSL Configs, because there is an Reverse Proxy in Front (NPM).
In /etc/hosts you need only an 172.30.1.15 wpt.mydomain.de
ip/host to the reverse Proxy, to make WordPress loopback working.
WordPress v6.6.1 and Plugins:
Borlabs Cookie
Contact Form 7
Download Manager
Email Address Encoder
Hide My WP
LayerSlider
Sucuri Security
The7 Elements
Ultimate Addons for WPBakery Page Builder
Visual Composer Responsive Google Maps
W3 Total Cache
WP Extra File Types
WP Mail SMTP
WPBakery Page Builder
Yoast Duplicate Post
Yoast SEO
Everything is Up2Date etc…
Cheers & Thanks!
-
This reply was modified 3 months, 3 weeks ago by ramalxlama.