Forum Moderators: open
Trying to configure a Windows IIS 7.0 server with PHP.
PHP is installed, and is working, other than one part which is with COM objects (I'm trying to interface to MS Office).
The error I get in my browser (as well as a 500 header) is:-
ModuleFastCgiModule
NotificationExecuteRequestHandler
HandlerPHP_via_FastCGI
Error Code0x00000000
The line of code causing this is:-
new COM("powerpoint.application")
PowerPoint is installed on the server, but it appears IIS doesn't have the right permissions to access COM objects?
We think this might be sorted via component services (Computers -> My Computer -> COM+ Applications) but I've had a play in there and can't find anything which looks like a solution.
So I'm hoping an IIS 7.0 expert might be able to point me in the right direction ?
Many thanks!
Reference:
Considerations for server-side Automation of Office [support.microsoft.com]
There are no security issues as this is not a public server. It's a server behind a corporate network that takes a .ppt file and converts to JPEG images.
All working localhost with IIS 5.0. Problem appears to be IIS 7.0 which is what's on the server, so we can't deploy.
Any thoughts/pointers ?
Thanks.
As a side note another source of tools, which might be worth you looking into is from Aspose. They provide tools to access office files without requiring office installed. They have a product called slides which might give you similar results with less hassle. I have never used them outside of Dot.net but I know they offer a COM interface for them.
(Note I am a current customer of Aspose)