Re: Apache2 restart from PHP ?

2008-10-30 Thread Jeff Dickison
On Thu, 30 Oct 2008, Leszek wrote: > Helo, > > I'm using debian etch and try to use exec command from php to restart > apache2. I wrote a bash script.sh witch contain line like this: > > /etc/init.d/apache2 restart > > and added line > www-data ALL = (root) NOPASSWD: /var/www/script.sh > > When I

Apache2 restart from PHP ?

2008-10-30 Thread Leszek
Helo, I'm using debian etch and try to use exec command from php to restart apache2. I wrote a bash script.sh witch contain line like this: /etc/init.d/apache2 restart and added line www-data ALL = (root) NOPASSWD: /var/www/script.sh When I do: 1. # su www-data 2. $ /var/www/script.sh apache re