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 [2026/01/01 02:46] – Ubuntu -> oS TW (WIP) Sean Rhone | servers:linux:nginx:dokuwiki [2026/04/19 15:16] (current) – [PHP-FPM Socket] openSUSE TW -> Ubuntu LTS (WIP, last few revs too) Sean Rhone | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | * [[linux: | + | * [[linux: |
| * [[servers: | * [[servers: | ||
| * [[servers: | * [[servers: | ||
| Line 16: | Line 16: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | |||
| + | sudo apt install git php-bz2 php-gd php-intl php-mbstring php-xml | ||
| sudo zypper install php8-bz2 php8-gd php8-intl php8-mbstring php8-sodium php8-zlib | sudo zypper install php8-bz2 php8-gd php8-intl php8-mbstring php8-sodium php8-zlib | ||
| Line 23: | Line 25: | ||
| * https:// | * https:// | ||
| - | sudo git clone --branch ' | + | sudo git clone --branch ' |
| ====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
| Line 29: | Line 31: | ||
| ===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
| - | sudo -e '/ | + | sudo -e '/ |
| + | |||
| + | sudo -e '/ | ||
| < | < | ||
| Line 39: | Line 43: | ||
| ; Socket | ; Socket | ||
| - | listen = "/ | + | listen = "/ |
| listen.owner = " | listen.owner = " | ||
| listen.group = " | listen.group = " | ||
| Line 52: | Line 56: | ||
| php_value[log_errors] = " | php_value[log_errors] = " | ||
| php_value[error_reporting] = " | php_value[error_reporting] = " | ||
| + | |||
| + | ; openSUSE php.ini Defaults | ||
| + | php_value[session.save_path] = "/ | ||
| ; General | ; General | ||
| Line 60: | Line 67: | ||
| ===== FastCGI ===== | ===== FastCGI ===== | ||
| - | sudo -e '/ | + | sudo -e '/ |
| < | < | ||
| Line 73: | Line 80: | ||
| | | ||
| - | | + | |
| } | } | ||
| Line 81: | Line 88: | ||
| ===== Server Block ====== | ===== Server Block ====== | ||
| - | sudo -e '/ | + | sudo -e '/ |
| < | < | ||
| server { | server { | ||
| - | | + | |
| - | | + | |
| | | ||
| root '/ | root '/ | ||
| index ' | index ' | ||
| - | | + | |
| - | | + | |
| | | ||
| Line 99: | Line 105: | ||
| | | ||
| - | # access_log '/srv/ | + | # access_log '/var/ |
| - | # error_log '/srv/ | + | # error_log '/var/ |
| # location = '/ | # location = '/ | ||
| Line 128: | Line 134: | ||
| # End</ | # End</ | ||
| - | |||
| - | sudo ln -s -f '/ | ||
| ====== Initial Setup ====== | ====== Initial Setup ====== | ||
| Line 136: | Line 140: | ||
| ====== Settings ====== | ====== Settings ====== | ||
| - | |||
| - | ===== Plugins ===== | ||
| - | |||
| - | * https:// | ||
| ===== Template Style Settings ===== | ===== Template Style Settings ===== | ||
| Line 152: | Line 152: | ||
| * Do after initial setup | * Do after initial setup | ||
| - | sudo -e '/ | + | sudo -e '/ |
| ===== URL Rewrite ===== | ===== URL Rewrite ===== | ||
| Line 164: | Line 164: | ||
| * This prevents -- from becoming a – (long hyphen), which breaks some command' | * This prevents -- from becoming a – (long hyphen), which breaks some command' | ||
| - | echo ' | + | echo ' |
| ====== Scripts ====== | ====== Scripts ====== | ||
| Line 198: | Line 198: | ||
| # End</ | # End</ | ||
| - | | + | ==== Execute ==== |
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | exit | ||
| ====== Services ====== | ====== Services ====== | ||
| Line 248: | Line 254: | ||
| ===== Backup ===== | ===== Backup ===== | ||
| - | |||
| - | * TODO: NAS mount | ||
| ==== Service ==== | ==== Service ==== | ||
| Line 393: | Line 397: | ||
| git -C '/ | git -C '/ | ||
| + | |||
| + | exit | ||
| + | |||
| + | ===== Indexer ===== | ||
| + | |||
| + | sudo su ' | ||
| + | |||
| + | cd '/ | ||
| exit | exit | ||
/var/www/wiki/data/attic/servers/linux/nginx/dokuwiki.1767253603.txt.gz · Last modified: by Sean Rhone
