I have installed Apache2, mysql, php5 and phpmyadmin
on my Ubuntu 14.04 but later on mistakenly I install nginx.
Now my localhost page show me Welcome to nginx server. And the localhost/phpmyadmin
link is not working.
How can I get my LAMP server back?
i removed ngnix using command
sudo apt-get remove nginx
sudo apt-get purge nginx
installing apache
sudo apache2ctl restart
but at the end on restarting apache2 i get this error
sudo apache2ctl restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'restart' failed.
apt-get
? – Dan May 22 '14 at 18:06/var/www/
and/var/www/html
tend to be the 'default' docroot for web servers; if NGINX was installed before Apache it's entirely possible the 'default index page' that is installed by the web server is still present, and the system does NOT overwrite that when installing Apache or NGINX (in case the user actually has a custom page there). That may be why 'nginx' landing pages were being seen instead of Apache, so you should always check to make sure either no index.html is present or a custom one you wrote is present. – Thomas Ward Sep 22 '16 at 17:06