Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to execute an external p

Status
Not open for further replies.

CajunCenturion

Programmer
Mar 4, 2002
11,381
US
I'm trying to execute an external program from Apache/PHP, and the PHP scrips hangs up on the exec command.

Details:
Windows 2008 R2, Apache 2.4, and PHP 5.2.17
The executable was building Visual FoxPro 9.0, SP2.
The exe currently resides in the Windows\System32 directory. It's only there for now to try to take permissions out of the equation.

The topic has been address in the PHP forum: thread434-1683454

Since the program executes as expected when run directly from the command line, and also executes as expected by PHP as follows:
c:\>php script.php
I can't help but wonder if there is something amiss with the Apache config. Apache is currently configured to log in as Administrator in hopes to take any permission issues out of play.

Any help graciously appreciated.

--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886
Wise men speak because they have something to say, fools because they have to say something. - Plato
 
The problem has been solved. It turns out is was a combination of a corrupt DLL, permissions, and an invalid Foxpro resource file.



--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886
Wise men speak because they have something to say, fools because they have to say something. - Plato
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top