By chrisblackwell on
No matter what I do I seem to get this error being sent as a result from the cron job. The cron is running in Drupal but I still receive this error:
--00:55:01-- http://domain.com/cron.php
Resolving domain.com... 206.125.216.252
Connecting to domain.com|206.125.216.252|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
cron.php: Permission denied
Cannot write to `cron.php' (Permission denied).
Comments
change permission to 755
i was running into this problem on several sites, too. after many hours i switched the permissions for cron.php to 755 and it worked.
have you tried changing the permissions?
Mark Sanders
Q Collective
Mark Sanders
Q Collective
Is that safe to have the
Is that safe to have the permissions set to 755?
Cheers,
Chris Blackwell
Xray Sierra Inc.
Where the fuck should I do this
Should I literally break open my computer with a hammer and see if I see something labeled cron.php and then take a marker and write chmod 755 cron.php on it?
Why is something writing to
Why is something writing to cron php? You should not have to have cron.php as 755. It should work fine as 644.
not writing, executing
cron.php is not being written to. it's being executed by an anonymous user; the server. chmod 755 doesn't allow anyone to write to this file but execute it.
Mark Sanders
Q Collective
Mark Sanders
Q Collective
Cron Error Problem
Hi there!
Everytime I run cron I get an error of one page that exists at my webserver. The page is located at a different folder not at the same folder where's cron.php
As you can figure... I can't send newsletters because they are sended with cron.
I've seen the cron.php content and it only have this:
What can I do?
Thanks,
Luis
I was pondering this for some
I was pondering this for some time before I had a sudden realisation whilst falling asleep.
wget will output what it retrieves into a file of the same name in the directory the command is being executed from. e.g. if you run wget http://example.com/cron.php, it will try to write the stream it gets to cron.php. This can result in a 'cannot write to cron.php' error, depending on directory permissions.
Instead, try this:
wget -O /tmp/cron http://example.com/cron.php
where /tmp is a temporary folder with 666 permissions.
This will force the output of wget to save to /tmp/cron each time, and will avoid the 'cannot write to cron.php' error.
Jack
Or better yet, use wget -q
Or better yet, use
wget -q http://example.com/cron.php
--quiet (supress wget output altogether)
--
Web: http://digitalfrontiersmedia.com
Cell: 941.773.2036
Phone: 941.677.DFM1 ( 941.677.3361 )
Skype: DigitalFrontiersMedia
Twitter: DigitalFrontier
--