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/10/20 13:01] – [Service] Sean Rhone | 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 ===== | ||
- | * [[linux: | + | * [[linux: |
* [[servers: | * [[servers: | ||
- | * [[servers; | + | * [[servers; |
- | ====== | + | ====== |
* https:// | * https:// | ||
- | |||
- | cd '/ | ||
====== 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 semanage fcontext --add --type ' |
====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
Line 33: | 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 52: | 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 71: | Line 70: | ||
< | < | ||
+ | # nginx/ | ||
# PHP-FPM | # PHP-FPM | ||
+ | |||
location ~ \.(php|phar)(/ | location ~ \.(php|phar)(/ | ||
fastcgi_split_path_info ^(.+\.(?: | fastcgi_split_path_info ^(.+\.(?: | ||
Line 81: | 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 125: | Line 130: | ||
rewrite ^/(.*) / | rewrite ^/(.*) / | ||
} | } | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 162: | 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 ====== |
/srv/www/wiki/data/attic/servers/linux/nginx/dokuwiki.1729443690.txt.gz · Last modified: by Sean Rhone