i have apache2 (Server version: Apache/2.4.7 (Ubuntu) Server built: Mar 10 2015 13:05:59), mysql and phpmyadmin.
It shows up source code instead of executing.
Ubuntu 14.04 LTS
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I can think of 3 possibilities:
You don't have PHP installed. In that case run:
sudo apt-get install php php-mysql
You have PHP installed but not enabled. You can try running:
sudo a2enmod php7 sudo service apache2 restart
You have PHP installed and enabled but you haven't restarted apache.
sudo service apache2 restart