Permissions issue, apache, running under WWW, does not have permissions to restart the service.
You could create a simple bash script that would check for the existance of a file and execute it. This file would be writable by WWW and would contain the command to restart the service. Using PHP, you could simply fopen() and write the command to this file.
Then, you simply cron the bash script that checks for that files existance.