Re: /api-cron/ rewrite?

80 views
Skip to first unread message

Ap.Muthu

unread,
Oct 21, 2013, 8:31:10 AM10/21/13
to Justin Kelly, SI Group
Solved the issue by using "RewriteBase /" inside teh webroot directory tag and documented it in the FAQ at:
 
The si_cron now does not generate the logs - one file each time it used to execute - not anymore.
#Simple Invoices recurrence - run each day at 1AM
0 1 * * * /usr/bin/wget -q -O - http://localhost/api-cron >/dev/null 2>&1
 
----- Original Message -----
From: Justin Kelly
To: Ap. Muthu
Sent: Monday, October 21, 2013 5:50 PM
Subject: Re: /api-cron/ rewrite?

How should .htaccess be update - what edits?

On 21 Oct 2013 17:48, "Ap.Muthu" <apm...@usa.net> wrote:
Hi Justin,
 
actually SI/api-cron does not work even if mod_rewrite is enabled unless the .htaccess or apache conf has the appropriate rewrite entries.
Kindly update .htaccess to have the correct entries for it to work.
 
I have gotten it to work on debian using:
 
crontab -e
 
and appending the lines (without the usename):
 
#Simple Invoices recurrence - run each day at 1AM
#0 1 * * * /usr/bin/wget -q "
http://si.domain.tld/index.php?module=api&view=cron"
0 1 * * * /usr/bin/wget -q "
http://localhost/index.php?module=api&view=cron"

Regards,
Ap.Muthu
apm...@usa.net
----- Original Message -----
From: Justin Kelly
To: Ap.Muthu
Sent: Monday, October 21, 2013 8:09 AM
Subject: Re: /api-cron/ rewrite?

hey ap

have updated the page - only minor edits - url format still the same

SI/api-cron

cheers

justin


On Mon, Oct 21, 2013 at 2:01 AM, Ap.Muthu wrote:
Hi Justin,

The Wiki page:
http://www.simpleinvoices.org/wiki/recurrence
seems outdated.

What is the new URL and .htaccess rewrite that needs to be used for getting cron to work?

Regards,
Ap.Muthu


Reply all
Reply to author
Forward
0 new messages