In order to test that our system is configured properly for PHP, we can create a very basic PHP script: we will call this script testphp.php. In order for Apache to find the file and serve it correctly, it must be saved to web root, that is located at /var/www/html/.

nano /var/www/html/testphp.php

This will open a blank file: we want to put the following text, which is valid PHP code, inside the file:

<!--?php phpinfo(); ?-->

When you are finished, save and close the file.

Now we can test whether our web server can correctly display content generated by a PHP script: using the web browser you have to visit http://[ipaddres]/testphp.php
The page that you come to should look like a test page in php.

– LibreOffice

yum install libreoffice-*

At the end pls reboot the server.

– DocMgr
Now we can install the docmgr files in /var/www/html.
Download docmgr-2.1.3.tar and copy it in /var/www/html: we have to decompress this archive.

- Final notes
DocMgr permit to edit the LibreOffice/OO file directly inline via web. But I do not like that, and it does not work well especially when the files are password-protected or with images, table and other complex stuff.

I prefer that when I click on an odt write file DocMgr start a download, not that open a editor to edit the file directly in line.

To change the behavior of docmgr you have to edit /var/www/docmgr/config/extensions.xml and comment the line open_with.