Plugin Programming

rgriep

New member
Joined
Mar 1, 2005
Messages
6
I am programming a Plugin for DirectAdmin. It is working well but I have one problem.

I have to restart a service (service apf restart) on Admin Level in my Plugin. How can I do it? I tried several things like exec etc, but I dont have the root permissions.

Is there a solution?
 
Sorry, but that is not the solution. I dont want to do a reboot. From API's I know how it works. This is in PHP on Plugin Level / Admin.

It is to restart a service that is not runned by DA.

Normally it will be a command like :

exec("service apf restart");

But as Admin in a Plugin, DA doesnt have the root permissions.
 
Back
Top