Question

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

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


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
October 8, 2020
Accepted Answer

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04

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

Regards, Bobby

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.