![]() |
![]() |
![]() |
|
|
|
|
#1 |
|
Join Date: May 2007
Posts: 28
![]() |
I need help setting up my crons for Pro version 2.1.03. I followed all instruction and all went fine untill the last stop, where I have to set it up to my control panel. The full path to my php {path_to_php} is /usr/bin/php. After running the cron all crons e-mail reports saiys:
"Status: 404 X-Powered-By: PHP/4.4.6 Content-type: text/html No input file specified." Is anyone knows what i am doing wrong? Help appreciated. Last edited by kbeaty; 07-03-2007 at 10:15 AM. Reason: missing words |
|
|
|
|
|
#2 |
|
eSyndicat Support Team
Join Date: Sep 2006
Posts: 1,428
![]() ![]() ![]() ![]() |
Hi kbeaty,
Did you read this article about CRON V2.1.03 http://www.esyndicat.com/support/des...se/view/7.html your CRON command should be /usr/bin/php -f /path/to/cron.php Please pay attention in reading CRON article. |
|
|
|
|
|
#3 |
|
Join Date: May 2007
Posts: 28
![]() |
Yess I did read the help files, and I contacted my host to clarify the matter, the response they gave me were /usr/bin/php -q intead of /usr/bin/php -f, but still got the same error. the complete path I put in the crons setting is:
/usr/bin/php -q /home/mylinkre/public_html/cron.php. And when I replace the q by the f I still get the same " No input file specified." error. |
|
|
|
|
|
#4 |
|
eSyndicat Support Team
Join Date: Sep 2006
Posts: 1,428
![]() ![]() ![]() ![]() |
Please try
Code:
/usr/bin/php -q /home/mylinkre/public_html/includes/cron.php |
|
|
|
|
|
#5 |
|
Join Date: May 2007
Posts: 28
![]() |
Here is what I got through e-mail report after your suggestion:
<br /> <b>Warning</b>: main(/includes/compat.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/mylinkre/public_html/includes/config.inc.php</b> on line <b>108</b><br /> <br /> <b>Warning</b>: main(/includes/compat.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/mylinkre/public_html/includes/config.inc.php</b> on line <b>108</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening '/includes/compat.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/mylinkre/public_html/includes/config.inc.php</b> on line <b>108</b><br /> Error occured. Please see the logs or report an error to the administrator |
|
|
|
|
|
#6 |
|
eSyndicat Support Team
Join Date: Sep 2006
Posts: 1,428
![]() ![]() ![]() ![]() |
Hi there,
In compliance with Sergey's Ten directives I've implemented script. Please download attached zipped package, unzip and upload 'show_root.php' to your eSyndiCat directory and execute it via browser. For example http://my.domain/esyndicat/show_root.php Follow on screen directives. to kbeaty: I've set your CRON up. HTH Last edited by John Turner; 07-04-2007 at 09:40 AM. |
|
|
|
|
|
#7 |
|
Join Date: May 2007
Posts: 28
![]() |
Seem to be working now after downloading the above zip file
|
|
|
|
|
|
#8 |
|
Join Date: Oct 2006
Location: Chatsorth, CA
Posts: 96
![]() |
I just set up a cron to run every hour to see if i get any error messages. I hope it works!
__________________
Non Techie Trying to do some Directories! |
|
|
|
|
|
#9 |
|
Join Date: Sep 2006
Posts: 71
![]() |
OK, i followed the above using the zip file as I was also getting teh same error. When I ran the show_root file i looked at the instruction.
WHich was this: Please follow directives: Open '../includes/config.inc.php' Find code similar this define("ROOT", $_SERVER['DOCUMENT_ROOT']); Change it with following code define("ROOT", '/home/linksdud/public_html'); If your code similar this one define("ROOT", $_SERVER['DOCUMENT_ROOT'].DS); Change it with following code define("ROOT", '/home/linksdud/public_html'.DS); However I ALREADY have the following code in place: define("ROOT", '/home/linksdud/public_html'.DS); What else could be the problem please? Thanks. Error I get is this: <br /> <b>Warning</b>: main(/public_html/includes/config.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/linksdud/public_html/includes/cron.php</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: main() [<a href='function.require'>function.require</a>]: Failed opening required '/public_html/includes/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/linksdud/public_html/includes/cron.php</b> on line <b>21</b><br /> Running latest Pro version.
__________________
FREE PR4 Link Directory-LinksDude / Alvor / Algarve / RSS Submissions over 75 sites from $5 Last edited by braniacbrain; 07-10-2007 at 03:47 PM. Reason: Missed out error report. |
|
|
|
|
|
#10 |
|
Join Date: Jan 2007
Posts: 73
![]() |
The show_root.php changes worked for me. Thanks
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|