Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Cron jobs not working on the free hosting version
Reply
 
Thread Tools Display Modes
(#11 (permalink))
Old
Junior Member
Azakaru is on a distinguished road
 
Posts: 8
Join Date: Jul 2012
Default 07-29-2012, 09:05 AM

Warning: require_once(/home/a2190618/public_html/crons/mysql.php) [function.require-once]: failed to open stream: No such file or directory in /home/a2190618/public_html/crons/cron_fivemins.php on line 22

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required '/home/a2190618/public_html/crons/mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2190618/public_html/crons/cron_fivemins.php on line 22


~Peace
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 733
Join Date: Dec 2010
Default 07-29-2012, 10:05 AM

mysql.php file is not in the downloaded package. I suppose mysql.php is generated during
installation. Were you successful in creating tables in your database during installation?
Please let me know in which folder mysql.php file is.

Last edited by grace1004; 07-29-2012 at 10:25 AM.
Reply With Quote
(#13 (permalink))
Old
Junior Member
Azakaru is on a distinguished road
 
Posts: 8
Join Date: Jul 2012
Default 07-29-2012, 02:15 PM

mysql.php is in public-html... I moved the cron_fivemins.php file in the same folder as mysql and changed the path to /mysql.php... that didn't work either :/ I manually tried to access the cron and it was all blank, no errors this time... The instalation was succesfull, no problems occured


~Peace
Reply With Quote
(#14 (permalink))
Old
Bad Karma[CORE]'s Avatar
333 - only half evil
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,476
Join Date: May 2008
Default 07-29-2012, 03:36 PM

First of all:
You do realize that browser games are not allowed? http://www.000webhost.com/includes/tos.php
Reply With Quote
(#15 (permalink))
Old
Junior Member
Azakaru is on a distinguished road
 
Posts: 8
Join Date: Jul 2012
Default 07-29-2012, 05:02 PM

of course -.-... You do realize we talked about this in the first page of the topic? C: I just want to know why it's not working... I'm not planning on running the game here


~Peace
Reply With Quote
(#16 (permalink))
Old
Junior Member
kemkokems is on a distinguished road
 
Posts: 20
Join Date: Aug 2012
Default 08-15-2012, 07:18 AM

I also have a problem with a cronjob.I am trying to setup call of duty 2 ultrastats cron job,which I managed to setup on my payed hosting,but here,I cannot.So I added a cron job via panel:

And the content of the ultrastats script which is supposed to run is:

#!/bin/sh
cd /home/myacc/public_html/stats/contrib/
php ../admin/parser-shell.php fullupdate 1 mygameftppassword
php ../admin/parser-shell.php runtotalstats

Somebody said that cron job do not work under free hosting??Is this true?If not can somebody help me make this right.
Thanks
Reply With Quote
(#17 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 733
Join Date: Dec 2010
Default 08-15-2012, 07:44 AM

Your cron job file, runparser_full.sh, is not a php file. In the control panel, the cron job
command is php -f, which means only php files are executed.

If you want to execute .sh file, you need to use crontab command on a shell mode,
which is not allowed in free hosting.

If cron jobs are working in the server where your site is hosted, you can set up
two cron jobs respectively with the 2 php files included in runparser_full.sh file.

Last edited by grace1004; 08-15-2012 at 08:12 AM.
Reply With Quote
(#18 (permalink))
Old
Junior Member
kemkokems is on a distinguished road
 
Posts: 20
Join Date: Aug 2012
Default 08-15-2012, 08:18 AM

Thanks for info.
Reply With Quote
(#19 (permalink))
Old
Junior Member
kemkokems is on a distinguished road
 
Posts: 20
Join Date: Aug 2012
Default 08-17-2012, 08:41 AM

It seems that cron job really is not working on free hosting and I got this from staff member:
Reply With Quote
(#20 (permalink))
Old
Bad Karma[CORE]'s Avatar
333 - only half evil
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,476
Join Date: May 2008
Default 08-17-2012, 06:00 PM

We are currently seeing the error message below on a number of servers and are investigating what is causing the PAM module to successfully authenticate the users
Quote:
CRON (username) ERROR: failed to open PAM security session: Success
CRON (username) ERROR: cannot set security context
As soon as the problem has been identified we will address it and the CRON functionality will be available again
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com