Home > Could Not > Eai 2 Error

Eai 2 Error


asked 4 years ago viewed 3104 times active 1 year ago Related 1CentOS VM with Bridged Network Vhosts Can't Be Accessed15How do you comment out a block of text in the For details and our forum data attribution, retention and privacy policy, see here current community blog chat Server Fault Meta Server Fault your communities Sign up or log in to customize apache2: Could not determine the server's fully qualified domain name, using for ServerName [Sun Sep 23 08:20:02 2007] [error] (EAI 2)Name or service not known: Cannot resolve host name cthia Join them; it only takes a minute: Sign up Error after adding vhost to httpd.conf - centos up vote 2 down vote favorite I added the following text to httpd.conf at

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

Name Or Service Not Known: Ah00547: Could Not Resolve Host Name

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.

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Since the stuff I read didn't mention the issues I discovered, either it isn't there, or I haven't yet read the right stuff. I am fortunate to have fiber optic right to the house, and have a range of fixed IP addresses. Apache Servername Polar Coordinates in sets Is it a fallacy, and if so which, to believe we are special because our existence on Earth seems improbable?

what did you do? The default file is: "NameVirtualHost * # This is the unmodified default file under /etc/apache2/sites-available ServerAdmin [email protected] DocumentRoot /var/www Options FollowSymLinks AllowOverride None Options For example, if your domain name is server.redhat.com. Back to top Apache Forum Index -> Apache Page 1 of 1 About Us Contact Us Hire Us Services Web Design Web Development Server Management Website Overhaul Portfolio Blog

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/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from ::1/128 end of

Could Not Resolve Hostname Ignoring

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 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.

This is what I posted there: As described above, I put in ServerName cthia.com as an uncommented line, in the top of apache2.conf Now, when I force reboot apache2, I get: So the http://test.chorkley.co.uk/ url works as expected, however the https://test.chorkley.co.uk/ does not. Namevirtualhost *:80 Has No Virtualhosts

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: ServerName www.y0o.nl ServerAlias www.y0o.nl y0o.nl ServerAdmin [email protected] DocumentRoot /home/admin/domains/y0o.nl/public_html ScriptAlias /cgi-bin/ /home/admin/domains/y0o.nl/public_html/cgi-bin/ UseCanonicalName OFF SuexecUserGroup admin admin CustomLog /var/log/httpd/domains/y0o.nl.bytes bytes CustomLog /var/log/httpd/domains/y0o.nl.log combined ErrorLog /var/log/httpd/domains/y0o.nl.error.log

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    localhost.localdomain localhost ::1 server.redhat.com server   localhost6.localdomain6  

At the moment it simply loads the expected webpage.

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.