Further investigation - I found that it really seems to be the handling of php files. I can take the same file and give it a nonsense extension like .pq and I can see the file just like it is normal html (any php in file just shows as source not executed) but if it is .php I get a 404 error. Give it php5 and it treats it as a file to download. .php8 (which php 8 is the only php version installed to be precise 8.2) and it shows it like html but again contains the unexectured php code. Seems like an apache issue but I am not fluent enough in apache to know what settings might be off. (apache 2.4 by the way)
|