Problems using "at" with Apache

Posted by Alex Padgett on Server Fault See other posts from Server Fault or by Alex Padgett
Published on 2012-06-25T14:40:24Z Indexed on 2012/06/25 15:17 UTC
Read the original article Hit count: 121

Filed under:
|
|
|

I'm trying to use a PHP script to create at jobs, but when it comes time to execute the jobs, nothing seems to be happening. I've tried to output any errors to log files, but have had no luck. It seems obvious that it's a permissions issue, because when I set apache to run as my personal user, everything works fine. However, when I exec wget directly from PHP, everything works fine so it seems that apache has the correct permissions to use it. The problem appears to be when using at in conjunction with apache. So I need to find a way to make this work with apache running as its own user.

Here is the command I'm using:

echo "wget -qO- http://example.com/" | at now + 1 minute 2>&1

Any ideas?

EDIT: Apache can create the at jobs, it just seems that when they execute nothing is happening.

© Server Fault or respective owner

Related posts about linux

Related posts about apache2