G
G
gtir2021-10-17 18:54:02
linux
gtir, 2021-10-17 18:54:02

Why is there no default Ubuntu Apache web page after installing Apache?

I have Ubuntu 20.04, php 7.4 and mariadb:
Installed and configured Apache2:

sudo apt update
sudo apt install apache2
sudo ufw allow 'Apache'


I check the web server by writing localhost or my ip address in the address bar and get:
616c45b9d302e150098565.png
Instead:
616c45c9b94cb312003782.png

I even tried to create a file with the phpinfo() function in the var/www/html folder index.php; but instead of a window with information about php, I see a little file code and some hieroglyphs.

Why is Apache not working?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-10-17
@karabanov

Doesn't work as expected because the server is not configured. Write the config you need and it will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question