Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 14, 2010 1:25 am 
Offline
Newbie

Joined: Sun Mar 14, 2010 1:17 am
Posts: 2
I am a moderate level Linux user and I have a site I am trying to get some command to work on so I can get cron working. Here is the command (trying from command line):

/usr/bin/wget -O - -d http://localhost/cron.php?cron_key=turtl3

When I run this, I get a "connection refused" message.

I do have an HTTP auth user/pass set up on the server, so I also tried this:

/usr/bin/wget -O - -d http://user:pass@localhost/cron.php?cron_key=turtl3

but it doesn't work either. I have been Googleing and trying to find a way past this for a couple of hours. Any suggestions on how to troubleshoot this?


Last edited by gregstout on Sun Mar 14, 2010 1:37 am, edited 1 time in total.

Top
   
 Post subject: Solved
PostPosted: Sun Mar 14, 2010 1:36 am 
Offline
Newbie

Joined: Sun Mar 14, 2010 1:17 am
Posts: 2
Looks like if you are using HTTP auth, you need to include the IP address instead of "localhost." So, this worked:

/usr/bin/wget -O - -d http://user:pass@xx.xx.xx.xx/cron.php?cron_key=turtl3


Top
   
PostPosted: Sun Mar 14, 2010 3:37 am 
Offline
Junior Member

Joined: Mon Oct 23, 2006 12:09 am
Posts: 26
gregstout wrote:
When I run this, I get a "connection refused" message.

Are you really getting "connection refused" instead of something like "401 Unauthorized"?

If so, it sounds like your web server is not listening on the localhost (127.0.0.1) IP address, which doesn't really have anything to do with HTTP authentication.

If you are running Apache, look in your config for a "BindAddress" or "Listen" directive. If you have a specific IP(s) listed there, then Apache will only listen on those IP(s).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group