PHP CentOS OpenOffice 无头
我有一个来自 mediatemple 的(dv)服务器,运行 CentOS。
我正在尝试使用 php shell_exec 将 .doc 或 .ppt 转换为 .pdf 文件
在搜索 stackoverflow 和数十个站点后,我通过 ssh 在 root 下运行此命令。
yum install openoffice.org-headless
然后我跑了,soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
我认为应该在服务器上无头运行它。
我一直遇到这个错误。
# javaldx: Could not find a Java Runtime Environment!
如何安装这个 Java 运行时环境,然后我应该使用什么 shell_exec 命令?
任何帮助表示赞赏。
I have a (dv) server from mediatemple running CentOS.
I am trying to convert .doc or .ppt to .pdf files using php shell_exec
After searching through stackoverflow and dozens of sites I ran this command under root through ssh.
yum install openoffice.org-headless
Then I ran, soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
which I thought was supposed to run it headless on the server.
I keep running into this error.
# javaldx: Could not find a Java Runtime Environment!
How can I install this Java Runtime Environment and then what should I be using for the shell_exec command?
Any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要升级您的 DV。我安装 Open Office 后遇到了同样的问题。我正在运行 512MB 的虚拟服务器。我升级到 2048MB 虚拟服务器,并且能够无头运行开放式办公室,没有任何问题。
您不必安装 java 运行时,因为它已经安装了。
You might have to upgrade your DV. I was running into the same issue after I installed Open Office. I was running the 512MB virtual server. I upgraded to the 2048MB virtual server and was able to run open office headless without any issues.
You do not have to install the java runtime as it is already installed.