Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have encounter with an apache problem, when I try to restart the apache
/etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for server1.mikrotik.digitallinx.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
my /etc/hosts is
127.0.0.1 localhost.localdomain localhost
And I am going to publish the websites without hosts name and domain name.
Add server1.mikrotik.digitallinx.com next to localhost in /etc/hosts file. What is the official hostname of your system? That should be next to localhost line. For example mine looks like this because my hostname is ronalddove:
Dec 10 17:49:23 server1 avahi-daemon[3188]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 10 17:49:23 server1 avahi-daemon[3188]: Interface eth0.IPv6 no longer relevant for mDNS.
Dec 10 17:49:23 server1 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec 10 17:49:25 server1 kernel: e1000: eth0: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
Dec 10 17:49:25 server1 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 10 17:49:25 server1 kernel: eth0: IPv6 duplicate address detected!
Dec 10 17:49:27 server1 avahi-daemon[3188]: New relevant interface eth0.IPv4 for mDNS.
Dec 10 17:49:27 server1 avahi-daemon[3188]: Joining mDNS multicast group on interface eth0.IPv4 with address 67.222.140.183.
Dec 10 17:49:27 server1 avahi-daemon[3188]: Registering new address record for 67.222.140.183 on eth0.
Dec 10 18:39:24 server1 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory
izit in /etc/httpd/conf/httpd.conf? Is a big file..
I put 127.0.0.1 localhost.localdomain localhost
before <IfModule prefork.c>, but it return me error:
Starting httpd: Syntax error on line 101 of /etc/httpd/conf/httpd.conf:
Invalid command '127.0.0.1', perhaps misspelled or defined by a module not included in the server configuration
After adding the code
[root@server1 log]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
It works, but my web pages still doesn'st appear for some reason. Guys, any clues?
Anyway thanks to Bathory!
The var/log/messages still the same:
Dec 10 17:49:23 server1 avahi-daemon[3188]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 10 17:49:23 server1 avahi-daemon[3188]: Interface eth0.IPv6 no longer relevant for mDNS.
Dec 10 17:49:23 server1 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec 10 17:49:25 server1 kernel: e1000: eth0: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
Dec 10 17:49:25 server1 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 10 17:49:25 server1 kernel: eth0: IPv6 duplicate address detected!
Dec 10 17:49:27 server1 avahi-daemon[3188]: New relevant interface eth0.IPv4 for mDNS.
Dec 10 17:49:27 server1 avahi-daemon[3188]: Joining mDNS multicast group on interface eth0.IPv4 with address 67.222.140.183.
Dec 10 17:49:27 server1 avahi-daemon[3188]: Registering new address record for 67.222.140.183 on eth0.
Dec 10 18:39:24 server1 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory
I don't see any errors in error_log and your httpd.conf looks OK.
What exactly happens when you try to access your server at http://localhost
Maybe it's a SELinux problem. Try to disable it by running:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.