Results 1 to 3 of 3 Thread: Help me: Apache error : (EAI 2) Name or Service Not Known: Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode SeLLeRoNe - Andrea Iannucci DevOps Engineer - System Administrator If you need my support write me an E-Mail to [email protected] Reply With Quote 09-30-2011,06:27 AM #13 haringsrob View Profile View Forum This tutorial is only created to provide solution on how to resolve Apache Error (EAI 2) considering that everything else has been configured correctly and still the error is promted. So webmin did something and I'm trying to figure out what. https://ubuntuforums.org/showthread.php?t=952844
How do hackers find the IP address of devices? Tried a few things but noting seems to work. If you need to reset your password, click here. That is, I could see a single web page from outside the firewall.
what did you do? The default file is: "NameVirtualHost * # This is the unmodified default file under /etc/apache2/sites-available
as above, please post the actual config. Apache2 Virtual Host share|improve this answer answered Sep 28 '11 at 13:53 Carl Vancil 111 add a comment| You must log in to answer this question. Can 'it' be used to refer to a person? LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/"
These are the file contents. Did step 2 and same error as well as the original error: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName –Phill Pafford Sep 15 Name Or Service Not Known: Ah00547: Could Not Resolve Host Name Code: Starting httpd: [Fri Sep 30 11:20:37 2011] [error] (EAI 2)Name or service not known: Could not resolve host name : -- ignoring! [Fri Sep 30 11:20:39 2011] [error] (EAI 2)Name Apache Failed To Resolve Server Name For But nothing seems to work.
It's working now. You can keep your NameVirtualHost *:80 and the VirtualHost will read ServerAdmin [emailprotected] DocumentRoot /var/www/html/the_path/ ServerName the_path.example.com ErrorLog /logs/the_path.example.com-error_log CustomLog /logs/the_path.example.com-access_log common This will resolve and not trigger the error.
I managed to get my website working had to edit my users httpd.conf file IP to my local ip then i can access it. thanks Adv Reply February 21st, 2009 #2 floydwilde View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Dec 2005 Beans 24 Re: Help me: Apache error Note that names and the ip address have been changed for this post. Code:
It's probably the latter case. share|improve this answer answered Mar 26 '15 at 9:53 Adam Bubela 1,1491716 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Reboot the system now. [[email protected]~]# hostname server.redhat.com [[email protected]~]# dnsdomainname redhat.com [[email protected]~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=server.redhat.com [[email protected]~]# cat /etc/hosts 192.168.*.* www1.redhat.com server # Added by Us 127.0.0.1 localhost.localdomain localhost ::1 server.redhat.com server localhost6.localdomain6
Thank you. You are currently viewing LQ as a guest. Most are just hobbies. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
How can I tether a camera to a laptop, to show its menus and functions for teaching purposes? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the you probably could just get away with adding the hostnames to /etc/hosts for a small implementation. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.