Jump to content

Apache permissions to execute files


miseleigh

Recommended Posts

I'm trying to run a .bat file through php.  The exec command works just fine if I use the CLI version of PHP, but doesn't work right if I run it through Apache.  (It kind of works - I can get solitaire to run, but not a batch file containing SSH commands.  Though that batch file runs fine if I double-click it.)

 

So it looks like there's a permissions issue with Apache.  Any tips where to look for this?

Link to comment
https://forums.phpfreaks.com/topic/87045-apache-permissions-to-execute-files/
Share on other sites

Also, those ssh commands are through putty's plink utility, with commands for the router we're linking to piped in from a text file.  Maybe it's something with plink not waiting for the router's prompt before sending the piped-in commands when it's being run through Apache?  I can't think what Apache would do to change this, though, the same batch file works fine when double-clicked.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.