Temporary files directory “/usr/share/webapps/invoiceplane/uploads/temp/mpdf//mpdf” is not writable
So … first make sure that directory exists
Then make sure the outside world cannot see that directory (check other directories in the uploads directory for examples
Now … there are sone threads on mpdf’s temporary directory:
It might help you configure a better directory than InvoicePlane’s uploads directory
I don’t know if this helps anyone or it’s relevant on all distros:
Since version 7.4 php-fpm is hardened per default and revokes read/write access on /usr (and sub-directories). Therefore it is also necessary to explicitly give permissions on /usr/share/webapps/invoiceplane directories.
Create a drop-in file for php-fpm.service.
Add and save it with the following content:
/etc/systemd/system/php-fpm.service.d/override.conf
[Service]
ReadWritePaths = /usr/share/webapps/invoiceplane/ipconfig.php
ReadWritePaths = /usr/share/webapps/invoiceplane/uploads/
ReadWritePaths = /usr/share/webapps/invoiceplane/application/logs
ReadWritePaths = /usr/share/webapps/invoiceplane/vendor/mpdf/mpdf/tmp
and since invoiceplane supports php81 change the directory to php81-fpm for the drop-in file
( and don’t copy and paste things can go wrong LOL )