+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Cron Jobs setup

  1. #1
    Elena
    Guest

    Cron Jobs setup

    In this short manual we’ll guide you through configuring cron in cPanel hosting. If your hosting account doesn't have cPanel you can configure it using ssh, which supposes you have required skills otherwise we recommend contacting your hosting helpdesk. You need it for execution different tasks like sending notifications about expired ads, removal of temporary data and other tasks. Cron sends notifications to the Administrator with reports of tasks implemented.


    1. Log into cPanel;
    2. Find and open Cron Jobs Manager:
    3. Check what is your document root path, which is necessary for setting a correct cron task. You can do it by checking the system info (Admin Panel > System Info).

    Find DOCUMENT_ROOT

    Add cron/index.php to the end of the DOCUMENT_ROOT line; you’ll get something like:

    /home/website/public_html/cron/index.php

    This is a server path to the cron file that needs to be run.

    4. Select an interval to run the cron file; we recommend setting daily midnight.

    5. Enter a command to run the cron file:

    php /home/website/public_html/cron/index.php

    In some cases you have to give an exact path to PHP in the system:

    /usr/local/bin/php

    It may be different in your system; so if you have any problems getting the right path to PHP contact your hosting helpdesk.

    You may enter your email to receive server notifications to make sure it runs properly. To disable cPanel cron notifications you have to replace your email with your account username. Emails may be helpful if you're not sure about a server path or a path to the PHP file, once cron is up and running you can disable cPanel cron notifications.

    Flynax cron file also sends email reports about tasks done, for example how many listings expired, data removed etc.
    Last edited by David; June 2, 2015 at 10:34 AM.

  2. #2
    Hi!

    I was getting this error when setting the cron job:

    (via ssh) -> PHP Fatal error: Call to a member function url() on a non-object in /var/www/vhosts/domain_name.com/httpdocs/cron/index.php on line 297

    I opened this file ...cron/index.php and changed this code:

    PHP Code:
    Only registered members can view the code
    for this one:

    PHP Code:
    Only registered members can view the code

    After that, it started to work!

    Ivan

  3. #3
    If you have same problem as Ivan, please fix it as below:

    Open cron/index.php find code and make changes

    PHP Code:
    Only registered members can view the code

  4. #4

    Cron is not configured or has not been run yet, you can find instructions here

    I've changed but still there is an error in admin


    $update_link = $details_link = RL_URL_HOME;
    $reefless
    $details_link .= $reefless -> url('listing', $listing);
    }


    and this

    global $rlDb, $rlActions, $rlSmarty, $rlCategories, $rlListings, $config, $pages, $statistics, $reefless;

  5. #5
    Hello, I was trying to set up a cron job for the first time and am running into the issue. It reposrts the following:
    <b>Parse error</b>: syntax error, unexpected '&', expecting T_VARIABLE or '$' in <b>/homepages/42/d557186969/htdocs/includes/classes/reefless.class.php</b> on line <b>806</b><br />
    If I -just to test it- change the source code it goes over it and halts at the next obstacle:
    <b>Parse error</b>: syntax error, unexpected '=', expecting ')' in <b>/homepages/42/d557186969/htdocs/includes/classes/reefless.class.php</b> on line <b>1005</b><br />
    I did not try any further.

    The install I have is a new 4.4 installation after having had troubles with the upgraded 4.3 -> 4.4 site.
    I have however imported the old database.
    Any ideas?
    Last edited by Rainer Schwartz; June 29, 2015 at 03:51 PM. Reason: easier to read

  6. #6
    Hello

    Yesterday I received this error

    PHP Fatal error: Call to a member function getProfile() on a non-object in /var/www/vhosts/domain_name.net/httpdocs/cron/index.php on line 587

    Fatal error: Call to a member function getProfile() on a non-object in /var/www/vhosts/domain_name.net/httpdocs/cron/index.php on line 587

    Regards

  7. #7
    Hello Jose,

    Would you please send ftp access to my PM and I will check and solve it ASAP.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    From my hosting hepldesk received this : To create a cron job you should first specify which cron file should be used for this purpose as I currently see 2 files:

    Code:
    /public_html/domainname.com/plugins/shoppingCart/cron.php
    /public_html/domainname.com/plugins/payAsYouGoCredits/cronAdditional.php


    Further more you should note that when setting up a cron job the time for executing such action should not be less than 30 minutes.
    How to configured cron jobs?
    Thanks

  9. #9
    In my site this command worked on shell/ putty /( Assist by Valery)
    Crontab -e
    */60 * * * * /usr/bin/php5 -q /var/www/mysite/cron/index.php >/dev/null 2>&1
    (Its ubuntu and vps server - there is no cpanel. i used command prompt)

  10. #10
    Junior Member
    Join Date
    Jan 2016
    Posts
    1
    Hello,

    I am setting up the Escort Agency, but there goes something wrong in the cronjob. I get a error mail with this:

    PHP Warning: session_start(): open(/var/lib/php5/sessions/sess_hp5adsblhve7l9ae5qk5c87r26, O_RDWR) failed: Read-only file system (30) in /storage/web/public/sites/www.xxxxxxx.nl/includes/control.inc.php on line 32

    The xxxxxxx is my domain name

    How to resolve this problem?
    Thanks!

+ Reply to Thread