I have a web server set up on my laptop. I am building a web application which I am accessing through the local network. I have a php file which contains the following lines
I was getting this problem in doc to odf conversion using php file thorugh apache2 in Debian 10 (buster).
In browser and apche logs it shows
"Array ( [0] => javaldx failed! [1] => Warning: failed to read path from javaldx )"
I check syslog at /var/log/syslog and get following errors. which is leads to some permission and directory issue in apache's home directory.
Apr 18 02:44:53 siptrunkbgp kernel: [744789.941286] audit: type=1400 audit(1587192293.959:70491): apparmor="ALLOWED" operation="mkdir" profile="libreoffice-oopslash" name="/var/www/.config/" pid=9835 comm="oosplash" requested_mask="c" denied_mask="c" fsuid=33 ouid=33
Apr 18 02:44:54 siptrunkbgp kernel: [744789.995119] audit: type=1400 audit(1587192294.015:70492): apparmor="ALLOWED" operation="mkdir" profile="libreoffice-soffice" name="/var/www/.config/" pid=9852 comm="soffice.bin" requested_mask="c" denied_mask="c" fsuid=33 ouid=33
So I just create .config directory and give proper permission in my apache root location (/var/www) using below command.
mkdir -p /var/www/.config/libreoffice
chown -Rf www-data.www-data /var/www/.config/
This will allow apache user to create required files for conversion using libreoffice.