exec() troubles
Posted: Wed Oct 29, 2008 5:14 am
Hey guys,
Well, I have my application working wonderfully on my local server, but when I deployed it to the web server, I'm having trouble. Everything is working alright, but the exec function seems to be acting rather stupid. For example:
Returns nothing, but gives me this line in the error log:
So, I tried using absolute paths,
No difference, same error message. Not sure what to do with this. Every command I try gives me that same error. If you could give me some advice, I'd really appreciate it.
Extra info: Debian server, PHP 5, and all the commands work on command line.
Well, I have my application working wonderfully on my local server, but when I deployed it to the web server, I'm having trouble. Everything is working alright, but the exec function seems to be acting rather stupid. For example:
Code: Select all
exec('ls')
Code: Select all
sh: /ls: No such file or directory
Code: Select all
exec('/etc/ls')Extra info: Debian server, PHP 5, and all the commands work on command line.