PDA

View Full Version : Cron Permission Denied emails


Sola
01-28-2007, 01:21 AM
New setup. Been receiving Permission Denied messages (email).

What file has permission issues (chmod?)

And what should be done to fix it?

Seen this question around here, but no one seems to be posting a fix.

Thanks.

Sola
01-28-2007, 08:35 PM
Looks like I posted in a hidden section...
Or is it the weekend?
Please? Thanks.

John Turner
01-29-2007, 09:57 AM
Hi Sola,

New setup. Been receiving Permission Denied messages
(email).

Please describe your trouble in full.

Sola
01-29-2007, 05:38 PM
I set up Cron as specified. The email reports simply says "Permission Denied", giving the path.

My question is when permission is denied during a Cron process, what's the usual problem? What permission? What file requires what permission? Its probably a simple thing and I just need to know what to fix.

Site is fine. Cron is fine. It just fails due to permission issues.

Thanks.

Sola
01-30-2007, 04:24 AM
Helloooooo?

John Turner
01-30-2007, 04:35 AM
Hi Sola,

Provide me with your FTP and CPanel credentials over PM I'll try to help, and post results.

Sola
01-30-2007, 04:41 AM
I just changed the check.php file permission from 644 to 755. Maybe that's the problem. I will post back. Thanks for responding.

John Turner
01-30-2007, 05:20 AM
there isn't necessity to change permission to 755.

check your settings for 'Path in filesystem to script' in Admin Panel » Configuration » General Configuration

it should be finished with '/'

Hope it helps.

Sola
01-30-2007, 06:07 AM
The path has the / already. I tried it again and now I get this:

/home/username/public_html/ecat/cron/check.php: line 1: ?php: No such file or directory
/home/username/public_html/ecat/cron/check.php: line 2: /******: No such file or directory
/home/username/public_html/ecat/cron/check.php: line 3: etc: command not found
/home/username/public_html/ecat/cron/check.php: line 4: etc: command not found
/home/username/public_html/ecat/cron/check.php: line 5: syntax error near unexpected token `('
/home/username/public_html/ecat/cron/check.php: line 5: ` * VERSION: 2.0 (Pro Release)'

John Turner
01-30-2007, 06:11 AM
Sola,

Have read this article http://www.esyndicat.com/support/desk/knowledgebase/view/3.html

Please change your crontab command
before

/home/******/public_html/ecat/cron/check.php


must be

{PATH TO PHP} -f /home/******/public_html/ecat/cron/check.php


{PATH TO PHP} is usual /usr/local/bin/php

It might helps.

Sola
01-30-2007, 03:02 PM
Sheesh, how did I miss that bit in the command?
Thanks. That should fix it. Will get back.

John Turner
01-31-2007, 06:42 AM
You are welcome Sola.
Please feel free to ask if you'll have question.