By esadot on
Hi,
I've multi site up and running up to the point of cron job for sub-domains.
crontab -l:
0 * * * * /usr/local/bin/php -q /home/esadot/site.com/cron.php
0 * * * * /usr/local/bin/php -q /home/esadot/sub-domain-1.site.com/cron.php
0 * * * * /usr/local/bin/php -q /home/esadot/sub-domain-2.site.com/cron.php
Last two lines launches site.com/cron.php as opposed to sub-domain-1.site.com/cron.php (or sub domain 2). I guess it relates to the mapping (symbol link) of sub-domain-1.site.com to site.com.
The bottom line, cron job for sub domains is not working. Appreciate any help.
Regards,
Comments
Cron without Cron
Thought I would share this in case anyone else has the same problem. On a hoster that does not support CRON, can't change hosters.
Created a story like this:
Used a remote scheduler http://www.wsscheduler.com/
and the answer is
http://drupal.org/node/107347#comment-286982
The answer is still Not working
I am starting the cron under the new multisite domain,
http://www.newdomain.dom/cron.php
and the answer is - Not working, no data aggregated form the feeds.
I wonder what will happen if
I wonder what will happen if we put the cron.php in the /sites/sub... dir and use
20 */4 * * * php /home/username/public_html/sites/sub.site.com/cron.php
Lots of errors, that's what
Lots of errors, that's what happens.
I'm having the same
I'm having the same problem--but with subdomains only.
I have two multisite installations in two directories. One directory has three unique domains, domain1.com, domain2.com, domain3.com. Cron runs fine on all three.
In another directory I have domain.com, 1.domain.com, 2.domain.com, 3.domain.com. Cron only runs on domain.com.
It will run when I run cron manually, or even when I browser to 1.domain.com/cron.php. Site5, my host, says the cron jobs are running and are set up correctly in the Control Panel, but my feeds are not aggregating and the Status Report page does not reflect that cron jobs are running unless I run it manually.
cron and multisite - best solution
Does anyone know a proper solution for cron and multisite?
cron multisite
bit old, but google turned up this instead of the up-to-date and useful documentation here: http://drupal.org/node/237503 "Multisite Cron"
interesting
I fought with this problem months ago, and ultimately gave up, but I had a sudden brainstorm after reading Mike's post about inconsistent behavior. It occurs to me that maybe the difference between the multisite that works as expected and the one that does not has to do with the ownership of the databases involved. Maybe all we need to do is assign the same db user to all databases within a multisite installation folder?
I really wish I knew more about server architecture. I'm sure this stuff is completely second nature to CS types, but I've learned a lot of what I know by trial and error, and when it comes to server stuff, I'm afraid to try in many cases. Changing db owners is something I would not be afraid to try.
an idea
im newbie and never tried this:
crontab -l:
0 * * * * /usr/local/bin/php -q /home/esadot/mycrons/cron.php
and in cron.php call
http://site.com/cron.php
http://sub-domain-1.site.com/cron.php
http://sub-domain-2.site.com/cron.php
i dont know the php function that call http pages.
is this solution posible?
Zeitarbeit Weiden
This tells me the economy is actually worse than we think and there are no jobs being created just government creating money to prop itself up.Domains are not properly working.If you want to go for other job Zeitarbeit Weiden try from this site .