User Tools

Site Tools


dokuwiki:pikvm:setup_on_pikvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokuwiki:pikvm:setup_on_pikvm [2023/04/12 12:10] – external edit 127.0.0.1dokuwiki: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 /etc/php-legacy/php.ini`
 +```ini
 +[...]
 +;;;;;;;;;;;;;;;;
 +; File Uploads ;
 +;;;;;;;;;;;;;;;;
 +[...]
 +; Maximum allowed size for uploaded files.
 +; https://php.net/upload-max-filesize
 +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://php.net/post-max-size
 +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 /var/lib/kvmd/pst  ext4  nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.pst-user=kvmd-pst  0 0 LABEL=PIPST /var/lib/kvmd/pst  ext4  nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.pst-user=kvmd-pst  0 0
 LABEL=PIMSD /var/lib/kvmd/msd  ext4  nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.otgmsd-user=kvmd  0 0 LABEL=PIMSD /var/lib/kvmd/msd  ext4  nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.otgmsd-user=kvmd  0 0
 +# add the following line here
 UUID=a5c127c4-439a-4ab4-97c2-27c4910036c5 /var/lib/dokuwiki ext4  nodev,nosuid,noexec,rw,errors=remount-ro,data=journal 0 0 UUID=a5c127c4-439a-4ab4-97c2-27c4910036c5 /var/lib/dokuwiki ext4  nodev,nosuid,noexec,rw,errors=remount-ro,data=journal 0 0
 ``` ```
Line 212: Line 242:
 name: DokuWiki name: DokuWiki
 description: A DokuWiki instance description: A DokuWiki instance
-icon: dokuwiki/Dokuwiki_logo.svg+icon: dokuwiki/lib/tpl/dokuwiki/images/logo.png
 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 /usr/share/webapps;             root /usr/share/webapps;
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://pikvm/dokuwiki/install.php Now you can open https://pikvm/dokuwiki/install.php
dokuwiki/pikvm/setup_on_pikvm.1681294210.txt.gz · Last modified: by 127.0.0.1