RESOLVED: apache not starting: FreeBSd 5.4
It is resolved. /etc/hosts file had to be amended as under: -- ::1 localhost.alfanet.com > localhost > 127.0.0.1 localhost.alfanet.com > localhost > 192.168.1.14cathy.alfa.netlocalhost -- Thanks friends, regards --- dharam paul <[EMAIL PROTECTED]> wrote: > > It seems to be a pure problem of hostname. I have > now > given the hostname 'cathy.alfa.net' in my > '/etc/hosts' > and '/etc/rc.conf' file. The contens os both the > files > are as under: > Here 192.168.1.14 is the ip of the machine running > apache. > The output of /etc/rc.conf file is confusing me > because it lists the hostname more than once. > /etc/hosts--> > --- > ::1 localhost.alfanet.com > localhost > 127.0.0.1 localhost.alfanet.com > localhost > 192.168.1.14cathy.alfa.net > > /etc/rc.conf---> > > ~ > ~ > ~ > :q! > [EMAIL PROTECTED] vi /etc/rc.conf > # -- sysinstall generated deltas -- # Thu Apr 20 > 00:45:45 2006 > # Created: Thu Apr 20 00:45:45 2006 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to > /etc/defaults/rc.conf. > # This file now contains just the overrides from > /etc/defaults/rc.conf. > defaultrouter="192.168.1.1" > hostname="cathy.alfa.net" > #hostname="[EMAIL PROTECTED]" > ifconfig_rl0="inet 192.168.1.14 netmask > 255.255.255.0" > ipv6_enable="YES" > linux_enable="YES" > moused_enable="YES" > saver="blank" > #sendmail_enable="NONE" > sshd_enable="YES" > usbd_enable="YES" > #apache_enable="YES" > squid_enable="YES" > samba_enable="YES" > #dansguardian_enable="YES" > # -- sysinstall generated deltas -- # Thu Apr 20 > 01:39:35 2006 > ifconfig_rl0="inet 192.168.1.14 netmask > 255.255.255.0" > ipv6_enable="YES" > defaultrouter="192.168.1.1" > hostname="[EMAIL PROTECTED]" > # -- sysinstall generated deltas -- # Sat Apr 22 > 23:00:07 2006 > ifconfig_dc0="inet 192.168.1.16 netmask > 255.255.255.0" > ipv6_enable="YES" > defaultrouter="192.168.1.1" > hostname="[EMAIL PROTECTED]" > # -- sysinstall generated deltas -- # Tue Apr 25 > 17:25:23 2006 > defaultrouter="192.168.1.1" > hostname="[EMAIL PROTECTED]" > --- > > Present situation is that 'apachectl start' does not > output anything as if it had been successfully > executed. But when I check with 'apachectl status' I > get following error: > Looking up localhost > Making HTTP connection to localhost > Alert!: Unable to connect to remote host. > > lynx: Can't access startfile > http://localhost/server-status > > Thanks for help please. > > > > __ > > Yahoo! India Answers: Share what you know. Learn > something new. > http://in.answers.yahoo.com > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > __ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache not starting: FreeBSd 5.4
It seems to be a pure problem of hostname. I have now given the hostname 'cathy.alfa.net' in my '/etc/hosts' and '/etc/rc.conf' file. The contens os both the files are as under: Here 192.168.1.14 is the ip of the machine running apache. The output of /etc/rc.conf file is confusing me because it lists the hostname more than once. /etc/hosts--> --- ::1 localhost.alfanet.com localhost 127.0.0.1 localhost.alfanet.com localhost 192.168.1.14cathy.alfa.net /etc/rc.conf---> ~ ~ ~ :q! [EMAIL PROTECTED] vi /etc/rc.conf # -- sysinstall generated deltas -- # Thu Apr 20 00:45:45 2006 # Created: Thu Apr 20 00:45:45 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.1.1" hostname="cathy.alfa.net" #hostname="[EMAIL PROTECTED]" ifconfig_rl0="inet 192.168.1.14 netmask 255.255.255.0" ipv6_enable="YES" linux_enable="YES" moused_enable="YES" saver="blank" #sendmail_enable="NONE" sshd_enable="YES" usbd_enable="YES" #apache_enable="YES" squid_enable="YES" samba_enable="YES" #dansguardian_enable="YES" # -- sysinstall generated deltas -- # Thu Apr 20 01:39:35 2006 ifconfig_rl0="inet 192.168.1.14 netmask 255.255.255.0" ipv6_enable="YES" defaultrouter="192.168.1.1" hostname="[EMAIL PROTECTED]" # -- sysinstall generated deltas -- # Sat Apr 22 23:00:07 2006 ifconfig_dc0="inet 192.168.1.16 netmask 255.255.255.0" ipv6_enable="YES" defaultrouter="192.168.1.1" hostname="[EMAIL PROTECTED]" # -- sysinstall generated deltas -- # Tue Apr 25 17:25:23 2006 defaultrouter="192.168.1.1" hostname="[EMAIL PROTECTED]" --- Present situation is that 'apachectl start' does not output anything as if it had been successfully executed. But when I check with 'apachectl status' I get following error: Looking up localhost Making HTTP connection to localhost Alert!: Unable to connect to remote host. lynx: Can't access startfile http://localhost/server-status Thanks for help please. __ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache not starting: FreeBSd 5.4
On Mon, 2006-05-01 at 15:14 +0100, dharam paul wrote: > Yes, it is. But the machine is meant only for local > intranet. Am I wrng to give this name? > > Regards > dp > --- Chad Brown <[EMAIL PROTECTED]> wrote: > > > > Mon May 1 00:48:28 2006] [alert] mod_unique_id: > > > unable to gethostbyname("[EMAIL PROTECTED]") > > > > is your hostname really "[EMAIL PROTECTED]"? > > type "hostname" in a shell. > > > > > It is not a host name, it is an e-mail address. If it is just an internet host name, try something like cathy.alfa.local ie without the @. Regards Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: apache not starting: FreeBSd 5.4
yes you are wrong. Read this Assigning a Host name to your FBSD system. Your FBSD operating system has internal software applications (like sendmail for one) that needs to know the fully qualified domain name of the PC it's running on. You do this by adding the option statement hostname= to /etc/rc.conf. This is the format to use. thisPCname.fakeDOMAINname.tld Where thisPCname came be any name you want to identify this particular PC on your LAN. Since the goal of this Installation Guide is to build a FBSD gateway server, the name of this PC should be gateway. Where .fakeDOMAINname can be any name you want as long as it's not a registered domain name on the public Internet (unless of course it's registered to you). Using FBSDyourlastname is a safe fake domain name to use here. So if your name was Tom Jones, you should use fbsdjones. Where .tld can be any of the standard TLD's currently in use. Such as .com or .usa or .info or .cc, but since .com is the most commonly used TLD, I recommend using .com. gateway.fbsdjones.com is a very acceptable fake host name to use. ee /etc/rc.conf and add this option statement to the file: hostname="gateway.fbsdjones.com" Save the changed file and reboot your system for your edit changes to take effect. When the reboot stops at the login prompt, the line displayed just above it will now contain your host name you just added to rc.conf. Installer Note: If you have an official registered domain name that you want to use for your email sendmail server, then use that in the hostname= statement. Example, if my registered domain name was cyberman.com then hostname=cyberman.com is what I would code. What ever hostname you use, for example gateway.fbsdjones.com, in the httpd.conf file you would use www.fbsdjones.com and you will also have to add gateway.fbsdjones.com and fbsdjones.com to /etc/hosts file because you have no private dns server. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of dharam paul Sent: Monday, May 01, 2006 10:15 AM To: Chad Brown Cc: freebsd Subject: Re: apache not starting: FreeBSd 5.4 Yes, it is. But the machine is meant only for local intranet. Am I wrng to give this name? Regards dp --- Chad Brown <[EMAIL PROTECTED]> wrote: > > Mon May 1 00:48:28 2006] [alert] mod_unique_id: > > unable to gethostbyname("[EMAIL PROTECTED]") > > is your hostname really "[EMAIL PROTECTED]"? > type "hostname" in a shell. > __ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache not starting: FreeBSd 5.4
--- Chad Brown <[EMAIL PROTECTED]> wrote: Mon May 1 00:48:28 2006] [alert] mod_unique_id: unable to gethostbyname("[EMAIL PROTECTED]") is your hostname really "[EMAIL PROTECTED]"? type "hostname" in a shell. dharam paul wrote: Yes, it is. But the machine is meant only for local intranet. Am I wrng to give this name? Regards dp If having an @ in a hostname isn't illegal, it ought to be. I can't be bothered to start searching the RFCs for you, but I fail to see how it can be legal since it would make email address parsing pretty much impossible; possibly URLs as well. Try cathyatalfa.alfanet.com or cathy-at-alfa.alfanet.com, though the atalfa/at-alfa seems pretty redundant given the rest of the domain. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache not starting: FreeBSd 5.4
Yes, it is. But the machine is meant only for local intranet. Am I wrng to give this name? Regards dp --- Chad Brown <[EMAIL PROTECTED]> wrote: > > Mon May 1 00:48:28 2006] [alert] mod_unique_id: > > unable to gethostbyname("[EMAIL PROTECTED]") > > is your hostname really "[EMAIL PROTECTED]"? > type "hostname" in a shell. > __ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache not starting: FreeBSd 5.4
Mon May 1 00:48:28 2006] [alert] mod_unique_id: unable to gethostbyname("[EMAIL PROTECTED]") is your hostname really "[EMAIL PROTECTED]"? type "hostname" in a shell. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: apache not starting: FreeBSd 5.4
[EMAIL PROTECTED] is a email address not a web server name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of dharam paul Sent: Sunday, April 30, 2006 11:50 AM To: freebsd Subject: apache not starting: FreeBSd 5.4 This is a n00b here, #apachectl configtest Syntax ok httpd-error.log reports: Mon May 1 00:48:28 2006] [alert] mod_unique_id: unable to gethostbyname("[EMAIL PROTECTED]") I am not able to understand what the problem is ServerName 127.0.0.1 (this line is uncommented) Listen 192.168.1.14:80 (This line commented or uncommented does not alter the error: Error remains : /usr/local/sbin/apachectl start: httpd could not be started I am going to use apache for the local intranet. It looks as if the host name "[EMAIL PROTECTED]" has to be changed. Please help solve the problem Thanks n regards __ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com Jiyo cricket on Yahoo! India cricket http://in.sports.yahoo.com/cricket/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
apache not starting: FreeBSd 5.4
This is a n00b here, #apachectl configtest Syntax ok httpd-error.log reports: Mon May 1 00:48:28 2006] [alert] mod_unique_id: unable to gethostbyname("[EMAIL PROTECTED]") I am not able to understand what the problem is ServerName 127.0.0.1 (this line is uncommented) Listen 192.168.1.14:80 (This line commented or uncommented does not alter the error: Error remains : /usr/local/sbin/apachectl start: httpd could not be started I am going to use apache for the local intranet. It looks as if the host name "[EMAIL PROTECTED]" has to be changed. Please help solve the problem Thanks n regards __ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com Jiyo cricket on Yahoo! India cricket http://in.sports.yahoo.com/cricket/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"