LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-20-2005, 01:52 PM   #1
didi86
Member
 
Registered: Jun 2004
Distribution: OpenSuSE, CentOS, Linux From Scratch
Posts: 40

Rep: Reputation: 15
manage PHP-cronjobs with apache


Does anybody know how to manage PHP-Cronjobs with an Apache web server?!?
 
Old 02-20-2005, 02:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Do you mean cron jobs that are run as the apache user?
 
Old 02-20-2005, 02:34 PM   #3
didi86
Member
 
Registered: Jun 2004
Distribution: OpenSuSE, CentOS, Linux From Scratch
Posts: 40

Original Poster
Rep: Reputation: 15
Just a PHP-Script I want to run every hour.
 
Old 02-20-2005, 04:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You don't really need apache then. Just add a crontab entry for any user that has the relevant permissions like:
15 * * * * /path/to/script.php > /var/log/myscript.log 2>&1

This assumes that you want to run it at 15 minutes past the hour.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 11:25 AM
outdated cronjobs bujecas Linux - Software 6 08-04-2005 11:24 AM
tool manage download - Software run on Apache -- please help me b:z Linux - Software 2 04-25-2005 01:53 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
facing problem with cronjobs manojthakkar Linux - General 7 12-10-2003 12:55 AM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration