PDA

View Full Version : "fsockopen(): unable to connect"


Arbok9782
6-15-05, 01:35 PM
Trying to set up a Search function for my site, and I keep getting the following error:

"Details: fsockopen(): unable to connect to www.tohokingdom.com:80
Line number: 256"

I was asked by the person who created and maintained the script to ask the host why they don't allow requests to be made on port 80, but I was wondering if perhaps someone had some insight into this problem who might be familiar with it.

Thanks in advance.

mitchind
6-15-05, 04:48 PM
Not sure why a search script needs to open a socket, but I guess that's up to you and your developer.

That being said, I don't know much about the fsockopen command - but if it's anything else like the other file commands here at powweb then you can try to replace the "www." in the hostname with "localhost."

RTH10260
6-15-05, 07:18 PM
Trying to set up a Search function for my site, and I keep getting the following error:

"Details: fsockopen(): unable to connect to www.tohokingdom.com:80
Line number: 256"Comments only:
As mitchind mentioned, this is a loopback to your very own website using http. This doesn't work since Powweb introduced clustering. The suggested 'localhost' or 'localhost.tohokingdom.com' workaround may work, I will be looking forward to your report.

Arbok9782
6-19-05, 04:24 PM
Comments only:
As mitchind mentioned, this is a loopback to your very own website using http. This doesn't work since Powweb introduced clustering. The suggested 'localhost' or 'localhost.tohokingdom.com' workaround may work, I will be looking forward to your report.

"Aborting spider...
Error level: 8
Details: Undefined index: localhost.tohokingdom.com
Line number: 256"

Got that error with both "localhost" and "localhost.tohokingdom.com". :(

mitchind
6-19-05, 04:31 PM
Looks like it's doing something now - you're not getting the "unable to connect" message anymore are you?

Arbok9782
6-19-05, 06:03 PM
Looks like it's doing something now - you're not getting the "unable to connect" message anymore are you?

I only get that error (fsockopen(): unable to connect) if I use "Host". If I insert "localhost", "tohokingdom.com", "localhost.tohokingdom.com", etc. I get the above error.

mitchind
6-19-05, 07:32 PM
Hard for me to guess without seeing name of script or any installation instructions - but always willing to take a shot in the dark :o

It kind of sounds like a configure problem with the script, now - perhaps you have to have a specific domain listed as a starting index point for the search?

Have you asked the author? You seemed to be talking to him at the start of this thread...

RTH10260
6-19-05, 11:33 PM
Details: Undefined index: localhost.tohokingdom.comDo you need to tell the Search the correct name for the index file (eg index.html, index.php or alike) ?

Arbok9782
6-20-05, 05:14 PM
Hard for me to guess without seeing name of script or any installation instructions - but always willing to take a shot in the dark :o

It kind of sounds like a configure problem with the script, now - perhaps you have to have a specific domain listed as a starting index point for the search?

Have you asked the author? You seemed to be talking to him at the start of this thread...
You can download the script here, if you are willing and interested, http://www.greywyvern.com/orca

I will see about talking with the author again to see if he can provide anymore advice.

Do you need to tell the Search the correct name for the index file (eg index.html, index.php or alike) ?
Doesn't mention that in the instructions, will take a look through the files to see if I see a likely spot where something like that should go.