We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

cron job | Forum

Topic location: Forum home » Support » General Questions
Chris Bezuidenhout
Chris Bezuidenhout Feb 24 '12

Quote from Ivan Hello. I think I can help on this instance. I use BlueHost as well. Here is an image of what it should look like (attached). Particular attention should be with "/ramdisk/bin/php5" (very important):

/ramdisk/bin/php5 /home7/iamforei/public_html/ow_cron/run.php

Hope this helps!
I tried this one also on bluehost but then I get the following error:
Status: 500 Internal Server Error
Set-Cookie: base_language_id=1; expires=Sun, 25-Mar-2012 09:38:02 GMT; path=/
Content-type: text/html

Chris Bezuidenhout
Chris Bezuidenhout Feb 24 '12
@Addenster I know you must by tiered of this problem but at last I have my path correct but now I get this error
/home3/Prim domain/public_html/sub dom/ow_cron/run.php: line 1: ?php: No such file or directory
/home3/Prim domain/public_html/sub dom/ow_cron/run.php: line 3: /0: Permission denied
/home3/Prim domain/public_html/sub dom/ow_cron/run.php: line 4: HDD: command not found
/home3/Prim domain/public_html/sub dom/ow_cron/run.php: line 5: syntax error near unexpected token `('
/home3/Prim domain/public_html/sub dom/ow_cron/run.php: line 5: ` * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”);'

The Forum post is edited by Chris Bezuidenhout Feb 24 '12
Chris Bezuidenhout
Chris Bezuidenhout Feb 24 '12
Okay My cron job is working fine now for other users with the same problem here is the correct string for cron job running on an apache server:
php -q /homeX/your primary domain/public_html/sub domain/ow_cron/run.php
or if you only have one domain
php -q /homeX/your primary domain/public_html/ow_cron/run.php

replace the X with your server number. To find that create a PHP file with this line in
<? phpinfo(); ?> I used info.php as the file name, upload it to your site in the root and run from your browser like this yoursite/info.php
The Forum post is edited by Chris Bezuidenhout Feb 24 '12
Antartis
Antartis Apr 23 '12
Quote from Ivan Hello. I think I can help on this instance. I use BlueHost as well. Here is an image of what it should look like (attached). Particular attention should be with "/ramdisk/bin/php5" (very important):

/ramdisk/bin/php5 /home7/iamforei/public_html/ow_cron/run.php

Hope this helps!

that works!

Josh
Josh Aug 16 '13
Hi everybody. Does getting an e-mail like this mean I config. correctly?


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0


I LOOKS like it does, but I just want any final feedback. Thanks so much!!

ross Team
ross Aug 19 '13
From where did you get such an e-mail?
Josh
Josh Aug 19 '13
OK, I guess it isn't configured correctly. You can check the attachment, I got it from my mail from Cpanel.

The command I used is: curl http://www.mywebsite.org/ow_cron/run.php

I have been having trouble setting up the CRON correctly... but I am new to all this. 


I attempted instead to run the command: wget -q -O /dev/null http://www.yoursite.com/ow_cron/run.php

To test it being correct, I went about doing a data exporter and importer. I knew that if those worked, then the CRON settings would be set correctly. For some reason I get a 500 error when running the importer. [see attachments] Then, it asks me if I want to download certain plug-ins to carry over, even though these are not plug-ins that it lists. When I attempt to download them, I get a Page not found. So, I just skip those "plug-ins" and it starts the importing process. Did it run beautifully and is my Cron is fine now? Or did it not download a back-up at all because of the error. 


I do get a "import complete" page, so then does it work after all? 

Thanks ross --

Josh 



The Forum post is edited by Josh Aug 19 '13
ross Team
ross Aug 19 '13
Well, you can try it by registering a new user? if he gets a confirmation e-mail, then cron is set up properly. 
Josh
Josh Aug 20 '13
Yeah, I made a new user with a new e-mail. I got a confirmation e-mail. Must be working Ross, thank you! 
ross Team
ross Aug 20 '13
Great!
Prisc Hatch
Prisc Hatch Aug 21 '13
I can't get this to work either. 

I followed Oxwall's directions and it didn't work.  Then I followed my hosting company's instructions which conflicted with Oxwall's and it still didn't work. Now my hosting company is telling me to contact the software developer because they can't help me. 

So what is the purpose of this and why do I need because it looks like I will not be able to get this to work at all.
ross Team
ross Aug 26 '13
Prisc, what command did hosting company recommend you to use?
Yohbaks
Yohbaks Nov 4 '13
HELP! ive been searching for the solution for this, i dont know if the cron is working or not,

-- I followed Oxwall's directions and it didn't work 

here's my configuration , I have a subdomain and macbook is my subdomain

================


the command:

curl http://macbook.mywebsite.com/ow_cron/run.php

--- ive check the path of the ow_cron/run.php where : /home3/mywebsite.com/public_html/macbook/ow_cron/run.php : is the location.

================


now ive follow the steps of oxwall and test it by creating a new user, but in verification , I did not recive the confirmation email :(


my hosting is bluehost


Ron
Ron Mar 27 '14
I'm getting a similar error ( I just set up my first oxwall instance ). So I went into oc_cron/run.php, it appears as follows.


<?phpdefine('_OW_', true);define('DS', DIRECTORY_SEPARATOR);define('OW_DIR_ROOT', substr(dirname(__FILE__), 0, - strlen('ow_cron')));define('OW_CRON', true);require_once(OW_DIR_ROOT . 'ow_includes' . DS . 'init.php');


Any ideas ? 


My error is 


syntax error, unexpected '(' on line 2 which is the define statement.


Any help would be appreciated. I like the oxwall site though, its easy.




Ron
Ron Mar 27 '14

<?php


define('_OW_', true);


define('DS', DIRECTORY_SEPARATOR);


define('OW_DIR_ROOT', substr(dirname(__FILE__), 0, - strlen('ow_cron')));


define('OW_CRON', true);


require_once(OW_DIR_ROOT . 'ow_includes' . DS . 'init.php');


ross Team
ross Mar 31 '14
remove '  in front of ( on the line where you get this syntax error
The Forum post is edited by ross Mar 31 '14
ali
ali Apr 11 '23
В Арт Академи в София, децата могат да се научат на различни техники за рисуване, керамика, крафт с полимерна глина и много други изкуствени дейности. През последните години, училището се е утвърдило като един от най-добрите центрове за изкуство за деца в София. Една от големите предимства на Арт Академи е, че децата не само могат да се забавляват, но и да учат много полезни умения като търпение, точност и творческо мислене. Децата могат да се развиват в своите умения и да изразят своята индивидуалност. В Арт Академи има и опитни учители, които ще насочат децата и ще им помогнат да развият своя талант. Всички материали и оборудване, необходими за изкуството, са на разположение в училището. Арт Академи
Pages: « 1 2 3