gazman99 — 2011-03-23T12:32:37-04:00 — #1
Im trying to migrate a php application from an windows 2k3 server to an amazon's AWS EBS instance, which is windows 2008 Datacenter with IIS7.
I have office installed on the instance and the relevant permissions assigned to the office powerpoint DCOM object.
My problem is that DCOM object gets instantiated ok, but cannot open or save files.. i get the following error 'Source: Microsoft Office PowerPoint 2003 Description: Presentation.SaveAs : An error occurred while PowerPoint was saving the file.'
This is the code im testing:
$ppoint = new COM("PowerPoint.application") or die("Unable to instantiate PowerPoint");
//Add a slide
//Get the name of this slide
$slidename = $slide->Name();
//Change the name of this new slide
$slide->Name = "New Slidename";
//Save the presentation
anthonysterling — 2011-03-23T13:30:06-04:00 — #2
Does the COM process user have sufficient access rights to the wwwroot folder ? Have you tried saving it elsewhere to see if permissions maybe an issue ?
gazman99 — 2011-03-23T13:35:43-04:00 — #3
Yes I have tried multiple locations, with the 'everyone' and the iis user set to full control.
Im thinking, is this an AWS issue, in the way it brings the EC2 operating system and EBS storage together. Or does that generally act just like any other webserver.
I forgot to mention i upgrade PHP in process from 3.5.2 -> 3.5.6... if that makes a difference.
gazman99 — 2011-03-25T06:23:42-04:00 — #4
I ended reverting back to an windows 2003 server with IIS6 installed.
I assigned the "Launch IIS process account" permission to the ppt dcom object and bam it works.
Im probably missing a tickbox somewhere on windows 2008, but from my little experience with windows2008 /iis7.... alot seems to be locked down as default.