LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2007, 10:23 AM   #1
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Rep: Reputation: 16
Are these linux or app errors?


Two error_log errors I can't figure out. I posted this on some other forums but was told to try linux as some feel these are linux errors.

First error;

[client 192.168.1.74] PHP Notice: Undefined index: HTTP_HOST in /var/www/html/index.php on line 28

The line at position 28 in index.php is;

$http_host = explode(':', $_SERVER['HTTP_HOST'] );

Client 74 is actually an LVS load balancer. It connects to the site constantly to make sure the web server is running. I'd love to figure out why this error is showing up though?

The second error;

[Thu Jul 12 12:38:37 2007] [error] [client 192.168.1.200] File does not exist: /var/www/html/relativepath, referer: http://www.domain.com/index.php?opti...&id=2&Itemid=1

I simply cannot find a solution on this anywhere on the net. Perhaps someone could guide me with a few questions to figure out a starting point?

Mike
 
Old 07-21-2007, 11:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the HTTP_HOST header is used to know which website is to be served. with apache and IIS etc.. you can have site1.com, site2.com etc... and so the web server needs to know what site to give, which is obtained from the http_host header, normally taken from http://www.site1.com/some/page but if you are monitoring with LVS then you're probably not forming a url at all, just sending the string "GET /" to the http port, without any HTTP_HOST or other http headers in it. often that's not a *problem* as there's only one site or something, but the host header is required as part of the formal definition, so it is a legitimate complaint. PHP warning levels can be tuned to remove this, ( http://uk3.php.net/errorfunc ) but if possible, monitor the site better in the first place.

the other one seems very self explanatory... does it exist?

Last edited by acid_kewpie; 07-21-2007 at 11:06 AM.
 
Old 07-22-2007, 05:00 PM   #3
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Original Poster
Rep: Reputation: 16
First, thanks for the input.

>but if you are monitoring with LVS then you're probably not >forming a url at all, just sending the string "GET /" to the >http port, without any HTTP_HOST or other http headers in it.

Correct. Snip from lvs.cf;

virtual HTTP {
active = 1
address = 192.168.1.150 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server cweb92 {
address = 192.168.1.92
active = 1
weight = 0
}
server cweb93 {
address = 192.168.1.93
active = 1
weight = 0
}
server cweb94 {
address = 192.168.1.94
active = 1
weight = 0
}

***snip***

>often that's not a *problem* as there's only one site or >something, but the host header is required as part of the >formal definition, so it is a legitimate complaint. PHP >warning levels can be tuned to remove this, ( >http://uk3.php.net/errorfunc ) but if possible, >monitor the site better in the first place.

What do you mean by monitor the site better? Also, the error along with LVS constantly hitting the web servers are creating HUGE logs. I'd love to not log the LVS server hits to the web servers.

>the other one seems very self explanatory... does it
>exist?

Sorry, again, not sure here, does what exist? If it were self explanatory to me, I would have fixed it .

Mike
 
Old 07-22-2007, 05:19 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i mean send fully valid http headers, not just a crude GET.




Quote:
>the other one seems very self explanatory... does it
>exist?

Sorry, again, not sure here, does what exist? If it were self explanatory to me, I would have fixed it .
your error message clearly states a file does not exist. in those exact words. which you pasted yourself.
 
Old 08-04-2007, 04:39 PM   #5
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Original Poster
Rep: Reputation: 16
>i mean send fully valid http headers, not just a crude >GET.

Still don't know what that means but I'll research it, I'm sure I'll find an answer.

>your error message clearly states a file does not exist. >in those exact words. which you pasted yourself.

I don't get people like you. Why do you even bother replying to anyone if you're going to have attitude? I already know the freaking file is missing but I've already explained what's going on.

Please, don't bother replying, I'll find someone who actually will help.

Lordy, the net is just getting weirder all the time.
 
Old 08-05-2007, 10:51 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you seriously don't get forums do you? if you keep asking the same question despite useful information which others would say suitably answers your repeated question, then either you're not reading it or you don't understand it. if it's the former, then take your time to actually read the answer, and if it's the latter, ask for further clarificcation. in your case, you have your own error which tells you that a certain file, the name of which is printed right there, was requested and not found. what's to not understand? what else am i supposed to tell you??
 
Old 08-05-2007, 12:56 PM   #7
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Original Poster
Rep: Reputation: 16
>you seriously don't get forums do you?

Gee, let's see. I started online in the BBS days, I'm guessing I've got a sense of how forums work, it's the people that have changed.

When someone is really trying to help someone, they don't just keep repeating the obvious in a negative tone as you have been. Why bother helping if you're going to have attitude?

>if you keep asking the same question despite useful information >which others would say suitably answers your repeated question,

Your help has not been helpful, at all, I've already told you what is going on and you keep repeating the things I know. If you really care to help, then stop acting like some king shit god know it all and ask me a few questions that will help me to give you ADDITIONAL information so that you can actually help me.

>in your case, you have your own error which tells you that a >certain file, the name of which is printed right there, was >requested and not found. what's to not understand? what else am i >supposed to tell you??

Maybe you should re-read my post. Like I said, I don't care to be helped by someone who's just trying to make me feel crappy for not knowing something. I've been building freaking networks for the last 20 years, I don't act like an ass when someone is wanting to learn or figure something out. Sometimes it's very obvious, sometimes it's not. In this case, it's not. We can't know everything under the sun.

Thanks for your help, I'll keep looking for an answer or repost this.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange X errors when running any app with a GUI bruno321 Ubuntu 3 03-12-2007 09:29 AM
Lots of errors when running an app with sudo bruno321 Ubuntu 2 02-23-2007 04:21 AM
Errors when starting Java app on Fedora Core 3 sxa Linux - Software 6 06-21-2006 06:38 PM
Xlib errors when trying to open graphical app from command line, 9.1 Personal Baddox SUSE / openSUSE 4 09-21-2005 11:31 PM
ncurses and ncursed-dev are present but the App install throws errors? ServerStorm Linux - Software 16 01-05-2005 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration