Re: shell_exec

From: Date: Wed, 06 Aug 2003 14:56:28 +0000
Subject: Re: shell_exec
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-158486@lists.php.net to get a copy of this message
> Shell side: > - must be readable and executable by user (apache or perhaps everyone) > - suid bit work only for programs, not scripts I think > - shell can only execute cmds for which it's effective user has > sufficient permissions > > Try this (as root on webserver), if you can login as apache. > If you can't login as apache, log as a normal user (not root) > # su - apache > $ cd /path/to/script > $ ./myscript.sh > You will probably see errors here. As Juan suggested I checked /var/log/messages. The shell script I'm trying to run is a script that restarts our web content filter. In the script it removes the pid file so it will be recreated when the application is started again. The error I'm getting in the message log is "dansguardian: Error creating/opening pid file." Any ideas on what to do? Thanks for your help, Rod

« previous php.general (#158486) next »