I am trying to configure LAMP in my Ubuntu 15.10 Desktop with PHP 7.0, Apache2, and MySQL.
Everything seems to be working but when i try to execute any php file by putting it on path (/var/www/html
), the file gets downloaded.
Below are the commands which are already looked up and tried, but I couldn't get it to work.
sudo apt-get install php7.0
sudo apt-get install libapache2-mod-php7.0
sudo a2enmod php7.0
sudo service apache2 restart
Am I missing anything?
Please let me know any suggestions or advice will be very appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…