Cron. Operation not permitted. Part 3

Discussion in 'Free Hosting' started by aropan18, Dec 5, 2011.

Thread Status:
Not open for further replies.
  1. aropan18

    aropan18 New Member

    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    When I try to add "/usr/bin/php -f /home/aropan/public_html/update.php >> /home/aropan/public_html/logs/update.html 2>&1" every "*/15 * * * *" I get:
    Error
    /usr/bin/crontab: error renaming /var/spool/cron/tmp.XXXXVx57qN to /var/spool/cron/aropan
    rename: Operation not permitted.


    Screenshot:
    cron.JPG

    Q: Are you editing the cron jobs via cPanel or some other method?
    A: via cpanel

    Q: Are you renaming files inside your php script?
    A: No, only read, write and create files, create directory...

    I think that forbade me to add new jobs cron by limiting access to the file /var/spool/cron/aropan. Whether it has something to fix.
     
  2. cybrax

    cybrax Community Advocate Community Support

    Messages:
    764
    Likes Received:
    27
    Trophy Points:
    0
    Assuming the script works when called manually from a browser, I would hazzard that it's the Cron account lacking permission to perform the action. More of a security feature than a bug.


    Give this a try...
    Change the cron command to:

    /usr/bin/php -f /home/aropan/public_html/shunt.php


    shunt.php
    PHP:
    <?php
    $url 
    ='http://yourdomain.xyz/update.php';
    header('Location: '.$url);
    ?>
     
  3. aropan18

    aropan18 New Member

    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
  4. aropan18

    aropan18 New Member

    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    any other idea?
     
  5. xav0989

    xav0989 Community Public Relation Community Support

    Messages:
    4,467
    Likes Received:
    95
    Trophy Points:
    0
    I'll escalate your request.
     
Thread Status:
Not open for further replies.

Share This Page