servers:linux:nginx:dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:linux:nginx:dokuwiki [2024/08/13 22:15] – external edit 127.0.0.1 | servers:linux:nginx:dokuwiki [2025/04/25 01:04] (current) – [PHP-FPM Socket] Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Information ====== | ====== Information ====== | ||
- | * DokuWiki ((https:// | + | * DokuWiki ((https:// |
* [[Information: | * [[Information: | ||
* https:// | * https:// | ||
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[distros:fedora_server|Fedora | + | * [[linux:distros:server: |
- | * [[servers: | + | * [[servers:linux: |
- | * [[servers:nginx:lets_encrypt|Let' | + | * [[servers;linux;nginx;lets_encrypt|Certbot (Let's Encrypt)]] |
- | ====== | + | ====== |
* https:// | * https:// | ||
Line 17: | Line 17: | ||
====== Dependencies ====== | ====== Dependencies ====== | ||
- | * PHP Modules: gd sodium zip zlib xml | + | * https:// |
+ | * https:// | ||
+ | * https:// | ||
- | sudo dnf install | + | sudo zypper |
====== Download Source ====== | ====== Download Source ====== | ||
- | **** | + | |
- | sudo git clone --branch ' | + | sudo git clone --branch ' |
+ | |||
+ | | ||
====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
Line 31: | Line 35: | ||
===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
- | sudo -e '/ | + | sudo -e '/etc/php8/fpm/ |
< | < | ||
+ | ; php-fpm.d/ | ||
+ | |||
[wiki] | [wiki] | ||
; User/Group | ; User/Group | ||
- | user = nginx | + | user = wwwrun |
- | group = nginx | + | group = www |
; Socket | ; Socket | ||
listen = / | listen = / | ||
- | listen.acl_users | + | listen.owner = wwwrun |
- | listen.allowed_clients | + | listen.group = www |
+ | listen.mode = 0666 | ||
; Process Management | ; Process Management | ||
Line 50: | Line 57: | ||
pm.process_idle_timeout = 30 | pm.process_idle_timeout = 30 | ||
- | ; Fedora | + | ; openSUSE |
- | php_value[session.save_handler] = " | + | php_value[session.save_path] = "/ |
- | php_value[session.save_path] = "/ | + | |
; General | ; General | ||
php_value[date.timezone] = " | php_value[date.timezone] = " | ||
- | ; | ||
- | ; | ||
- | ; | ||
- | ; | ||
- | ; | ||
; End</ | ; End</ | ||
Line 69: | Line 70: | ||
< | < | ||
+ | # nginx/ | ||
# PHP-FPM | # PHP-FPM | ||
+ | |||
location ~ \.(php|phar)(/ | location ~ \.(php|phar)(/ | ||
fastcgi_split_path_info ^(.+\.(?: | fastcgi_split_path_info ^(.+\.(?: | ||
Line 79: | Line 82: | ||
fastcgi_param HTTPS on; | fastcgi_param HTTPS on; | ||
fastcgi_pass unix:/ | fastcgi_pass unix:/ | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
===== Server Block ====== | ===== Server Block ====== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
+ | # nginx/ | ||
+ | |||
server { | server { | ||
listen ' | listen ' | ||
http2 ' | http2 ' | ||
server_name ' | server_name ' | ||
- | root '/var/ | + | root '/srv/ |
index ' | index ' | ||
Line 123: | Line 130: | ||
rewrite ^/(.*) / | rewrite ^/(.*) / | ||
} | } | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 160: | Line 169: | ||
* This prevents -- from becoming a – (long hyphen), which breaks some command' | * This prevents -- from becoming a – (long hyphen), which breaks some command' | ||
- | echo ' | + | echo ' |
====== Services ====== | ====== Services ====== | ||
Line 252: | Line 261: | ||
==== Service ==== | ==== Service ==== | ||
- | * The extra '' | + | * The extra '' |
* TODO: Remove additional backup locations and put it on a system-wide script direct from the '' | * TODO: Remove additional backup locations and put it on a system-wide script direct from the '' | ||
/srv/www/wiki/data/attic/servers/linux/nginx/dokuwiki.1723601758.txt.gz · Last modified: by 127.0.0.1