I have Ubuntu 14.04 and I have installed apache2, but the problem is when I visit my IP as site in order to view web files, it says unable to connect.
If I try to restart apache in SSH I get this error;
~# /etc/init.d/apache2 restart
* Restarting web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using (IP address of my server here).
Set the 'ServerName' directive globally to suppress this message
EDIT: here is the error log as suggested by user
Does someone know the solution?
sudo netstat -tulpn
the check if your defined port (e.g. 80/443) is opened and accessible from other hosts (must look like e.g.0.0.0.0:80
or:::80
respectively with443
).