Apache seems to be running, but default page is not showing at public IP

August 13, 2017 4k views
Apache LAMP Stack Ubuntu

I have basically followed these recommend tutorials:

I requested a droplet that already had LAMP installed. When I get to this part: You will see the default Ubuntu 16.04 Apache web page, which is there for informational and testing purposes. It should look something like this: <img file>

Instead when I go to the public IP for my pages I get this message: Please log into your droplet via SSH to configure your LAMP installation.

So I checked to see if the ports were open and the process was running:

root@lamp-512mb-nyc3-01:~# sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
Active: active (running) since Sun 2017-08-13 21:36:48 UTC; 1h 14min ago
Docs: man:systemd-sysv-generator(8)
Process: 23428 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCES
Process: 20547 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SU
Process: 23455 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCC
Tasks: 7
Memory: 16.7M
CPU: 618ms
CGroup: /system.slice/apache2.service
├─23472 /usr/sbin/apache2 -k start
├─23475 /usr/sbin/apache2 -k start
├─23476 /usr/sbin/apache2 -k start
├─23477 /usr/sbin/apache2 -k start
├─23478 /usr/sbin/apache2 -k start
├─23479 /usr/sbin/apache2 -k start
└─23482 /usr/sbin/apache2 -k start

Aug 13 21:36:46 lamp-512mb-nyc3-01 systemd[1]: Stopped LSB: Apache2 web server.
Aug 13 21:36:46 lamp-512mb-nyc3-01 systemd[1]: Starting LSB: Apache2 web server.
Aug 13 21:36:46 lamp-512mb-nyc3-01 apache2[23455]: * Starting Apache httpd web
Aug 13 21:36:48 lamp-512mb-nyc3-01 apache2[23455]: *
Aug 13 21:36:48 lamp-512mb-nyc3-01 systemd[1]: Started LSB: Apache2 web server.
Aug 13 22:48:29 lamp-512mb-nyc3-01 systemd[1]: Started LSB: Apache2 web server.

I have to hit CTRL + C to get out of this process.

The info.php page is working correctly, maybe I just won't get the configuration page like the example because Apache was preinstalled?

3 Answers

I figured it out. When LAMP comes preinstalled they overwrite that default page and you won't see it. I looked at index.html in the folder and realized that it was one configured by Digital Ocean

Thank you for posting, I was having the same issue after installing Apache

The tutorial and pre-configured LAMP installation page is confusing. @jennaprice answer clarified the confusion.

Have another answer? Share your knowledge.