PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 11-30-2006, 07:51 AM   #1
jigr69
Green Mole
 
Join Date: Nov 2006
Posts: 2
Unable to Spider Corporate Website

Hi there

Wondering if anybody out there could help me sort out a problem. We've recently changed servers and have gone from MySQL v4 to v5, as well as a small bump in PHP version.

Since this, I cannot Spider the website. Tracking down the error, I've landed in robots_functions.php script (based on the fact that the robots.txt file wasn't being read and displayed). It seems that the fsockopen keeps failing and returning the NOHOST status back to the calling function.

If I remove the @ symbol on line 333, I get the warnings of:
PHP Warning: fsockopen(): unable to connect to localhost:80 in /apps/chks_web/wwwroot/phpdig/admin/robot_functions.php on line 333
PHP Warning: fsockopen(): unable to connect to localhost:80 in /apps/chks_web/wwwroot/phpdig/admin/robot_functions.php on line 333
PHP Warning: fsockopen(): unable to connect to localhost:80 in /apps/chks_web/wwwroot/phpdig/admin/robot_functions.php on line 333
PHP Warning: fsockopen(): unable to connect to localhost:80 in /apps/chks_web/wwwroot/phpdig/admin/robot_functions.php on line 333

The exactly same setup works fine on a test server....

Anyone know of a workaround or bux fix?

Cheers....

PHP v4.3.9
MYSQL v5.

Last edited by jigr69; 11-30-2006 at 07:56 AM.
jigr69 is offline   Reply With Quote
Old 12-01-2006, 12:42 AM   #2
jigr69
Green Mole
 
Join Date: Nov 2006
Posts: 2
Trawling the 'net for answers to the fsockopen function, it became apparent that since it could connect to external servers, it was an internal server problem.

One of the posts on another forum suggested trying the local hosts file, as its possible that the host name isn't being resolved properly.

Bingo... It was copied from our old server to our new server which has a different IP address. It now works brilliantly again....
jigr69 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot spider my website... nodoyuna Troubleshooting 12 11-11-2005 07:32 PM
Unable to select language pack takpoli Script Installation 1 04-28-2004 11:23 AM
unable to parse url marb Troubleshooting 1 03-27-2004 02:06 AM
Updated to 1.8.0 - unable to connect to database rafarspd Script Installation 2 01-22-2004 03:39 AM
Unable to complete installation mpostle Script Installation 6 10-28-2003 07:23 PM


All times are GMT -8. The time now is 07:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.