Hello,
Your issues working with OpenOffice, the most common source is SELinux, just try to stop it and try again. Or maybe your server is missing these libraries: libxt6 and libxrender1; please install both and try again.
About LibreOffice, you need to create the .config folder in the HOME path of the user and give 777 access. To know which folder is it, you can print it using PHP. And also grant config SELinux to be able to run external apps.
Regards.