Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cpanel Cron Job Permission Denied

Discussion in 'General Discussion' started by ijasont, Jan 27, 2005.

  1. ijasont

    ijasont Member

    Joined:
    Jul 21, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    I am trying to run:
    /bin/sh: line 1: /home/userisme/public_html/inserts/cron_user_views.php: Permission denied

    I have CHMOD set to 777. Anyone know how to make this execute?

    I have tested the script in a browser and I know there are no errors in it.

    Thank you,
     
  2. ijasont

    ijasont Member

    Joined:
    Jul 21, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    BAH! I did two things wrong

    1. set the FILE to 755
    2. use /usr/local/bin/php /home/mine/public_html/inserts/cron_user_views.php

    works like a dream!

    note the first part with the space there. That directs to PHP on your server.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice