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
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
2 matches
Mail list logo