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
Zarzal
old hand
Registered: 06/05/06
Posts: 1091
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
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.
Zarzal
old hand
Registered: 06/05/06
Posts: 1091
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?
Gizmo
Registered: 06/04/06
Posts: 12007
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?
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.