Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Default Cron php error: Solved

    Hi guys i have a problem, i cant run a cron job with php, i try with:

    -php -q -f /home/my_user/public_html/hi.php
    -php -q -f /home/my_user.com/public_html/hi.php
    -php -q /home/my_user/public_html/hi.php
    -php -q /home/my_user.com/public_html/hi.php
    -php /home/my_user/public_html/hi.php
    -php /home/my_user.com/public_html/hi.php

    With the errors: No input file specified.

    -php -q -f http://www.my_domain.com/hi.php
    -php -q -f http://www.my_domain.com/hi.php
    -php -q http://www.my_domain.com/hi.php
    -php -q http://www.my_domain.com/hi.php
    -php http://www.my_domain.com/hi.php
    -php http://www.my_domain.com/hi.php

    With the errors:
    Status: 404
    X-Powered-By: PHP/4.4.4
    Content-type: text/html
    No input file specified.

    -lynx --dump http://www.my_domain.com/hi.php and i have the error: /bin/sh: /usr/bin/lynx: Permission denied.



    And i can run the file with http://www.my_domain.com/hi.php can someone help me? Thx
    Last edited by monino; 07-12-2007 at 03:51 PM. Reason: Solved

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Default

    Solved, i am So stupid

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by monino View Post
    Solved, i am So stupid
    As you apparently figured out by now, what you quoted incorrectly
    as being errors is actually the header information generated by
    the PHP CGI binary on your system.

    If you specify the path to the CLI binary (not to be confused with the CGI),
    you won't get any of those headers echoed back to your cron report.

    A better way is to just drop the "php" command from the crontab line
    completely and go with a shebang on your script (IE: #!/usr/bin/php)

    It would also seem per the response from your script that you should
    be passing parameters to the script but did not do so.

Similar Threads & Tags
Similar threads

  1. Replies: 11
    Last Post: 12-04-2011, 04:17 PM
  2. Daily Error Email - Cron run-parts /etc/cron.daily
    By sm9 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-04-2010, 10:09 PM
  3. PHP/Cron Error -- Could not open input file:
    By partsace in forum New User Questions
    Replies: 1
    Last Post: 01-19-2010, 05:22 PM
  4. /etc/cron.daily/chkformmailver.cron Can't Locate Error
    By devellion in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-27-2005, 08:58 AM
  5. exceute PHP in CRON
    By smiglani in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-04-2004, 06:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube