- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
下面是当 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/
我正在使用 unoconv 或 libreoffice 通过 PHP exec() 转换文档,odt->pdf。这个过程在我的一台服务器上非常快(大约 1 秒)。现在我有了另一个更快的服务器,这个过程
我想在 Cent OS 机器服务器上运行 unoconv 显然没有任何 GUI。 Unoconv 使用带有 -headless 参数的 OpenOffice,但它也不起作用。 我收到以下错误: /us
我以 apache 用户身份使用 unoconv 来创建 PDF 文件。作为终端用户它运行良好,但是当我作为 apache 用户运行它时。我收到错误。 sudo -u apache /usr/bin
我正在使用 unoconv转换 docx至 pdf .只要我通过文件名传递文档,一切都很好: $ unoconv -f pdf --stdout test.docx 但是一旦我使用 --stdin它不
我想从脚本 php 启动命令“unoconv”。 $command = '/usr/bin/unoconv --server localhost --port 2002 --format=pdf fi
下面是当 unoconv 命令作为 apache 运行时我得到的错误,root 运行正常。 [root@tux1 apache]# sudo -u apache unoconv -f pdf /var
如果我在终端中运行 unoconv -f pdf test_pdf.docx ,它工作正常。但是如果我在子进程中运行它,我会收到此错误 subprocess.run(['unoconv', '-f',
我正在尝试将 Word 文档转换为纯文本,但出现此错误: user@server$ unoconv --format=txt test.docx /usr/lib64/libreoffice/prog
我在 CentOS 7.3.16.11 上安装了 UNOCONV 库。当我从 CLI 运行文件转换时,它工作正常,并且我得到了 PDF 文档:unoconv -d spreadsheet --form
我在 jaunty 上安装了 openoffice headless,但 unoconv 无法通过 SSH 工作。任何想法? unoconv: UnoException during conversi
我正在使用 unoconv将不同的文件格式转换为pdf。它在我的本地机器上运行良好,适用于所有格式。但是在我的 ubuntu 12.04 服务器上 unoconv对于某些格式(例如 xls、ppt、p
我已经在我的 ubuntu 14.04 64 位中成功安装了 unoconv。 我想将 .xlsx 文件的第一页导出为 png 或 jpg 等图像。 我试过了 unoconv -l & 9998 ##
我正在执行一个简单的命令,将 excel 转换为带分号的 csv unoconv -f csv -e FilterOptions="59,34,0,1" filex.xlsx 但结果出现时带有这样的
我正在尝试使用以下 shell 脚本将 docx 文件转换为 pdf: unoconv -f pdf tempfile.docx 在 Laravel 中,我有一个 Controller 函数,我使用
我有一个使用子进程调用 unoconv 的 Django 应用程序。在我的开发环境中运行时它工作正常,但在生产环境中运行时出错。 它给出了这个错误 "unoconv: Cannot find a su
我正在尝试通过命令行使用 unoconv 通过 PHP 将 word 文档转换为 PDF。 我正在使用 Symfony Process Component通过命令行运行命令。 public funct
我有一个非常奇怪的错误。我在我的 CentOS 服务器上运行 open office,我正在尝试将用户上传的文档转换为 html。通常,该过程适用于较小的文档。但是,一旦文档大小超过 1.5MB,我们
我在php中写了下面的函数 public static function convert($originFilePath, $outputDirPath, $toFormat) { $comm
我是一名优秀的程序员,十分优秀!