Running PHP files will not load but instead download

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.

12

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like