I setup LAMP stack, how do I access my site?

Posted October 8, 2020 891 views

I setup Ubuntu, Apaceh, PHP and MySql following the documentation but can not access my site at
What else do I need to do?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers

Hello @utsavrathour,

To me, it looks like that either the Apache service is not running or your firewall is blocking the connections.

First check if Apache is running:

  • systemctl status apache2

If Apache is not running you could start it with:

  • systemctl start apache2

If Apache is running, check if ufw allows TCP connections on port 80 and 443:

  • ufw status

If this is the case, you can follow the steps from this article here on how to configure your ufw:

For more information, I would recommend checking this article on How to Troubleshoot Common Apache Issues on Linux Server.


by Brian Boucheron
by Erika Heidi
UFW, or Uncomplicated Firewall, is an interface to iptables that is geared towards simplifying the process of configuring a firewall on Linux servers. In this guide, you'll learn how to set up a firewall with UFW on Ubuntu 18.04.

I did all that was mentioned on the link. I had done so while installing Apache as well. But still can’t access. I also added a domain (newly registered) to my account and changed the nameserver to be of DO but it still doesn’t point.

by Mark Drake
by Erika Heidi
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This stack typically consists of the Linux operating system, the Apache web server, a MySQL database, and PHP, a dynamic content processor. This tutorial serves as a guide for installing these components on an Ubuntu 18.04 server.

The advantage of open source software isn’t just that it’s available for free. A further plus of open source software is, as its name suggest, that every user has access to its development code. This allows users to independently edit and continue developing the software. For experienced users, open software eliminates the need of worrying about support for a particular software being discontinued.

Installing a LAMP server offers more than just high flexibility and low prices: it incorporates robust components that mesh well with one another. LAMP servers enable users to operate both static and dynamic websites. Wikipedia runs on the software MediaWiki, which is just one of many examples of a website that was developed on a LAMP system.