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.

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:
    1
    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:
    1
    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