Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for
Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for
After configuring Apache on RedHat Linux 5 and CentOS 5 servers, always report an error when starting or closing:
HTTPD: apr_sockaddr_info_get() failed for XX (host name)
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
does not affect the normal start of apache though say! But it always felt like there was something wrong. Because an Apache startup process is stuck in the process
Found under the data, the original is the host name setting is not caused! Not in the/etc/HTTPD/conf/HTTPD. Set the ServerName conf so it will use the name of the host to replace, will first go to have a host defined in/etc/hosts.
. To solve this problem, set ServerName or enter your host name MYHOST in /etc/hosts, like this:
> Vi /etc/hosts
127.0.0.1 localhost.localdomain localhost XX (host name)
The command to view the hostname is: hostName
Additional errors that may occur:
Stopping HTTPD: [root@bogon xy]# service HTTPD restart
restart HTTPD: [OK]
Stopping HTTPD: [OK]
restart HTTPD: HTTPD: apr_sockaddr_info_get() failed for bogon
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Solutions:
Remove the # before ServerName from httpd.conf.
RedHat 5 with CentOS in the configuration file in/etc/HTTPD/conf/HTTPD. Conf. (this is the default operating system installation path)
Read More:
- AH00557: httpd: apr_sockaddr_info_get() failed for CentOS6.5.0
- Mac install pycurl error: python setup.py egg_info" failed with error code 1”
- Mac upgrade pip
- Failed to enable APR appears when the cmder of ubutun system in win subsystem installs Apache_ TCP_ DEFER_ ACCEPT
- How to Use Apt get Command Under Mac OSX
- Apache startup error ah00534: httpd: configuration error: more than one MPM loaded
- Caused by: java.io.IOException: APR error: -730053
- Solve the error in Ubuntu 18.04: called “net usershare info” but it failed: failed to execute child process “net”
- Mac Upgrade pip WARNING: You are using pip version 21.1.1; however, version 21.1.3 is available. You s
- Windows 10 upgrade 1803 failed because of dual hard disk!!
- 53 Command “python setup.py egg_info“ failed with error
- <info> peer_manager_handler: Connection security failed
- CONDA upgrade command: upgrade CONDA, anaconda and various packages
- pygobject pip3 upgrade problem: ERROR: Failed building wheel for pycairo
- sqoop-import ERROR tool.ImportTool: Import failed: No primary key could be found for table user_info
- Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/14/4hz051qx0wqd3
- linux docker Error Failed to get D-Bus connection: Operation not permitted
- Warning: failed to get default registry endpoint from daemon
- MySQL master-slave replication. An error is reported when starting slave. Slave failed to initialize relay log info structure from the repository
- Docker CentOS Failed to get D-Bus connection: Operation not permitted