Question

Unable to access my site after reinstall apache2

Posted December 31, 2019 550 views
Apache

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.

Thanks.

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.

×
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.

Regards,
Alex

Hi @alexdo

After I posted this, I have fixed my site throug the help from askubuntu.com. 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:

https://askubuntu.com/questions/1199770/could-not-access-my-domain-after-reinstall-apache2

Regards,
Alex

Submit an Answer