Hello.

I am trying to restart my FTP daemon by killing it and then starting it using 
the shell_exec() function:

shell_exec('kill '.$pid );
Shell_exec does nothing by this - when i do ps -ef later, i see the daemon 
with the same pid still running.

But it did return the correct pid when i ran:

$pid = shell_exec('cat /var/myftpd.pid');

I think it cannot kill the process because it has no rights. What should be 
done to give php scripts rights to rule?

I run apache 1.3.27, php 4.3.2 on suse 8.1; Apache starts as root, switches to 
nobody...

!!! The FTP daemon cannot be started by any other user but root so idea to 
start and kill the daemon by some special apache user does not work :(

Any ideas? Why can't my dear friend PHP rule???


-- 
Best regards,
Pietuka




-- Tavs bezmaksas pasts Inbox.lv



---
Šīs ziņojums nesatur vīrusus.
Garantē Kaspersky Anti-Virus.
www.antivirus.lv


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to