Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (daudvegas, Dunny, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/09/07
Posts: 193
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
capnbob 7
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#129416 - 06/27/06 10:24 PM 6.5.4 - subscriptions error
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
I am getting this when cron runs the subscriptions.php file:

Code:

/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 1: ?php: No such file or directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 2: /aquota.group: Permission denied
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 20: anon_ftp/: is a directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 22: //: is a directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 23: syntax error near unexpected token `'/var/www/vhosts/site/httpdocs/forum/includes/main.inc.php''
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 23: ` require ('/var/www/vhosts/site/httpdocs/forum/includes/main.inc.php');'



Running threads 6.5.4 on apache 2.0.54, php 5.0.4 and mysql 4.1.14

Any idea what gives?
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129417 - 06/28/06 03:40 AM Re: 6.5.4 - subscriptions error
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
looks strange. Maybe a binary upload and not ASCII ? Whitspaces in the first line ? In Line 23 you have in front ` ' and at end ' '

/edit: can it be that your server is running on Windows? I found some hints that this can occurs when you have not the propper rights for this directory. With Google I found this. http://moodle.org/mod/forum/discuss.php?d=39549


Edited by Zarzal (06/28/06 03:54 AM)
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#129418 - 06/28/06 12:12 PM Re: 6.5.4 - subscriptions error
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
Thank you zarzal

It's not a windows server, it's Linux 2.6.8-022stab056.1-enterprise. I took a subscriptions file I know that works on another site and I still get the same issue:

Code:


/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 1: ?: No such file or directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 2: /aquota.group: Permission denied
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 20: psa/: is a directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 22: //: is a directory
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 23: syntax error near unexpected token `"/var/www/vhosts/site/httpdocs/forum/includes/main.inc.php"'
/var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php: line 23: ` require ("/var/www/vhosts/site/httpdocs/forum/includes/main.inc.php");'




I'm not sure what the problem might be, I'm guessing it's server-related.
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129419 - 06/28/06 05:14 PM Re: 6.5.4 - subscriptions error
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Yes, seems to be the server itself. What happen ich you try to put another php script in this directory and execute it? phpinfo for example. Is this executed or not ?

If not you can try to delete the whole cron subdirectory and recreate it. Can you check the server error log?
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#129420 - 06/28/06 06:38 PM Re: 6.5.4 - subscriptions error
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
A couple dumb questions...
1. How are you accessing the file (through cron, the exact line).
2. What user is executing the crontask? (root, "allena", etc)
3. Is the user who is executing the crontask the same user who owns the site?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#129421 - 06/29/06 11:39 AM Re: 6.5.4 - subscriptions error
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
The file will execute if I run it from the browser (tho it times out, it still sends me email).

I have two cron tasks set to run it, one with root, one with the site's admin user acct. Both return the same errors.

right now, the cron task is:

15 * * * * /var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php

I set it in the plesk control panel, so I really don't know what the exact language is, but basically at the 15th minute of every hour it's supposed to run (at the 45th minute the other instance runs all with the same error messages emailed to me).

I may contact the web hosts or I just may upgrade them to v7.
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129422 - 06/29/06 04:05 PM Re: 6.5.4 - subscriptions error
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Allen, again, what happen if you put a phpinfo file in this directory? Can you call it from there without errors or give it errors too?

create a file called info.php and put the following in it:
<?
phpinfo();
?>

Upload it to the /cron/php directory and try to execute it with the browser.
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#129423 - 06/29/06 04:24 PM Re: 6.5.4 - subscriptions error
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
Sorry, forgot to say the phpinfo works fine, and reports the same path as I have entered into plesk to link to the subscriptions.php file.
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129424 - 06/29/06 04:27 PM Re: 6.5.4 - subscriptions error
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
This is very strange. If your web hoster can find anything it would be nice to hear what it was for reference.
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#129425 - 06/29/06 06:28 PM Re: 6.5.4 - subscriptions error
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
Allen, login to SSH as root and run:
php /var/www/vhosts/site/httpdocs/forum/cron/php/subscriptions.php

and see if it works (just drop that into the command line and hit enter).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Running ads
by Jeffdag
05/17/12 01:47 PM
Forum Stats
10484 Members
36 Forums
33834 Topics
181678 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image