[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache suddenly downloads PHP instead of executing it ... but only on one virtual site?



On 10/29/19 2:35 PM, Norbert Kiszka wrote:
ls -l `find /etc/apache2/mods-enabled -iname "*php*"`
ls -l `find /etc/apache2/mods-available -iname "*php*"`
root@finknetwork:/var/log/apache2# ls -l `find /etc/apache2/mods-enabled -iname "*php*"` lrwxrwxrwx 1 root root 29 Oct 28 02:14 /etc/apache2/mods-enabled/php7.0.conf -> ../mods-available/php7.0.conf lrwxrwxrwx 1 root root 29 Oct 28 02:14 /etc/apache2/mods-enabled/php7.0.load -> ../mods-available/php7.0.load root@finknetwork:/var/log/apache2# ls -l `find /etc/apache2/mods-available -iname "*php*"` -rw-r--r-- 1 root root 867 May 10  2016 /etc/apache2/mods-available/php5.conf -rw-r--r-- 1 root root 121 Oct 28 02:09 /etc/apache2/mods-available/php5.load -rw-r--r-- 1 root root 867 Mar  8  2019 /etc/apache2/mods-available/php7.0.conf -rw-r--r-- 1 root root 102 Mar  8  2019 /etc/apache2/mods-available/php7.0.load
Try to remove "AddType application/x-httpd-php .php" from vhost conf.

I removed this from /etc/apache2/sites-available/finknetwork.com.conf and restarted apache. No difference.

Thanks again.

--
Carl Fink                           nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com.  Reviews!  Observations!


Reply to: