Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Running a shell script from within PHP



7:48 am on May 5, 2002 (gmt 0)

I am trying to execute a shell script by utilizing exec or system functions in PHP... I have successfully run a ls command, but am unable to get my shell script to work (we can run the script with no problems through telnet)... Any assistance would be greatly appreciated!


7:57 am on May 5, 2002 (gmt 0)

10+ Year Member

The most likely cause of your problem are insufficient privileges of the php user.
When you run the script from the telnet, are you running it as the same user as the php user?
Make sure that the php user has sufficient rights to read/write/execute or whatever your script is doing.

Featured Threads

Hot Threads This Week

Hot Threads This Month