• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is 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.

open_basedir not effective

mcnesium

New Pleskian
I am trying to use the Piwik PHP API for the Piwik Wordpress Plugin as discussed here.

The webspace still runs on Ubuntu 12.04 LTS which features PHP 5.3, so I updated PHP to 5.4 manually as described here.

Now running PHP Version 5.4.40-1+deb.sury.org~precise+4 on Ubuntu 12.04 LTS and Parallels Plesk Panel v. 12.0.18

Piwik is located at /var/www/vhosts/server.domain/analytics/ and the Wordpress blog at /var/www/vhosts/wordpress.domain/httpdocs/ - so I added the Piwik path to the open_basedir setting in the PHP Settings of the wordpress webspace like this: {WEBSPACEROOT}/:/var/www/vhosts/server.domain/analytics/:{TMP}/

Then I set define('WP_DEBUG', true ); and got the following error message, when trying to set the Piwik Path for the PHP API in the Plugin settings:

Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/server.domain/analytics/index.php) is not within the allowed path(s): (/var/www/vhosts/wordpress.domain/:/var/www/vhosts/server.domain/analytics/:/tmp/) in /var/www/vhosts/wordpress.domain/httpdocs/content/plugins/wp-piwik/classes/WP_Piwik/Request/Php.php on line 26

Note that the required path actually is in the allowed paths, so the error message is colliding with itself. Now my question is: is this a Plesk related issue? Plesk still shows PHP-Version 5.3 in the Websites & Domains view of the webspace settings, so maybe there is something wrong with Plesk and the new PHP version.

What can I do?
 
Back
Top