Re: shell_exec

From: Date: Thu, 07 Aug 2003 12:16:24 +0000
Subject: Re: shell_exec
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-158641@lists.php.net to get a copy of this message
In article <02de01c35c2a$ea4fb560$256fa8c0@ACERP240001>, rgreen@trayerproducts.com says... > > > > > 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 > > Check whether the user that the webserver runs as has appropriate permissions in the relevant directory? -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#158641) next »