How to use Cron Jobs as user apache?

Tertsi

Verified User
Joined
Mar 2, 2007
Messages
39
I need to execute some php scripts as the default php user (in my case apache) using crontab/Cron Jobs or else they won't work properly.

Is there a way to make the Cron Jobs of a DA User be executed as the user apache?

Can I manually use crontab without the Cron Jobs interface?

It would also help if you told me where some of the crontab related files are.
 
I now made a file called apache to the folder /var/spool/cron with the desired cron jobs but a script that I wanted to get executed every min (* * * * * command) was executed about 20 minutes after I had ordered it and hasn't executed since and the execution time was less than 1 second.
 
Last edited:
I've got it sort of resolved as in I still can't execute scripts every minute but I don't need to and it works fine otherwise so I don't need any help anymore.
 
Back
Top