I'm trying to run a php info file but it will not work properly. When I run the file through the browser(Firefox), it will ask me to download instead of displaying content. What do you reccomend? Thanks in advance.
1 Answer
I started by purging php7 and reinstalling. When that didn't work I purged apache2 and php7 and reinstalled.
sudo apt-get purge php7.0-common
sudo apt-get purge php7.*
sudo apt autoremove
apt-get purge apache2
sudo apt autoremove
sudo apt-get install apache2 php7.0 libapache2-mod-php7.0
sudo /etc/init.d/apache2 reload
sudo /etc/init.d/php7.0-fpm reload
I still get this message "Considering conflict php5 for php7.0:" but at least it's working now.
a2enmod php7.0
(as root)? (I'm assuming you're running 16.04?)php7.0
module with the command given by rkhff