Welcome Guest, Not a member yet? Register   Sign In
problem in setting cronjobs in ci.
#1

[eluser]hardik[/eluser]
hi,

i have setup codeigniter at my server to run multiple sites. what i have done actually is
i have move application directory from system folder to root directory where system folder is there and created the folder for that directory's app.
i.e

Code:
/system
/app1
/app2
/myapp1
/myapp2

and changed the index files of the app folders so it reflects the currect files. it works perfectly my both application works fine when i run

Code:
http://example.com/myapp1/welcome/test
http://example.com/myapp2/welcome/test

both works fine.

both myapp1 and myapp2 directories has htaccess file to remove index.php from the path like this

Code:
RewriteEngine On

RewriteBase /myapp1/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

now i wanted to run cron job. so i tried both of this tutorials

http://codeigniter.com/wiki/Category:Adv...ronScript/
http://codeigniter.com/wiki/Cron_job_bootstrapper/

in my server if i run the normal php file [ -without codeigniter ] then this code works
php /home/username/public_html/testcron.php

but i want to use ci's code as many things are there which i require in cron.
and my cron controller is located in directory named crons.
so if i run

Code:
http://example.com/myapp1/crons/test/cron1

it works when i run from my browser but when i tried to use the method followed in the both the tutorial links it doesnot work
all i get is error email that 404 file not found i tried to change paths but nothing worked in both tutorials.

anyone have same kind of setup and able to run crons ?
anybody can help me regarding this issue ?

thanks for reading this much..
have a great day Smile




Theme © iAndrew 2016 - Forum software by © MyBB