Why did my Wordpress site suddenly stopped working?


I’m fairly new in setting up a server and I’m sorry in advance for not being as techinically detailed with my problem but here is the gist of my problems.

So just 4 days ago I created my droplet for my WordPress site following this tutorial.

It worked perfectly at first and I begin working on the site installing a theme and got some considerate work done. Then, the very next day the site was working through the domain (which is the IP address) however the wp-admin wasn’t. Then, I tried logging into the console of Digital Ocean and it asked me to enter my username and password yet again; it basically functioned like I was creating a site for the first time again. It asked me to set up my domain (again) and I chose the same IP address for domain. However, this time the site didn’t load at all giving me the error


The requested URL was not found on this server.

Apache/2.4.29 (Ubuntu) Server at Port 80

I tried basically every single tutorial on YouTube with no success.

Please help I need an answer ASAP.



If you go to /var/www/html does the folder actually exists,can you provide us with the virtual host for the domain?

It does seem to me like the Apache is just not being able to find the files for the website. If the files are there, you can just tweak the vhost file for Apache and manually set the proper path to them.

I really need help I did this

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted

And it’s still not working.

Also, my error log looks like

Warning : DocumentRoot [/var/www/html] does not exist
apache2 could not reliably determine the server's fully qualified domain name using [IP Address] set the 'Server Name' directive globally to suppress this message.
Virtual Host Configuration *:80
(Domain Name) (etc/apache2/sites-enabled-000-default.conf:4

So how do I fix it? But the server say it’s running. Can we talk on Twitter?

please post all your configuration files regarding this installation. My initial guess in somehow the server and the software config(s) itself my have been reset.

I have seen this happen with NGINX when someone edits the default.conf file and adter upgrading the server and its software the default.conf file is over written with its default version from the vendor.

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

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.


Indeed as @KDSys mentioned it looks like that your /var/www/html directory does not exist.

What I could suggest is re-creating this directory with this command mkdir /var/www/html or restoring the directory from a backup.

Regards, Bobby

This comment has been deleted