- Plesk for Linux
Apache cannot be started. The following error message appears in the Apache error logfile:
- on CentOS/RHEL-based distributions:
- on Debian/Ubuntu-based distributions:
CONFIG_TEXT: (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "server.example.com"
AH00016: Configuration Failed
There is no IPv4 specified for the server name in the
Connect to a Plesk server via SSH.
Add the <IPv4 hostname> pair into the file /etc/hosts by editing this file in a text editor (for example, "vi" editor):
Note: If your system has configured 'manage_etc_hosts' as True, see this KB article.
CONFIG_TEXT: 203.0.113.2 server.example.com
- Server hostname can be found in the error message or with the command "hostname". If in doubt, contact your hosting provider to find out a server hostname.
for CentOS/RHEL-based distributions:
# service httpd start
for Debian/Ubuntu-based distributions:
# service apache2 start