{"id":3647,"date":"2015-02-13T12:54:29","date_gmt":"2015-02-13T11:54:29","guid":{"rendered":"http:\/\/blog.unelink.es\/?p=3647"},"modified":"2019-10-25T14:21:22","modified_gmt":"2019-10-25T12:21:22","slug":"cpanel-your-whm-server-is-configured-with-ip-address-x-x-x-x-and-has-a-misconfigured-hostname-this-misconfiguration-can-cause-some-services-on-your-server-to-not-restart-properly","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/cpanel-your-whm-server-is-configured-with-ip-address-x-x-x-x-and-has-a-misconfigured-hostname-this-misconfiguration-can-cause-some-services-on-your-server-to-not-restart-properly\/","title":{"rendered":"cPanel: Your WHM server is configured with IP address X.X.X.X and has a misconfigured hostname. This misconfiguration can cause some services on your server to not restart properly"},"content":{"rendered":"<p>Puede que en alguna ocasi\u00f3n vuestro\u00a0cPanel os env\u00ede un mensaje como el siguiente:<\/p>\n<p>\"<em>Your WHM server is configured with IP address X.X.X.X\u00a0and has a misconfigured hostname. This misconfiguration can cause some services on your server to not restart properly. The cause of your misconfiguration is:<\/em><\/p>\n<p><em>WHM has detected a manual hostname change.<\/em><\/p>\n<p><em>To fix this problem, we recommend that you perform the following action:<\/em><\/p>\n<p><em>Update your hostname in WHM\u2019s (https:\/\/XXX.unelink.net:2087\/scripts2\/changehostname) interface (Home \u00bb Networking Setup \u00bb Change Hostname).<\/em>\"<\/p>\n<p>Esto puede ser solucionado de dos formas:<\/p>\n<p>1.\u00a0Dentro de vuestro WHM buscad la opci\u00f3n \"Cambiar el nombre de host\" y acceder a ella:<\/p>\n<div id=\"attachment_7272\" style=\"width: 504px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-nombre-host.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7272\" class=\"wp-image-7272 size-full\" title=\"Cambiar nombre host\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-nombre-host.jpg\" alt=\"Cambiar nombre host\" width=\"494\" height=\"362\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-nombre-host.jpg 494w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-nombre-host-300x220.jpg 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/a><p id=\"caption-attachment-7272\" class=\"wp-caption-text\">Cambiar nombre host<\/p><\/div>\n<p>En esta opci\u00f3n ten\u00e9is\u00a0la posibilidad de cambiar el hostname de vuestro servidor. Si veis\u00a0que el hostname es\u00a0correcto, tan solo deb\u00e9is\u00a0pulsar el bot\u00f3n \"Change\" para se\u00a0guarden de nuevo los cambios y se realicen todas las acciones necesarias.<\/p>\n<div id=\"attachment_7274\" style=\"width: 662px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7274\" class=\"wp-image-7274 \" title=\"Cambiar nombre de host\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host.jpg\" alt=\"Cambiar host\" width=\"652\" height=\"163\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host.jpg 834w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host-300x75.jpg 300w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host-768x192.jpg 768w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2015\/02\/cambiar-host-600x150.jpg 600w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><p id=\"caption-attachment-7274\" class=\"wp-caption-text\">Cambiar host<\/p><\/div>\n<p>Una vez realizado el cambio o la confirmaci\u00f3n del hostname, ten\u00e9is que acceder a vuestro servidor por\u00a0SSH y ejecutar el siguiente comando:<\/p>\n<pre>\/usr\/local\/cpanel\/scripts\/check_valid_server_hostname<\/pre>\n<p>Si, una vez realizados estos pasos, todav\u00eda recib\u00eds el email con el aviso, pod\u00e9is seguir las siguientes instrucciones.<\/p>\n<p>2. En esta otra opci\u00f3n cambiaremos el hostname desde una conexi\u00f3n SSH a vuestro servidor.<\/p>\n<p>Para ello, ejecutad los siguientes comandos en el terminal:<\/p>\n<pre>hostname\r\nnuevonombre.miservidor.com\r\ngrep HOST \/etc\/wwwacct.conf\r\nHOST antiguonombre.miservidor.com<\/pre>\n<p>Donde en \"nuevonombre\" y \"antiguonombre\" ten\u00e9is que indicar el\u00a0nuevo y el anterior hostname, y en \"miservidor.com\" el nombre de vuestro servidor.<\/p>\n<p>Esperamos que esto os ayude a solucionar este aviso de cPanel.<\/p>\n","protected":false},"excerpt":{"rendered":"Puede que en alguna ocasi\u00f3n vuestro\u00a0cPanel os env\u00ede un mensaje como el siguiente: \"Your WHM server is configured with IP address X.X.X.X\u00a0and has a misconfigured hostname. This misconfiguration can cause some services on your server to not restart properly. The cause of your misconfiguration is: WHM has detected a manual hostname change. To fix this problem, we recommend that you&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/cpanel-your-whm-server-is-configured-with-ip-address-x-x-x-x-and-has-a-misconfigured-hostname-this-misconfiguration-can-cause-some-services-on-your-server-to-not-restart-properly\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":7272,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[121,456,349,6],"tags":[68],"class_list":["post-3647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-panel-cpanel","category-sistema","category-ssh","category-wiki","tag-cpanel","cat-121-id","cat-456-id","cat-349-id","cat-6-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/3647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=3647"}],"version-history":[{"count":12,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/3647\/revisions"}],"predecessor-version":[{"id":7275,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/3647\/revisions\/7275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media\/7272"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=3647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=3647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=3647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}