加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

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

发布时间:2020-12-13 17:34:00 所属栏目:PHP教程 来源:网络整理
导读:以下是当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 me
以下是当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

瞧!没有更多的错误.

如果我是一个真正的极客,我会在工具链中进一步解决问题,但我不是那样.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读