cronjob problem

S

Secret Agent

Guest
cron problem:

/bin/sh: /usr/bin/wget: Permission denied

(on reseller account).

Using CURRENT version of cpanel. What could cause this? I know wget is enabled on the server so that should not be the case. The cron of course is setup via the account's cpanel
 

sunyl

Active Member
Oct 12, 2004
37
0
156
Try to set 755 permission to /usr/bin/wget and see if it works :)

Sunyl...
 
S

Secret Agent

Guest
The client is a reseller client not a dedicated server client. I have not recieved any other complaints about cron jobs from the other share reseller clients or shared clients on the server yet.

Anyone else have any suggestions?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
As sunyl said, you need to check the file permissions on /usr/bin/wget as that's where the error indicates the problem is.
 

Silver_2000

Well-Known Member
Mar 31, 2002
337
1
318
I just started getting "/bin/sh: /usr/bin/wget: Permission denied"

The note here should have fixed it - I would love to know what changed wget to having the most restrictive permissions of ay file in that folder ...
 

gregb49

Member
Jul 30, 2007
5
0
51
Do you have to use wget? It is not enabled on my cPanel. After much trial and error, this worked for me. (This is for a Post_Man plugin under Nucleus)
Code:
php /home/digital/public_html/muppets/action.php action=plugin name=PostMan
I had been trying
Code:
php /home/digital/public_html/muppets/action.php?action=plugin&name=PostMan
where digital is my account name and muppets is a sub folder in the home directory (this is just a test site)

I don't know why this worked. Remove "?" and "&" and replace with a SPACE, but it did.

Maybe in your case, you could put this in your cPanel Cron Jobs
Code:
php /home/youraccountname/mentor/admin/cron.php
But I am not a php coder. Greg