I am trying to use the libreOffice library using PHP. When I run the code from the console it works fine, but when I run it via the browser it fails. The error is "Failed to create COM object `com.sun.star.ServiceManager': Access Denied".
Any way to give permissions to be able to execute that COM library? I am using an IIS server.
I have tried to do a shell_exec() but it gives the same error. I'll give you an example of the code.
<?php
//test.php
$as = shell_exec('php test_LO.php 2>&1');
var_dump($as);
<?php
//test_LO.php
$serviceManager = new COM("com.sun.star.ServiceManager");