-1

My Apache server on my Ubuntu server (16.04 LTS) does not process my PHP code. The file extensions are ending with .PHP and have <?php in them.

I have already tried uninstalling Apache and resetting the configs of Apache.

Unlike other posts, I am not using the file:\ protocol to execute the script(s).

this means that this is not a Duplicate.

I am using my servers external IP and I have set the apache config to allow all addresses and it is pointing to the right directory.

Here is a test script on my website to show the problem: http://bradsmc.tk/test.php

(This script should show your IP address, instead it shows it in the browser)

brad123
  • 1
  • 2
  • Do you have PHP installed? Your server isn't configured properly. – Kisaragi Jan 30 '17 at 17:44
  • 1
    "Unlike other posts, I am not using the file:\ protocol to execute the script(s) this means that this is not a Duplicate" — The accepted answer on the duplicate question explores **6** possible reasons for the problem you describe. Using a file URI is only one of them. – Quentin Jan 30 '17 at 21:46
  • I assume you've installed PHP and then fully rebooted your server? a lot of people somewhat strangely don't think about resetting and rebooting their systems when installing new stuff – Martin Jan 30 '17 at 21:48
  • Yes I have rebooted my server 3 times – brad123 Jan 31 '17 at 08:03

1 Answers1

-1

Check your mods_enabled folder, if there is php.so file

Avik Aghajanyan
  • 993
  • 9
  • 14