我的 openoffice.org 在 RedHad 版本的 linux 上有问题。
OpenOffice 已成功安装,如果我以 root 身份运行以下命令,则可以从命令行获得:
[root@s15548792 ~]# /usr/bin/ooffice "StarOffice.ServiceManager" -headless &
[1] 17321
[root@s15548792 ~]# ps | grep soffice.bin
17331 pts/0 00:00:00 soffice.bin
Run Code Online (Sandbox Code Playgroud)
当我更改用户 apache 时,我得到了这个:
[root@s15548792 ~]# su apache
bash-3.2$ /usr/bin/ooffice "StarOffice.ServiceManager" -headless &
[1] 17341
bash-3.2$ [Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
[1]+ Done /usr/bin/ooffice "StarOffice.ServiceManager" -headless
bash-3.2$ ps -u `whoami` | grep soffice.bin
bash-3.2$
Run Code Online (Sandbox Code Playgroud)
它显然是一个用户问题,但在我看来,所有的 OpenOffice.org 文件都归 apache 所有。我已经搜索了几天,主要的解决方案似乎是将 ~/.config 的所有者更改为 apache,但我不知道该怎么做。
如果在我使用 php 运行命令时有帮助,我会得到以下输出
[0] => Trying to open office... . /usr/bin/ooffice
[1] => [Java framework] Error in function createSettingsDocument (elements.cxx).
[2] => javaldx failed!
[3] => creation of executable memory area failed: Permission denied
[4] => creation of executable memory area failed: Permission denied
[5] => creation of executable memory area failed: Permission denied
[6] => creation of executable memory area failed: Permission denied
[7] => creation of executable memory area failed: Permission denied
[8] => creation of executable memory area failed: Permission denied
[9] => timeout - office could not be started
Run Code Online (Sandbox Code Playgroud)
此外,文件 /usr/bin/ooffice 包含以下内容:
#!/bin/sh
exec openoffice.org "$@"
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。
您现在可能已经解决了这个问题,但如果没有,请通过执行以下操作找出用户 apache 的主目录cat /etc/passwd | grep apache(主目录将是该行中的最后一个字段)。将此目录设置为可由用户 apache 写入。就我而言,这解决了问题(虽然我没有使用apache,但使用lighttpd,在这种情况下我必须对/var/www/执行此操作并将其设置为www-data可写)。
但是,我是服务器管理方面的新手,不知道这是否会使您的网络服务器不安全。
| 归档时间: |
|
| 查看次数: |
6755 次 |
| 最近记录: |