> Source: [sk111857](https://support.checkpoint.com/results/sk/sk111857)

# sk111857 - WebUI inaccessible  after changing hostname

| Property | Value |
|----------|-------|
| Solution ID | sk111857 |
| Date Created | 2016-06-07 |
| Last Modified | 2020-02-18 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * After changing the hostname with the following command in expert mode, WebUI is no longer accessible:   
  Expert# hostname \[new_name\]  

* /var/log/messages shows httpd2 crashing:  
  Jun 7 16:52:19 2016 GW_A pm\[4574\]: Restarted  
  /web/cpshared/web/Apache/2.2.0/bin/httpd2\[17057\], count=32  
  Jun 7 16:52:19 2016 GW_A pm\[4574\]: Reaped: httpd2\[17057\]  
  Jun 7 16:52:19 2016 GW_A pm\[4574\]: Scheduled httpd2 for +4 secs  

* Running the process manually with the command below shows the following error:  
  #/opt/CPshrd-R77/web/Apache/2.2.0/bin/httpd2 -k start -f /web/conf/httpd2.conf -D FOREGROUND  

  \[Expert@GW_A:0\]# /opt/CPshrd-R77/web/Apache/2.2.0/bin/httpd2 -k start -f /web/conf/httpd2.conf -D FOREGROUND  
  \[Tue Jun 07 17:03:16 2016\] \[warn\] module setenvif_module is already loaded, skipping  
  \[Tue Jun 07 17:03:16 2016\] \[warn\] module headers_module is already loaded, skipping  
  httpd2: apr_sockaddr_info_get() failed for GW_A  
  httpd2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName  

* /config/active shows the old hostname:  
  \[Expert@GW_A:0\]# grep "hostname" /config/active  
  machine:hostname R77.30-Gaia

## Cause

The entry for the gateway's IP didn't change in /etc/hosts

\[Expert@GW_A:0\]# cat /etc/hosts  
# This file was AUTOMATICALLY GENERATED  
# Generated by /bin/hosts_xlate on Tue Jun 7 13:04:30 2016  
#  
# DO NOT EDIT  
#  
172.30.134.73 R77.30-Gaia  
127.0.0.1 localhost  
::1 localhost

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
