[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 04-01-2008, 02:58 PM   · #1
ScottAN
NamePros Member
 
Trader Rating: (0)
Join Date: Jun 2005
Posts: 80
NP$: 9.00 (Donate)
ScottAN is an unknown quantity at this point
Help! Strange file() issue - PHP

So I am trying to resolve an issue with my companies server status script that we use to monitor a number of servers. It checks using cron and gets the load averages for each server by using the file() command to access a server side php file that reports the load avg. ANYWAY.. I'm getting this error when accessing ONLY ONE of the servers:

Code:
PHP Warning: file(http://IPADDRESS:80/server_script.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found


Out of ~30 servers only one is causing this error. I've checked the firewall on the server causing the error and thats not the issue. I've flushed DNS on the checking server and the server causing the error. Even stranger, using

Code:
wget http://IPADDRESS:80/server_script.php


through the shell works just fine. Has anyone experienced anything like this??


Please register or log-in into NamePros to hide ads
__________________
Scott Hinrics

Image Hosting & Online Photo Albums | Free PHPbb Forums
ScottAN is offline   Reply With Quote
Old 04-02-2008, 11:05 AM   · #2
Skeeter
NamePros Member
 
Skeeter's Avatar
 
Trader Rating: (0)
Join Date: Mar 2008
Posts: 33
NP$: 0.00 (Donate)
Skeeter is an unknown quantity at this point
More info please

What kind of host is it? Windows, Linux??

Have you tried launching the script as a local admin using http://localhost/server_script.php on problem machine to rule out IP or router issues? Are you certain that the host is listening on port 80?

Just some basic troubleshooting steps. Maybe you've already tried them but it is always easy to overlook something.
Skeeter is offline   Reply With Quote
Old 04-02-2008, 03:16 PM   · #3
ScottAN
NamePros Member
 
Trader Rating: (0)
Join Date: Jun 2005
Posts: 80
NP$: 9.00 (Donate)
ScottAN is an unknown quantity at this point
Issue is resolved now thanks for the suggestions. It turned out to be a misconfiguration with httpd.conf (a mod_security issue).
__________________
Scott Hinrics

Image Hosting & Online Photo Albums | Free PHPbb Forums
ScottAN is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

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


Site Sponsors
Traffic Down Under http://www.mobisitetrader.com/ http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 07:48 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0