在RedHad版本的linux上我的openoffice.org有问题。
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
当我更改用户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$
它显然是一个用户问题,但在我看来,所有的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
文件/ usr / bin / ooffice还包含以下内容:
#!/bin/sh
exec openoffice.org "$@"
任何帮助将非常感激。