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.

Cron Jobs Issues

Discussion in 'E-mail Discussions' started by hamuskinny, Mar 3, 2014.

  1. hamuskinny

    hamuskinny Registered

    Joined:
    Mar 3, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Guys, first post here. Not sure if this is the right place to post but here it goes.

    I have a number of cron jobs which suddenly stopped running. I get notifications when crons are run, but since I get so many of them i have to admit I don't check them all the time. When i went back and checked the mails, there were no new notifications. After checking my junk mail i see those missing notification. Instead of the normal mail which shows the response of the cron, the body of the mail contains a viagra spam email!

    I checked the cron logs and it shows my php files are getting called but after testing none of them are actually running. I have to assume that something is hijacking my cron job and calling a hacker file each time a cron is run.

    Maybe this explanation is too vague, but i would appreciate any help on where they could possibly have modified my code.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    First, check to make sure "crond" is started with a command such as:

    Code:
    service crond restart
    Next, check the integrity of the PHP scripts that are called with the cron jobs. Make sure they are the original PHP files and have not been altered to produce malicious content.

    Thank you.
     
  3. hamuskinny

    hamuskinny Registered

    Joined:
    Mar 3, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I did that already but think i see the issue now. Doesn't look like cpanel issue. Please close this thread.
     
Loading...

Share This Page