gpt4 book ai didi

php - unoconv 命令作为 apache 运行时出错

转载 作者:可可西里 更新时间:2023-10-31 22:15:51 26 4
gpt4 key购买 nike

下面是当 unoconv 命令作为 apache 运行时我得到的错误,root 运行正常。

[root@tux1 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.

最佳答案

好吧,这可能是一种愚蠢的绕过它的方法,但是这里......

工具链中的某些东西需要一个主目录。 Apache 的用户没有主目录。

我的 Apache2 作为 www-data 运行。

所以:

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

瞧!没有更多的错误。

如果我是一个真正的极客,我会在工具链的更上层解决问题,但我不会那样做。

关于php - unoconv 命令作为 apache 运行时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5141348/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com