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)

Inactive Member
Account Expired


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)

Preferred Member

10+ Year Member

joined:Feb 17, 2001
votes: 0

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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members