dokuwiki:pikvm:setup_on_pikvm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dokuwiki:pikvm:setup_on_pikvm [2023/04/11 23:51] – admin | dokuwiki:pikvm:setup_on_pikvm [2023/04/15 14:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| ```bash | ```bash | ||
| + | rw | ||
| pacman -S php-legacy-fpm dokuwiki | pacman -S php-legacy-fpm dokuwiki | ||
| systemctl enable php-legacy-fpm | systemctl enable php-legacy-fpm | ||
| Line 43: | Line 44: | ||
| ``` | ``` | ||
| - | `/ | + | We want to prepare php-fpm for larger file uploads than configured by default: |
| + | `nano / | ||
| + | ```ini | ||
| + | [...] | ||
| + | ;;;;;;;;;;;;;;;; | ||
| + | ; File Uploads ; | ||
| + | ;;;;;;;;;;;;;;;; | ||
| + | [...] | ||
| + | ; Maximum allowed size for uploaded files. | ||
| + | ; https:// | ||
| + | upload_max_filesize = 50M | ||
| + | [...] | ||
| + | ;;;;;;;;;;;;;;;;; | ||
| + | ; Data Handling ; | ||
| + | ;;;;;;;;;;;;;;;;; | ||
| + | [...] | ||
| + | ; Maximum size of POST data that PHP will accept. | ||
| + | ; Its value may be 0 to disable the limit. It is ignored if POST data reading | ||
| + | ; is disabled through enable_post_data_reading. | ||
| + | ; https:// | ||
| + | post_max_size = 50M | ||
| + | ``` | ||
| + | |||
| + | `nano / | ||
| Check the users at the top of the file: | Check the users at the top of the file: | ||
| The user for every file php has to work with is `http`, the user for the socket is different: `kvmd-nginx` | The user for every file php has to work with is `http`, the user for the socket is different: `kvmd-nginx` | ||
| + | You need to change | ||
| + | |||
| + | ```ini | ||
| + | listen.owner = kvmd-nginx | ||
| + | listen.group = kvmd-nginx | ||
| + | ``` | ||
| ```ini | ```ini | ||
| Line 192: | Line 222: | ||
| nano /etc/fstab | nano /etc/fstab | ||
| ``` | ``` | ||
| - | ``` | + | ```fstab |
| [...] | [...] | ||
| LABEL=PIPST / | LABEL=PIPST / | ||
| LABEL=PIMSD / | LABEL=PIMSD / | ||
| + | # add the following line here | ||
| UUID=a5c127c4-439a-4ab4-97c2-27c4910036c5 / | UUID=a5c127c4-439a-4ab4-97c2-27c4910036c5 / | ||
| ``` | ``` | ||
| Line 211: | Line 242: | ||
| name: DokuWiki | name: DokuWiki | ||
| description: | description: | ||
| - | icon: dokuwiki/Dokuwiki_logo.svg | + | icon: dokuwiki/lib/ |
| path: dokuwiki | path: dokuwiki | ||
| daemon: kvmd-webterm | daemon: kvmd-webterm | ||
| Line 243: | Line 274: | ||
| # try_files $uri $uri/ @dokuwiki; | # try_files $uri $uri/ @dokuwiki; | ||
| } | } | ||
| - | | + | |
| + | # Allow larger uploads (e.g. 50 MB) | ||
| + | client_max_body_size 50m; | ||
| + | | ||
| location ~ \.php$ { | location ~ \.php$ { | ||
| root / | root / | ||
| Line 271: | Line 305: | ||
| deny all; | deny all; | ||
| } # secure Dokuwiki | } # secure Dokuwiki | ||
| + | ``` | ||
| + | |||
| + | ```bash | ||
| + | systemctl restart php-legacy-fpm kvmd-nginx | ||
| ``` | ``` | ||
| Now you can open https:// | Now you can open https:// | ||
dokuwiki/pikvm/setup_on_pikvm.1681249879.txt.gz · Last modified: by admin