PHP Notice: Undefined index: HTTP_HOST

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
HTF
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sun Jan 31, 2010 11:59 am

PHP Notice: Undefined index: HTTP_HOST

Post by HTF » Mon Oct 17, 2011 8:49 am

Hello,

Could you please help me with the following error message from my web server logs:
FastCGI sent in stderr: "PHP Notice: Undefined index: HTTP_HOST in /web/joomla/libraries/joomla/environment/uri.php on line 153"
Joomla: 1.5.22

Is this error related to the Joomla or to the web server configuration?

User avatar
bradm
Joomla! Explorer
Joomla! Explorer
Posts: 369
Joined: Tue Apr 19, 2011 1:58 pm
Location: Virginia Beach, Va
Contact:

Re: PHP Notice: Undefined index: HTTP_HOST

Post by bradm » Mon Oct 17, 2011 2:35 pm

Hi HTF,

When I googled the error, I did get a few hits, but nothing that seems 100% will resolve the issue.

Has joomla been working all along for you, or are you installing it for the first time? Also, it if was working, have you made any changes recently?
Please let me know if I can help any further.
Thanks, BradM, with http://www.inmotionhosting.com Support

HTF
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sun Jan 31, 2010 11:59 am

Re: PHP Notice: Undefined index: HTTP_HOST

Post by HTF » Mon Oct 17, 2011 9:32 pm

Hi,

Thank you for reply. This error was caused by 'Nagios' which monitoring this web server.

Regards

nori tarou
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue May 10, 2011 1:51 am

Re: PHP Notice: Undefined index: HTTP_HOST

Post by nori tarou » Fri Oct 21, 2011 12:59 am

I've got the same problem. HTF, can you elaborate more about 'Nagios' thing and how to solve this error message??

HTF
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sun Jan 31, 2010 11:59 am

Re: PHP Notice: Undefined index: HTTP_HOST

Post by HTF » Fri Oct 21, 2011 6:33 am

nori tarou wrote:I've got the same problem. HTF, can you elaborate more about 'Nagios' thing and how to solve this error message??
Hi,

Yes, sure;)

My default stanza for 'check_http' command was:

Code: Select all

# 'check_http' command definition
define command{
        command_name    check_http
        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
        }
- so there was an '-I' option for the IP

You can change this to indicate hostname with '-H' option or just simply add option with your domain name to your service definition:

Code: Select all

define service{
        use                             local-service
        host_name                  domain.com
        service_description      HTTP
        check_command         check_http!domain.com
        notifications_enabled   1
        }
I hope this will help.

Regards


Locked

Return to “General Questions/New to Joomla! 1.5”