The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

remove fantastico

Discussion in 'General Discussion' started by morrow95, Apr 22, 2011.

  1. morrow95

    morrow95 Well-Known Member

    Joined:
    Oct 8, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Well, I removed fantastico through some instructions I found on the net, however, there is a cron that is left over and I get this error :

    /bin/sh: line 0: cd: /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/: No such file or directory

    My /var/spool/cron/root is :

    4,19,34,49 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    30 */4 * * * /usr/bin/test -x /scripts/update_db_cache && /scripts/update_db_cache
    45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    59 1 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    29 3 * * * /scripts/upcp
    0 1 * * * /scripts/cpbackup
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    28 0 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1

    Is it safe to simply remove the entire '28 0 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1' line from the file and restart cron? I'm a little unfamiliar with how these are shown and confused about the purpose of the other parts to that line - '; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1'.

    It seems as though the second part is a completely different cron just running at the same time - is that correct? So I would change the line to '28 0 * * * /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1' line from the file and restart cron? I'm a little unfamiliar with how these are shown and confused about the purpose of the other parts to that line - '; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1'.

    Any help appreciated!
     
  2. bhd

    bhd Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    JNB ZA
    cPanel Access Level:
    Root Administrator
    Yes you can.

    All that line does is two commands:

    1. cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/
    2. run the script /usr/local/cpanel/3rdparty/bin/php cron.php (2>&1 in this case means send all STDERR messages to STDOUT - which in this case would be the email it sends you)

    As root, type crontab -e then delete the link and save. Cron will reload.
     
    #2 bhd, Apr 22, 2011
    Last edited: Apr 22, 2011
  3. epadicom

    epadicom Member

    Joined:
    Aug 30, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    login as root and type command:
    # crontab -e

    Go to this line, them remove it:
    28 0 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1

    Restart your crontab using command:
    # /etc/init.d/crond restart
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You would not have to restart crond upon editing root crontab.
     
Loading...

Share This Page