• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Install Icingaweb2 // PHP problem

pete-fn

New Pleskian
Hi,
if I try to use my icingaweb2 installation via a vhost URL https://vhost/icingaweb2 every time my browser want's to download the php file instead it get's executet by the webserver.
PHP is enabled for that vhost.

I think the problem is that the icingaweb files are not in web server directory.
They're installed in directory /usr/share/icingaweb2

I already tried this php settings:
include_path .:/opt/plesk/php/7.3/share/pear:/usr/share/icingaweb2
open_basedir {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/usr/share/icingaweb2{/}
but it doesn't help.

Anybody who can give me a tip?
I have similar problems with other tools which get installed with apt-get install command and they're not publishing their php files under webserver root directory.

Thanks a lot!

Best regards,
Peter
 
i have the same problem and havent found a solution yet since weeks..
Did u find a solution or is anyone able to help on this topic?
 
I don't know the software in question, but most often the solution is to enable short open tags in PHP, because in some legacy software these are still used. However, newer PHP versions have them turned off by default. This results in code download instead of code execution.
 
Hey Peter,
thanks for your feedback. Already checked the short open tags and it's enabled in the vhost.
Anyway the main "problem" is that icingaweb gets installed for the system and has it's own Apache config file. So it's available for all vhosts - which is also not what I want but thats another topic ;)
I've also checked the open_basedir and include path - but still no success...
Calling the URL results in file download with the following content:

<?php
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

require_once '/usr/share/php/Icinga/Application/webrouter.php';

/usr/share/php/Icinga/Application/ path is included in open_basedir and include path.
 
Back
Top