2011-02-28 98 views
3

下面是我在unoconv命令以apache身份運行時得到的錯誤,並且它的根工作正常。unoconv命令以apache身份運行時出錯

[[email protected] apache]# sudo -u apache unoconv -f pdf /var/www/html/testing/example.xlsx 

creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
creation of executable memory area failed: Permission denied
Error: Unable to connect or start own listener. Aborting.

+0

這是通過更改代碼中的主變量 – Raghunath 2011-03-14 12:07:58

+0

解決我有同樣的問題,我無法解決它。你能幫我改變家庭變量嗎? – fawad 2012-11-14 14:36:22

回答

6

好吧,這可能是一個愚蠢的方法來解決,但在這裏不用...

在東西的工具鏈想要一個主目錄。 Apache的用戶沒有主目錄。

我的Apache2運行爲www-data

所以:

mkdir /home/www-data 
chown www-data:www-data /home/www-data 

瞧!沒有更多的錯誤。

如果我是一個真正的怪胎,我會進一步修復工具鏈上的問題,但我不是那樣。

+0

我正在使用不同的用戶,並且出現相同的錯誤。你能幫我麼? – fawad 2012-11-14 14:30:08

+0

保存我的一天,我開始絕望,關於如何使用libreoffice headless在沒有X的情況下工作,並且unoconv看起來不工作,這取決於用戶的服務器上的pdfs?!? Thx太多了! – joelhoro 2013-06-09 19:45:57

相關問題