{"id":1874,"date":"2014-10-22T22:33:24","date_gmt":"2014-10-22T20:33:24","guid":{"rendered":"http:\/\/www.itersdesktop.com\/?p=1874"},"modified":"2015-03-04T12:20:27","modified_gmt":"2015-03-04T10:20:27","slug":"apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127-0-1-1-for-server-name-error","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2014\/10\/22\/apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127-0-1-1-for-server-name-error\/","title":{"rendered":"Apache could not reliably determine the servers fully qualified domain name using 127.0.1.1 for server name error"},"content":{"rendered":"<p>Khi kh\u1edfi \u0111\u1ed9ng apache b\u1ea1n hay g\u1eb7p l\u1ed7i sau \u0111\u00e2y.<\/p>\n<pre class=\"lang:sh decode:true\">nvntung@xps827:~$ sudo \/etc\/init.d\/apache2 restart\r\n* Restarting web server apache2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName\r\n... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName<\/pre>\n<p>Apache is one of commonly used web servers in Linux. At the time modifying\u00a0apache, you need to restart it for updating the modifications without restarting Linux. Sometimes,\u00a0we may face with the following troubleshooting:<\/p>\n<figure id=\"attachment_1927\" aria-describedby=\"caption-attachment-1927\" style=\"width: 452px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/10\/apache2-error-fqdn.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1927\" src=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/10\/apache2-error-fqdn.jpg\" alt=\"Apache2 with the error the fully qualified domain name\" width=\"452\" height=\"144\" srcset=\"https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/10\/apache2-error-fqdn.jpg 452w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/10\/apache2-error-fqdn-300x95.jpg 300w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/10\/apache2-error-fqdn-50x15.jpg 50w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a><figcaption id=\"caption-attachment-1927\" class=\"wp-caption-text\">&#8220;The fully qualified domain name&#8221; error<\/figcaption><\/figure>\n<p><span style=\"color: #2a2a2a;\">To fix that problem, you need to edit the <strong>httpd.conf<\/strong> file. Open the terminal and type,<\/span><\/p>\n<div>\n<div>\n<pre class=\"lang:ps decode:true \">sudo gedit \/etc\/apache2\/httpd.conf\r\n<\/pre>\n<p>By default <strong>httpd.conf<\/strong> file will be blank. Now, simply add the following line to the file.<\/p>\n<\/div>\n<\/div>\n<div>\n<pre class=\"lang:ps decode:true \">ServerName localhost<\/pre>\n<p>Save the file and exit from <strong>gedit<\/strong>. Finally restart the server.<\/p>\n<pre class=\"lang:ps decode:true\">sudo service apache2 restart\r\n<\/pre>\n<p>Or use the instructions:<\/p>\n<pre class=\"lang:ps decode:true\">sudo \/etc\/init.d\/apache2 restart\r\n<\/pre>\n<p>See more <a href=\"http:\/\/askubuntu.com\/questions\/256013\/could-not-reliably-determine-the-servers-fully-qualified-domain-name\">here<\/a>.\n<\/div>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Khi kh\u1edfi \u0111\u1ed9ng apache b\u1ea1n hay g\u1eb7p l\u1ed7i sau \u0111\u00e2y. nvntung@xps827:~$ sudo \/etc\/init.d\/apache2 restart * Restarting web server apache2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&hellip; <\/p>\n","protected":false},"author":2,"featured_media":1927,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[174,223,176,222],"tags":[193,294],"class_list":["post-1874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tips-tricks","category-ubuntu","category-web-programming","tag-apache","tag-web-server"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=1874"}],"version-history":[{"count":5,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1874\/revisions"}],"predecessor-version":[{"id":2011,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1874\/revisions\/2011"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media\/1927"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=1874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=1874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=1874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}