Re: PHP cannot execute programs

From: Sue (Sue_at_discussions.microsoft.com)
Date: 02/19/05


Date: Sat, 19 Feb 2005 06:43:03 -0800

Thank you so much for your response.

Nothing has changed in any of the code. I agree that it must have something
to do with permissions. Winproj.exe runs fine from the command line.
CalculateProject.exe runs fine from the command line. rick.bat runs fine
from the command line. But for some reason, the PHP code that could call it
before (and has not changed) cannot call it now. I have verified that the
username that is used in the code has execute permission for all three
applications in IIS and at the file level. Also the directories they are in.
 where do i correct "the user to access the assembly is now denied access"?

"Kristofer Gafvert" wrote:

> Hi,
>
> There seems to be some change in the permissions, and that the user to
> access the assembly is now denied access. You would most likely get the
> same error message if you run this as a stand-alone application with the
> same user as is used by your webapplication.
>
> Verify that you are still using the same user account for your
> webapplication, as you used before this started to happen. If you do, it
> does not seem to be a problem with IIS, but more of a programming problem
> (related to security). I would recommend you to post to a programming
> newsgroup, or possibly a MSProject newsgroup for faster and better help.
>
> Good Luck!
>
> --
> Regards,
> Kristofer Gafvert
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Sue wrote:
>
> >
> > If I am in the wrong place, please redirect me.
> >
> > I have Windows Server 2003. The application is written in PHP and I am
> > running IIS.
> > At one point in the application, PHP calls another program and passes a
> > parameter. Until today, this has been working fine (very slow, but
> working).
> > The command is:
> > PHP: $callcmd="rick.bat" plus the project name
> > rick.bat calls CalculateProject.exe
> > CalculateProject.exe is a VB program that launches MS Project
> (WINPROJ.exe).
> > (yeah, I know it is ugly, but it will work until i get it re-written)
> >
> > Today PHP is working just fine EXCEPT where it calls the other program.
> It
> > does not run the executable and I get this message back:
> >
> > Unhandled Exception: System.IO.FileLoadException: Access is denied:
> > 'Interop.MSProject, Version=4.3.0.0, Culture=neutral,
> PublicKeyToken=null'.
> > File name: 'Interop.MSProject, Version=4.3.0.0, Culture=neutral,
> > PublicKeyToken=null' ---> System.UnauthorizedAccessException: Access is
> > denied. at Project1.Module1.Main()
> >
> > The only thing I can think of that has changed is that I have attempted
> to
> > install Visual Studio .NET. I think that the prerequisites that I
> installed
> > may have changed my IIS settings, possibly upgraded IIS.
> >
> > I have gone thru what I can think of to make sure that the user has
> > security, but i would like to have any information including all the
> places
> > that i need to check for security, just in case there is something that I
> > missed.
>



Relevant Pages

  • RE: no OWA
    ... have the correct permissions was the "inetpub" folder. ... Correct the settings in IIS: ... click to check the "Hide All Microsoft Services" ...
    (microsoft.public.windows.server.sbs)
  • Re: Minimum NTFS Permissions - Theres such a thing???
    ... ?2001 Microsoft Corporation. ... HOW TO: Set Minimum NTFS Permissions Required for IIS 5.0 to Work WGID:198 ... " List Folder Contents" ...
    (microsoft.public.inetserver.iis.security)
  • Re: FTP control
    ... > I would like to use NTFS security settings to control who ... I would suggest getting a third party FTP server, ... if you set quota and these permissions for that group you can ... Information Server (IIS) Web site, ...
    (microsoft.public.win2000.security)
  • Re: Minimum NTFS Permissions - Theres such a thing???
    ... ?2001 Microsoft Corporation. ... > permissions that you must have to run Internet Information Services ... > third-party applications in an IIS 5.0 environment. ... Open the properties for the %systemroot%\Winnt folder, ...
    (microsoft.public.inetserver.iis.security)
  • Re: ubuntu-users Digest, Vol 47, Issue 208
    ... Superuser confusion or maybe critically confused ... "Permissions" appears nowhere in Nautilus, so far as I can tell. ... I am attempting to learn to use command line. ...
    (Ubuntu)