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 failing - permissions?

Discussion in 'General Discussion' started by roskopfj, Apr 26, 2005.

  1. roskopfj

    roskopfj Member

    Joined:
    Dec 7, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    When I try to run cron jobs under the reseller or end user account it fails, even though the account has access to the directory. I've also got shell access enabled. For example when I run the following command from the root account it works fine, however when the scoast user tries to set up the same job in cron it fails. Any ideas? Since it works as root it's got to be a permissions problem.

    php /var/home/scoast/public_html/osm4/010/messagecron.php
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  3. roskopfj

    roskopfj Member

    Joined:
    Dec 7, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    wget will pull the page messagecron.php

    and run it as if you went to your site with a browser and ran it I asume thats what you want to do
     
Loading...

Share This Page