Article ID: 6065, created on Feb 20, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.0 for Linux/Unix
  • Plesk 8.x for Linux/Unix

Symptoms

Parallels Plesk Panel version 8.x or 9.0 is installed.

I cannot install any web application through Parallels Plesk Panel {Domains -> DOMAIN.TLD -> Web Applications -> Add New Application}.

The following error is shown when clicking the Install button in the installation wizard:

Warning: Program execution failed, please check Plesk Control Panel's log files for details (PHP Warning: require_once(env-parser.php): failed to open stream: Operation not permitted in /var/www/vhosts/DOMAIN.TLD/vault_scripts/mambo/scripts/configure on line 4
PHP Fatal error: require_once(): Failed opening required 'env-parser.php' (include_path='.') in /var/www/vhosts/DOMAIN.TLD/vault_scripts/mambo/scripts/configure on line 4
). Contact your system administrator for assistance.
Warning: Site application installation failed: PHP Warning: require_once(env-parser.php): failed to open stream: Operation not permitted in /var/www/vhosts/DOMAIN.TLD/vault_scripts/mambo/scripts/configure on line 4
PHP Fatal error: require_once(): Failed opening required 'env-parser.php' (include_path='.') in /var/www/vhosts/DOMAIN.TLD/vault_scripts/mambo/scripts/configure on line 4


(where /var/www/vhosts is the virtual host's directory, $HTTPD_VHOSTS_D. The value is set in the file /etc/psa/psa.conf and may differ for your operating system.)

Resolution

The problem is caused by the parameter open_basedir being set to none in the global PHP configuration. By default, the file is /etc/php.ini on RedHat-like operating systems.

~# grep ^open_basedir /etc/php.ini
open_basedir = "none"
~#

The site application is installed within the domain's DocumentRoot, $HTTPD_VHOSTS_D/DOMAIN.TLD/httpdocs, or $HTTPD_VHOSTS_D/DOMAIN.TLD/httpsdocs. The value is set in the domain's Apache configuration file, httpd.include:

~# grep DocumentRoot $HTTPD_VHOSTS_D/DOMAIN.TLD/conf/httpd.include
     DocumentRoot $HTTPD_VHOSTS_D/DOMAIN.TLD/httpsdocs
     DocumentRoot $HTTPD_VHOSTS_D/DOMAIN.TLD/httpdocs
~#

During installation of a site, application scripts from the directory $HTTPD_VHOSTS_D/DOMAIN.TLD/vault_scripts are executed.

Because the scripts are located outside of DocumentRoot, the global PHP configuration file is used with the option open_basedir = none.

To resolve the problem for now, it is necessary to disable the open_basedir option in the global PHP configuration:

~# grep ^open_basedir /etc/php.ini
;open_basedir =
~#

The Parallels Development Team is currently working on this issue. It will be fixed in a future update of Parallels Plesk Panel.

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 4f57df935e9acf8d18830757d2346419 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF