[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 3:09 PM, Carl Fink wrote:
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.

OK, just for fun I explicitly visited
http://finknetwork.com/tt-rss/index.php

... rather than rely on the DirectoryIndex configuration parameters. And the result is *weird*:

Fatal Error: You forgot to copy config.php-dist to config.php and edit it.\n"; exit; } // we need a separate check here because functions.php might get parsed // incorrectly before 5.3 because of :: syntax. if (version_compare(PHP_VERSION, '5.6.0', '<')) { print "Fatal Error: PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".\n"; exit; } set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR . get_include_path()); require_once "autoload.php"; require_once "sessions.php"; require_once "functions.php"; require_once "sanity_check.php"; require_once "version.php"; require_once "config.php"; require_once "db-prefs.php"; if (!init_plugins()) return; login_sequence(); header('Content-Type: text/html; charset=utf-8'); ?>

get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) { echo $p->hook_main_toolbar_button(); } ?>
get_hooks(PluginHost::HOOK_TOOLBAR_BUTTON) as $p) { echo $p->hook_toolbar_button(); } ?>
menu

????

-- 
Carl Fink                           nitpicking@nitpicking.com 

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

Reply to: