I experienced an issue when I was trying to install hMailServer Windows Mail Server PHP Admin. I keep running into a "Failed create COM object" type of error. After some research I was able to find a solution which helped me get through the process: Verify that the user has the appropriate permissions to start the DCOM server.
1. In the Control Panel, double-click Administrative Tools, and then double-click Component Services.
2. In the Component Services snap-in, expand Computers, expand My Computer, and double-click DCOM Config.
3. In the right pane, locate the program you are trying to create.
4. Right-click the program name, and then select Properties. On the Security tab, in the Launch and Activation Permissions group box, select Customize, and then click Edit. 5. Add the user (e.g. running the IIS server) to the permissions list, and give the user the appropriate permissions. 
If this doesn't help, you can follow this guide:
PHP DCOM - Getting DCOM/COM to work with PHP in Windows XP - fixes Access Denied Error
Getting DCOM/COM to work with PHP in WIndows XP If you are getting an Access Denied error message similar to:
PHP Fatal error: Uncaught exception `com_exception` with message `Failed
to create COM object `word.application`: Access is denied. ` in
E:\Inetpub\wwwroot\tutor\com_word.php:4 Stack trace: #0
E:\Inetpub\wwwroot\tutor\com_word.php(4): com->com(`word.applicatio...`)
#1 {main} thrown in E:\Inetpub\wwwroot\tutor\com_word.php on line 4
Please note: This sample error message happens when trying to instantiate MS WORD on a system with improper permissions. In Windows:
1. Start
2. Run
3. Type "dcomcnfg"
4 Press OK
5. Expand Component Services
6. Expand Computers
7. Right click on My Computer
8. Go to Default Properties Tab
9. Make sure Enable COM Internet Services on this computer and Enable Distributed COM on this computer are checked. 10. Set Default Authentication Level to Default
11. Set Default Impersonation Level
12. Click the COM Security tab
13. Under the Access Permissions area, click Edit Limits...
14. Make sure ANONYMOUS LOGIN has remote access allowed
15. Click Add...
16. Under the "Enter object names to select" textarea enter "Everyone"
17. Give Everyone Local Access and Remote Access
18. Press Okay
19. Click Edit Default under the Access Permissions Area
20. Make sure SELF and SYSTEM have remote access
21. Also click Add... and repeat steps 16 and 17
22. Press OK
23. Under Launch and Activation Permissions click Edit Limits...
24. Make sure the Administrator user has remote launch and remote activation checked.
25. If Everyone group does not exist follow steps 16 and 17
26. Under the Everyone group allow local launch, remote launch, local activation, and remote activation.
27. Press OK 28. Click Edit Default... under Launch and Activation Permissions
29. Make sure Administrator, INTERACTIVE, and SYSTEM have remote launch and remote activation allowed.
30. Follow steps 16 and 17 to create an Everyone group
31. In the Everyone group allow local launch, remote launch, local activation, and remote activation. In PHP.ini 1. Open PHP.INI 2. search for com.allow.dcom 3. uncomment it and set it to true 4. Save and close PHP.ini Reboot PC and try your PHP again.
|