As the following warning appeared after introducing of a domain name, I fixed it
by modifying of /etc/hosts.
apache2: Could not reliably determine the server’s fully qualified domain name,
using 127.0.1.1 for ServerName
sudo nano /etc/hosts
127.0.1.1 domain_name host_name
Then restart apache.