0

I've just got a Ubuntu machine (I'm usually a Debian user). I've installed apache2 and PHP using the below commands and restarted apache2 but when I visit the site the PHP doesn't execute (I just see all of the PHP code printed on the website).

apt-get install apache2 php

This is all that is required on Debian; are there further steps required on Ubuntu?

1 Answers1

3

You also have to install libapache2-mod-php (or libapache2-mod-php7.0 if you have PHP7) and restart Apache if this doesn't happen during the module install.