[solved] 404 error after NextCloud installation!

I am a bit of a noob when it comes to Nextcloud, so I apologize if I am not providing the right information.

I am running Ubuntu 20.04 and installed NextCloud manually using Apache2 and MySQL. I completed the admin setup page, but now every time I try to navigate to ipaddress/nextcloud/login, the page gives me a 404 Not Found error!

I have already tried chown -R www-data:www-data nextcloud and restarting the apache server, but nothing seems to work. I have no idea what is causing this, any help is appreciated!