servers:nginx:dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
servers:nginx:dokuwiki [2019/06/28 17:32] – Change back to Fedora Server Sean Rhone | servers:nginx:dokuwiki [2020/04/24 10:09] – 20.04 Sean Rhone | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[distros:fedora_server|Fedora | + | * [[distros:ubuntu_server|Ubuntu |
- | * [[servers: | + | * [[servers: |
- | * [[servers: | + | * [[servers: |
- | + | ||
- | ====== Dependencies ====== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo dnf install php-cli php-json php-gd | + | |
====== Download Source ====== | ====== Download Source ====== | ||
Line 21: | Line 15: | ||
**** | **** | ||
- | sudo git clone --branch ' | + | sudo git clone --branch ' |
====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
Line 27: | Line 21: | ||
===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
[wiki] | [wiki] | ||
- | user = nginx | + | user = www-data |
- | group = nginx | + | group = www-data |
- | listen = /run/php-fpm/ | + | listen = / |
- | listen.owner = nginx | + | listen.owner = www-data |
- | listen.group = nginx | + | listen.group = www-data |
listen.allowed_clients = 127.0.0.1 | listen.allowed_clients = 127.0.0.1 | ||
Line 54: | Line 48: | ||
php_value[max_file_uploads] = " | php_value[max_file_uploads] = " | ||
- | php_value[session.save_handler] = files | + | php_value[session.save_handler] = "files" |
- | php_value[session.save_path] = / | + | php_value[session.save_path] = "/ |
- | php_value[soap.wsdl_cache_dir] = / | + | php_value[soap.wsdl_cache_dir] = "/ |
- | php_value[opcache.file_cache] = / | + | php_value[opcache.file_cache] = "/ |
===== FastCGI ===== | ===== FastCGI ===== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
Line 73: | Line 67: | ||
fastcgi_param SCRIPT_FILENAME | fastcgi_param SCRIPT_FILENAME | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
- | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
}</ | }</ | ||
===== Server Block ====== | ===== Server Block ====== | ||
- | sudo -e '/ | + | sudo -e '/ |
< | < | ||
Line 87: | Line 81: | ||
index ' | index ' | ||
- | include '/ | + | include '/ |
- | include '/ | + | include '/ |
client_max_body_size ' | client_max_body_size ' | ||
Line 118: | Line 112: | ||
} | } | ||
}</ | }</ | ||
+ | |||
+ | ==== Enable ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo rm -f '/ | ||
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 136: | Line 136: | ||
* Do after initial setup | * Do after initial setup | ||
- | sudo -e '/ | + | sudo -e '/ |
===== URL Rewrite ===== | ===== URL Rewrite ===== | ||
Line 147: | Line 147: | ||
* 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 159: | Line 159: | ||
< | < | ||
[Service] | [Service] | ||
- | User=nginx | + | User=www-data |
- | Group=nginx | + | Group=www-data |
Type=oneshot | Type=oneshot | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost=' | + | ExecStartPost='/ |
==== Timer ==== | ==== Timer ==== | ||
Line 189: | Line 189: | ||
==== Service ==== | ==== Service ==== | ||
+ | |||
+ | * :!: The commented '' | ||
sudo -e '/ | sudo -e '/ | ||
Line 194: | Line 196: | ||
< | < | ||
[Service] | [Service] | ||
- | User=nginx | + | User=www-data |
- | Group=nginx | + | Group=www-data |
Type=oneshot | Type=oneshot | ||
WorkingDirectory=/ | WorkingDirectory=/ | ||
ExecStart='/ | ExecStart='/ | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStart=' | + | #ExecStart='/ |
- | ExecStart=' | + | ExecStart='/ |
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost=' | + | ExecStartPost='/ |
==== Timer ==== | ==== Timer ==== | ||
Line 234: | Line 236: | ||
Type=oneshot | Type=oneshot | ||
WorkingDirectory=/ | WorkingDirectory=/ | ||
- | ExecStart=' | + | ExecStart='/ |
- | ExecStartPost=' | + | ExecStartPost='/ |
==== Timer ==== | ==== Timer ==== | ||
Line 308: | Line 310: | ||
**** | **** | ||
- | cd '/ | + | cd '/ |
==== Start nginx ==== | ==== Start nginx ==== |
/var/www/wiki/data/pages/servers/nginx/dokuwiki.txt · Last modified: 2024/02/07 16:37 by Sean Rhone