could you write down a sample?

because I' trying to use system(), exec()... from php pages but
doesn't work...

thanks!




--- In [email protected], "extra_pix_el" <[EMAIL PROTECTED]> wrote:
>
> i solved the issue using php and python. i have a python-daemon which
> opens a socket. i can then connect to the socket from php. the python
> deamon has root privileges, thus can send off shell scripts like
> killall, reboot etc.
> 
> 
> --- In [email protected], "extra_pix_el" <paede@> wrote:
> >
> > hi there, 
> > 
> > i want to do some stuff like rebooting, kill processes etc from a
> > web-interface. i'm running foxserve with apache.
> > I was able to activate cgi, but all the scripts are executed as
> > 'nobody', obviously not letting me do a reboot.
> > 
> > How can i run cgi-scripts as the root user? there's an cgi-example on
> > the acmesystems-website that reboots the fox, but does that work
> > because of boa? and apache will not let scripts to be excecuted as
root?
> > 
> > thanks for your help!
> >
>


Reply via email to