Re: "httpd: cannot determine local host name"
>> >What does "hostname -f" give you?
>> >
>>
>> Lindsay, you are absolutely correct. My hosts file is in /etc and my
>> host.conf is in /etc/apache. I typed the wrong thing on the previous
>> message (sleep deprivation...)
>>
>
>So is it fixed? You do not answer my question.
Well... in my httpd.conf file I've entered:
<virtualhost www.oneclick.com>
Serveradmin andre@oneclick.com
DocumentRoot /var/www/oneclick
ServerName oneclick
ErrorLog /var/log/apache/oneclick/error.log
TransferLog /var/log/apache/oneclick/access.log
</VirtualHost>
To answer your question here's what I get when typing the following:
> hostname
oneclick
> hostname -f
oneclick
Despite the above apache still says:
[error] Cannot resolve host name www.oneclick.com --- ignoring!
httpd: cannot determine local host name.
Use the ServerName directive to set it manually.
So I changed <virtualhost www.oneclick.com> to <virtualhost oneclick> and
rebooted, and still get this when running apache:
httpd: cannot determine local host name.
Use the ServerName directive to set it manually
At this point I have no idea what is causing the conflict.
My /etc/hosts is this, "127.0.0.1 oneclick localhost", so it appears
that's not the issue either.
Any ideas?
Thanks!
Reply to: