php-cron is still down

Status
Not open for further replies.

slane

New Member
Messages
33
Reaction score
0
Points
0
Yes, my website is back up, but the information on it is generated by daily cron jobs from which I get the following error:
bin/sh: php-cron: command not found

Can you fix please
?
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
What command you are running.. please post it there..
 

slane

New Member
Messages
33
Reaction score
0
Points
0
This is the command that has been running for months. It only stopped working this week, since chopin was brought down and restored:
php-cron -q /home/slane/public_html/adelaide/fire.php
 

slane

New Member
Messages
33
Reaction score
0
Points
0
I will try that, but why does x10hosting insist that we use php-cron for two years and then change their minds?
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
You are on chopin. and this may be related to server migration. Probably new server is running on default setting...

Staff will change them soon. :)
 

slane

New Member
Messages
33
Reaction score
0
Points
0
/bin/sh: /home/slane/public_html/adelaide/fire.php: Permission denied
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
CHMOD fire.php to 777

You can done this in cpanel file manager or FTP client...

Just change file permission to 777
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
CHMOD fire.php to 777

I would never, ever suggest someone CHMOD a script to 777

Edit/Add:

Code:
/usr/local/bin/php  -q  /home/slane/public_html/adelaide/fire.php

is the setup that works for me on Chopin
 
Last edited:

slane

New Member
Messages
33
Reaction score
0
Points
0
So you don't have a problem with *everyone* being able to edit and execute your scripts?
Interesting.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
I Don`t upload it in public_html folder...

Upload you script in etc folder... No one can access it else corn..
 

slane

New Member
Messages
33
Reaction score
0
Points
0
putting the full path to php works, but the paths are all wrong now. That's easy to fix though. Thanks.
 
Status
Not open for further replies.
Top