eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Common Questions > Cronjobs

Cronjobs All the questions related to our cronjobs.

Reply
 
Thread Tools Display Modes
Old 07-03-2007   #1
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Arrow Help with cron jobs

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
kbeaty is offline   Reply With Quote
Old 07-03-2007   #2
John Turner
eSyndicat Support Team
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

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.
John Turner is offline   Reply With Quote
Old 07-03-2007   #3
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Arrow Cron jobs help

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.
kbeaty is offline   Reply With Quote
Old 07-03-2007   #4
John Turner
eSyndicat Support Team
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

Please try

Code:
/usr/bin/php -q /home/mylinkre/public_html/includes/cron.php
John Turner is offline   Reply With Quote
Old 07-03-2007   #5
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Arrow

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
kbeaty is offline   Reply With Quote
Old 07-04-2007   #6
John Turner
eSyndicat Support Team
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

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
Attached Files
File Type: zip show_root.zip (348 Bytes, 102 views)

Last edited by John Turner; 07-04-2007 at 09:40 AM.
John Turner is offline   Reply With Quote
Old 07-04-2007   #7
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Default Cron jobs help

Seem to be working now after downloading the above zip file
kbeaty is offline   Reply With Quote
Old 07-05-2007   #8
Norman Fernandez
 
Join Date: Oct 2006
Location: Chatsorth, CA
Posts: 96
Norman Fernandez is on a distinguished road
Default

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!
Norman Fernandez is offline   Reply With Quote
Old 07-10-2007   #9
braniacbrain
 
Join Date: Sep 2006
Posts: 71
braniacbrain is on a distinguished road
Default

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.
braniacbrain is offline   Reply With Quote
Old 09-19-2007   #10
tsgro
 
tsgro's Avatar
 
Join Date: Jan 2007
Posts: 73
tsgro is on a distinguished road
Default

The show_root.php changes worked for me. Thanks
tsgro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:46 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources