'XAMPP issue - localhost showing unwanted "Apache2 Ubuntu Default Page"

I have installed xampp and when I access http://localhost on the browser, I get this screen:

enter image description here

I created a file in C:\xampp\htdocs\project\index.php, but when I access http://localhost/project or http://localhost/project/index.php, it gives 404 Error (page not found). Which makes me believe that localhost is not pointing to my xampp folder.

I tried to uninstall xampp, but even after uninstalling it, when I access localhost I get the same page.

Does anyone have any idea of what is going on? Or how I can debug it?



Solution 1:[1]

First Stop the apache server using below command

sudo srevice apache2/ stop

after that restart the apache server using below command

sudo /opt/lampp/lampp start

Solution 2:[2]

If you connect your network by proxy, which is located on Ubuntu, Proxy Server's xampp page will be shown. If you add the localhost to proxy's except address list, you can see your local computer's xampp page.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 GAURAV KESHARVANI
Solution 2