-
Notifications
You must be signed in to change notification settings - Fork 0
System Admin: Adding a cron entry
All email is sent using a cron script on Unix systems (including OS X) and needs to be added to the cron tables. An example is given in the INSTALL file, but the mechanics are not.
The PHP switch on this page was incorrect. It should be "/usr/bin/php -f file
"
Please check your crontab entries!!
* * * * * cd /path-to-eventum/misc; /usr/bin/php -f process_mail_queue.php
If you already have cron scripts running you don't need this - just add another entry. If you do not, then do the following:
- open a command line window and become root (using the su command)
- # cd /path-to-eventum/
- create a file called email.cron in the eventum directory (under the web server)
- copy the line above into that file
- edit the path-to-eventum AND path to php if needed
- save the file
- # crontab email.cron
- # crontab -l
you should see your crontab entry listed (and only that one). Email should now be sent.
In f.ex. Debian GNU/Linux when runing PHP5, /usr/bin/php is a (soft) link to /etc/alternatives/php which in turn is a link to /usr/bin/php5.
$ l /usr/bin/|grep php
lrwxrwxrwx 1 root root 21 2006-02-19 13:01 php -> /etc/alternatives/php*
-rwxr-xr-x 1 root root 5,4M 2006-05-04 10:52 php5*
$ file /etc/alternatives/php
/etc/alternatives/php: symbolic link to `/usr/bin/php5'
CLI (Command Line Interface) PHP have it's own php.ini
- Installation Process
- Scheduled Tasks
- Other Features Requiring System Setup
- Email Routing Script (route_emails.php)
- Note Routing Script (route_notes.php)
- Draft Routing Script (route_drafts.php)
- IRC Notification Bot (irc/eventum-irc-bot)
- Command Line Interface (cli/eventum)
- Installing on SSL (https)
- Installing with PHP on FastCGI