0
0
0ldan2022-04-19 07:29:24
Apache HTTP Server
0ldan, 2022-04-19 07:29:24

Why are php files being downloaded instead of being executed?

I follow the link localhost/something.php to see what will be displayed after the script is executed, but the file is stupidly downloaded. Whether this is a browser issue or my server issue, I don't know...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexVWill, 2022-04-19
@AlexVWill

The problem of a crookedly written script, it must begin as <?phpand end >?
Well, either php itself is not installed on the server or does not work.

A
Alexander, 2022-04-19
@Adler_lug

Does your Apache know about the existence of php?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question