404 Error Ubuntu apache error (URGENT)


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 (myurl) Port 80

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

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

I’ve already set AllowOverride to All.

And I basically did everything it seems to running correctly I just can’t access it. help please.

Please help I need an answer ASAP.



To help troubleshoot this issue you will need to provide more information as to what you did between when everything was working and when it wasn’t.

Every time you login to the console it will request a username and password, this isn’t related to Wordpress, but this is instead you logging into Ubuntu which is running on your droplet.

You mentioned that everything was working, but wp-admin wasn’t - what do you mean that it wasn’t working? Were you getting a 404 error, was it not loading, or was the username and password you entered not logging you in.

Right now you are getting a 404 error which means the request file isn’t found. Are you still able to access everything via the IP address?

You can also enable error logs in your Apache configuration and then look through them to get more information on where the web server is running into an issue, or what it’s expecting versus what you are expecting.

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.

Hello there,

I’ll recommend to check our series of tutorials under the How To Set Up Apache Virtual Hosts

Hope that this helps!

Hi @mrjustinyoung991,

It seems like your Apache configuration was changed. Please post the Apache configuration file for the domain as moisey replied. If you are unsure where you can find the conf file, you can try with

whereis apache2



Regards, Kalin