Unable to access my site after reinstall apache2

Posted December 31, 2019 1.2k views

I have 3 WordPress installed on my DO ubuntu on var/www/html directory. There was no issue from the last two years.
But recently while I am installing another script on the same directory, I had to purge and reinstall the apache2.

And after that, I am unable to access my all websites. It says “Unable to connect”

When I entered IP address it’s showing the apache server home page instead of 3 directory page that was shown before.

I have tried to restart the apache server and its running well but still no result.

Please help.


Irfan Habib

edited by alexdo

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
3 answers

Hello, @neelhabib

I can see that the sites you’ve mentioned are now loading fine. Could you please share with us what was needed to sort the issue? Did you restored your droplet from a backup or you’ve sort this one manually? I assume the virtual host configuration was missing after the re-install and this caused the issue for you.


Hi @alexdo

After I posted this, I have fixed my site throug the help from Thanks for your pataint.

Hello, @neelhabib

Thanks for getting back with this information. I’ve found the link in the askubuntu forum and I’m going the share the link just in case someone run into the same issue and get to this question looking for a solution: