You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I though it was permission issue. So I adapted accordingly:
My Homestead permissions: -rwxr-xr-x 1 root root 63243 Aug 18 2015 unoconv
My AWS permissions: -rwxr-xr-x 1 root root 63243 Aug 18 2015 unoconv
Then I changed my AWS group to:
-rwxr-xr-x 1 www-data www-data 63243 Aug 18 2015 /usr/bin/unoconv
Then I tried editing /etc/nginx/fastcgi_params and added this line:
// This existed, so I didn't touch it
fastcgi_param REDIRECT_STATUS 200;
// I added this line
fastcgi_param PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/node/bin
[In fact, I ended up thinking above thing is totally wrong]
Finally, I tried removing fastcgi_param REDIRECT_STATUS 200;, but nginx doesn't compile/throws a syntax error.
I am stuck on how to overcome the issue.
Update:
In /etc/init.d/php7.0-fpm, I can see PATH=/sbin:/usr/sbin:/bin:/usr/bin, but I am not sure how to fix this issue. Should I use /bin instead of /usr/bin? If I do, I get an error "Executable not found, proposed : /bin/unoconv"
Or is it permission issue?
How can I debug successfully? I'd appreciate any help! Thanks in advance
The text was updated successfully, but these errors were encountered:
The think you might need to modify is the UNO_PATH which is the path for your libreoffice installation. Hope I've helped. (I'm on CentOS, unable to tell you exactly the file routes)
It seems to me that the error codes here are all PHP error codes, and what you need to debug this is to get the actual output of Unoconv and see what error it raises.
I have a been using a library called Unoconv. (Please note that in my local ubuntu [virtualbox-homestead], it's working as expected, but not in AWS.)
This is what I call in php. And I can confirm that
/usr/bin/unoconv
exists.The initial error was:
First, I though it was permission issue. So I adapted accordingly:
My Homestead permissions: -rwxr-xr-x 1 root root 63243 Aug 18 2015 unoconv
My AWS permissions: -rwxr-xr-x 1 root root 63243 Aug 18 2015 unoconv
Then I changed my AWS group to:
-rwxr-xr-x 1 www-data www-data 63243 Aug 18 2015 /usr/bin/unoconv
Then I tried editing
/etc/nginx/fastcgi_params
and added this line:[In fact, I ended up thinking above thing is totally wrong]
And my nginx looks like this:
The error has now changed to:
The file path is changed.
Finally, I tried removing
fastcgi_param REDIRECT_STATUS 200;
, but nginx doesn't compile/throws a syntax error.I am stuck on how to overcome the issue.
Update:
In
/etc/init.d/php7.0-fpm
, I can seePATH=/sbin:/usr/sbin:/bin:/usr/bin
, but I am not sure how to fix this issue. Should I use/bin
instead of/usr/bin
? If I do, I get an error "Executable not found, proposed : /bin/unoconv"Or is it permission issue?
How can I debug successfully? I'd appreciate any help! Thanks in advance
The text was updated successfully, but these errors were encountered: