The Access is denied error is a generic PHP COM error that appears when PHP COM can't access DCOM due to user missing permissions.
First we recommend testing the script using PHP CLI mode. Please note that to use the conversion plugin based on MS Word, absolute paths and double backslashes must always be used. For example, this is correct (from the example FormatConversion/transformDocument/msword/sample_1.php included in the package):
but the following line is not valid because it uses relative paths and single backslashes:
After running this script using PHP CLI mode, please test the same using the web browser, checking that the user that is doing the conversion has the correct permissions. The generic steps to setup the correct permissions are the following:
1. In the command line put DCOMCNFG 2. Expand Console Root > Component Service > Computers, right-click on My Computer, And Select Properties 3. In the Tab COM Security > Launch and Activation Permissions Click in Edit Default 4. Add the User (Ex. IIS_IUSRS) or service 5. Check Allow Local Launch and Local Activation