Ubuntu: Running PHP files will not load but instead download



Question:

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.


Solution:1

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »