Apache shows PHP code instead of executing it

You must enable php! Check the folder mods-enabled in the Apache directory (default: /etc/apache2/) to see if you find a file named php. I don’t remember the extension but I think it’s .so.

Also check in /var/log/apache2/error.log to see if you have any other errors.

Leave a Comment