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/12 12:10] – external edit 127.0.0.1 | dokuwiki:pikvm:setup_on_pikvm [2023/04/15 14:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| -rw-r--r-- 1 root root 5331 Apr 11 16:09 php-fpm.conf | -rw-r--r-- 1 root root 5331 Apr 11 16:09 php-fpm.conf | ||
| -rw-r--r-- 1 root root 72933 Apr 3 06:02 php.ini | -rw-r--r-- 1 root root 72933 Apr 3 06:02 php.ini | ||
| + | ``` | ||
| + | |||
| + | 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 | ||
| ``` | ``` | ||
| Line 48: | Line 71: | ||
| 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 193: | 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 212: | 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 244: | 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 272: | 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.1681294210.txt.gz · Last modified: by 127.0.0.1