Can't access Wordpress via public IP
I recently installed apache and WordPress on top of that. I was capable of accessing the apache server via public IP but as soon as I installed WordPress I could no longer access the website. Does WordPress change the port because I enabled port forwarding for port 80 on my router. I also changed the WordPress Address and Site Address URLs but it caused the website to no longer function.
Edit: It works after reinstalling WordPress by accessing it through its public IP. When I first installed WordPress I accessed it through its public IP. Only issue with this method is that its not secure.