servers:nginx:dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:nginx:dokuwiki [2024/02/07 15:06] – Sean Rhone | servers:nginx:dokuwiki [2024/02/07 16:37] (current) – [Server Block] Sean Rhone | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[distros:ubuntu_server|Ubuntu | + | * [[distros:fedora_server|Fedora |
* [[servers: | * [[servers: | ||
* [[servers: | * [[servers: | ||
- | |||
- | * [[servers: | ||
====== Dependencies ====== | ====== Dependencies ====== | ||
- | | + | * PHP Modules: gd sodium zip zlib xml |
- | | + | |
- | sudo apt install | + | sudo dnf install |
====== Download Source ====== | ====== Download Source ====== | ||
Line 24: | Line 21: | ||
**** | **** | ||
- | sudo git clone --branch ' | + | sudo git clone --branch ' |
====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
Line 30: | Line 27: | ||
===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
Line 36: | Line 33: | ||
; User/Group | ; User/Group | ||
- | user = www-data | + | user = nginx |
- | group = www-data | + | group = nginx |
; Socket | ; Socket | ||
- | listen = / | + | listen = /run/php-fpm/ |
- | listen.acl_users = www-data | + | listen.acl_users = nginx |
- | listen.acl_groups = www-data | + | |
listen.allowed_clients = 127.0.0.1 | listen.allowed_clients = 127.0.0.1 | ||
Line 50: | Line 46: | ||
pm.process_idle_timeout = 30 | pm.process_idle_timeout = 30 | ||
- | ; Ubuntu | + | ; Fedora |
php_value[session.save_handler] = " | php_value[session.save_handler] = " | ||
php_value[session.save_path] = "/ | php_value[session.save_path] = "/ | ||
- | |||
- | ; DokuWiki Recommendations | ||
- | php_value[output_buffering] = " | ||
; General | ; General | ||
Line 69: | Line 62: | ||
===== FastCGI ===== | ===== FastCGI ===== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
Line 81: | Line 74: | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param HTTPS on; | fastcgi_param HTTPS on; | ||
- | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
}</ | }</ | ||
===== Server Block ====== | ===== Server Block ====== | ||
- | | + | sudo -e '/ |
- | + | ||
- | | + | |
< | < | ||
Line 97: | Line 88: | ||
index ' | index ' | ||
- | include '/ | + | include '/ |
- | include '/ | + | include '/ |
client_max_body_size ' | client_max_body_size ' | ||
- | # | + | |
# access_log | # access_log | ||
Line 128: | Line 119: | ||
} | } | ||
}</ | }</ | ||
- | |||
- | ==== Enable ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo ln --symbolic --force '/ | ||
====== Initial Setup ====== | ====== Initial Setup ====== |
/var/www/wiki/data/attic/servers/nginx/dokuwiki.1707336371.txt.gz · Last modified: 2024/02/07 15:06 by Sean Rhone