Results 1 to 3 of 3
  1. #1

    Run PHP with Crontab - Help!

    Hey all,

    I'm having some major problems trying to run a PHP script with crontab. The script is located at I have tried multiple crontabs and none have worked. Right now it looks like this:


    When that command is entered and I ask crontab to send out an email to be with the results, I recieve this error in my email:

    /bin/sh: line 1: /usr/bin/wget: Permission denied

    I have also tried other methods, to no avail. I am using hostingzoom hosting, so I'm not sure if I need to do something with paths, or if they need to set something up. Also, I have run chmod 755 on the file crontest.php so it should be executable.

    What else to I need to do to get this script to run regularly? I have heard that I need to put some kind of line at the beginning of the crontest.php script, and also that I may need to modify the command. Any ideas? Thanks much!
    Custom Web Design Services

  2. #2
    Update - problem solved thanks to the helpful guys at ResellerZoom. I just needed to enter this cron command:

    /usr/bin/php -q /home/my_username/www/crontest.php
    Custom Web Design Services

  3. #3
    The other option would have been to use lynx (command line based web browser)
    Colocation and Dedicated Servers

  4. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts