We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Oxwall 1.7 moved to VPS CRON error | Forum

Topic location: Forum home » Support » General Questions
Kelly
Kelly Aug 9 '14
I cannot get my cron to work after moving to a VPS on arvixe. Tried many command lines:

/usr/local/bin/php /home/xxxx/public_html/ow_cron/run.php

I have tryed
php -q  /home/xxxx/public_html/ow_cron/run.php
and
php -cron  /home/xxxx/public_html/ow_cron/run.php

I get a

Fatal error:  Class 'PDO' not found in /home/xxxx/public_html/ow_core/database.php on line 18

or a

Status: 302 Moved Temporarily
X-Powered-By: PHP/5.4.30
Set-Cookie: base_language_id=1; expires=Sat, 06-Sep-2014 21:40:01 GMT; path=/
Location: http://www.findacave.com/e500.php
Content-type: text/html

or
no such directory
or nothing.

I'm at a loss.

PDO is enabled and my php.ini is:

register_globals = Off
allow_url_fopen = On
safe_mode = Off
extension=mcrypt.so
short_open_tag = on
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

No bulk email and users/members are not logging out after 30 min. so I know it is not running. Host says

/usr/local/bin/php /home/xxxx/public_html/ow_cron/run.php command works and refers me back to Oxwall.

I Need Help! :)

Thanks Kelly
http://www.findacave.com
The Forum post is edited by Kelly Aug 13 '14
bobbi
bobbi Aug 9 '14
have you tried the commands set out here
http://docs.oxwall.org/install:cron?s[]=cron
tammy harris
tammy harris Aug 9 '14
chexk the space after the first php /usr/local/bin/php /home/kellyc/public_html/ow_cron/run.php try this /usr/local/bin/php/home/kellyc/public_html/ow_cron/run.php
Kelly
Kelly Aug 9 '14
Yes tried all that.
tammy harris
tammy harris Aug 9 '14
the /c/ looks out of place should it be in there
Kelly
Kelly Aug 9 '14
Yes it is correct. Should I get an email if the cron runs correctly? I am only getting errors or nothing.
Kelly
Kelly Aug 9 '14
Downgraded to PHP/5.3.28 with cron line:

 php -cron /home/kellyc/public_html/ow_cron/run.php

and still getting:

Fatal error:Class 'PDO' not found in /home/xxxx/public_html/ow_core/database.php on line 185
The Forum post is edited by Kelly Aug 13 '14
tammy harris
tammy harris Aug 9 '14
do you have pdo installed
Kelly
Kelly Aug 9 '14
Is it possable there is a class syntax problem in database.php when using php 5.3 and above?
Kelly
Kelly Aug 9 '14
yes pdo is installed
Kelly
Kelly Aug 9 '14
Im lost
The Forum post is edited by Kelly Aug 10 '14
tammy harris
tammy harris Aug 10 '14
i am use php 5.5.14 no problems
ross Team
ross Aug 11 '14
Kelly, have you managed to resolve your issue. I entered your website, run the cron manually, seems like everything is ok or NOT? please confirm. 
Kelly
Kelly Aug 11 '14
Well it seems to be partly now except that users are not being logged out and I get no email from the cron job indicating of success.
Kelly
Kelly Aug 11 '14
Added the line print("Cron Job Complete"); to the end of run.php and am now getting:

Cron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job CompleteCron Job Complete

:) Well now I know its running!

Why are Members not being logged out?

ross Team
ross Aug 11 '14
Members have been logged out by Cron, after being inactive for 30 minutes, which is means Cron jobs are configured improperly
Kelly
Kelly Aug 12 '14
Cron jobs are configured improperly? Ok, what configuration should I look at if members are not being logged out? The cron command in cpanel seems to be working.

php -q /home/kellyc/public_html/ow_cron/run.php
Kelly
Kelly Aug 13 '14

In ow_cron/run.php the following jobs are being loaded :


BASE_Cron::runBASE_Cron::dbCacheProcess

BASE_Cron::mailQueueProcess

BASE_Cron::deleteExpiredOnlineUserProcess

BASE_Cron::checkPluginUpdates

BASE_Cron::deleteExpiredPasswordResetCodes

BASE_Cron::resetCronFlag

BASE_Cron::rmTempAttachments

BASE_Cron::deleteExpiredCache

BASE_Cron::dropLogFile

BASE_Cron::checkRealCron

NEWSFEED_Cron::run

NEWSFEED_Cron::deleteActionSet

NEWSFEED_Cron::deleteExpired

MAILBOX_Cron::run

NOTIFICATIONS_Cron::run

NOTIFICATIONS_Cron::expireUnsubscribe

NOTIFICATIONS_Cron::deleteExpired

NOTIFICATIONS_Cron::fillSendQueue

BLOGS_Cron::run

BLOGS_Cron::imagesDeleteProcess

GROUPS_Cron::run

PHOTO_Cron::run

PHOTO_Cron::albumsDeleteProcess

PHOTO_Cron::contentIndexing

PHOTO_Cron::cleareCache

PHOTO_Cron::deleteLimitedPhotos

PHOTO_Cron::updatePhotoTags

VIDEO_Cron::run

VIDEO_Cron::thumbsCacheProcess

FORUM_Cron::run

FORUM_Cron::topicsDeleteProcess

FORUM_Cron::tempTopicsDeleteProcess

EVENT_Cron::run

EVENT_Cron::clearInvitations

BIRTHDAYS_Cron::run

VIRTUALGIFTS_Cron::run

VIRTUALGIFTS_Cron::templatesDeleteProcess

OCSGUESTS_Cron::run

OCSGUESTS_Cron::guestsCheckProcess

SHOUTBOX_Cron::run

SHOUTBOX_Cron::clearExpiredMessages

SHOUTBOX_Cron::unsuspendUsers

MOCHIGAMES_Cron::run

MOCHIGAMES_Cron::updatePlugin

MOCHIGAMES_Cron::cleanGameActivity

ANTISPAMMER_Cron::run


but they do not appear to be acted on.

tammy harris
tammy harris Aug 15 '14
ross my site is same member are not logged out for inactivity never have been in 1.53 to 1.7 
tammy harris
tammy harris Aug 15 '14
and since the update here last week i am getting logged out of oxwall site now for inactivity 
before the update here to oxwall site i could leave browser open for 48 hours and not get logged out but now i am at the 30 minutes
Pages: 1 2 3 »