Article ID: 8521, created on May 14, 2010, last review on Apr 18, 2012

  • Applies to:
  • Plesk Sitebuilder 4.5 for Linux/Unix

Steps to reproduce

1. Create a container on PSBM node, with e.g. 'centos-5-x86_64'. For example:

~# vzctl create CTID --ostemplate centos-5-x86_64 --config slm.1024MB --hostname sbp.local --ipadd NNN.NNN.NNN.NNN

Where NNN.NNN.NNN.NNN is IP address of new container; sbp.local is hostname.

2. Add/Install application template 'sitebuilder4' to this container:

~# vzctl start CTID
~# vzpkg install CTID sitebuilder4

3. After successful installation test Parallels Plesk Sitebuilder:

~# echo NNN.NNN.NNN.NNN sitebuilder.sbp.local >> /etc/hosts
~# curl http://sitebuilder.sbp.local/check.php
Site error: the file <b>/usr/local/sitebuilder/htdocs/check.php</b> requires the ionCube PHP Loader to be installed by the site administrator.

sitebuilder.sbp.local is hostname of Parallels Plesk Sitebuilder installed on sbp.local.


Installing Sitebuilder4 application template in a container created on PSBM results in the wrong permissions to directories of PHP 5.2 from the package 'php5sb':
-bash-3.2# su - apache -s /bin/bash
-bash-3.2$ /opt/php52/bin/php5 -v
-bash: /opt/php52/bin/php5: Permission denied
-bash-3.2$ ls -al /opt/php52/
total 32
drwxr-xr-x 8 root root 4096 Apr 28 18:32 .
drwxr-xr-x 3 root root 4096 Apr 28 18:32 ..
drwx------ 2 root root 4096 Apr 28 18:32 bin
drwxr-xr-x 2 root root 4096 May 17 2007 cgi-bin
drwx------ 3 root root 4096 Apr 28 18:32 etc
drwx------ 3 root root 4096 Apr 28 18:32 lib
drwx------ 4 root root 4096 Apr 28 18:32 share
drwx------ 3 root root 4096 Apr 28 18:32 var

This is because of the hardened security in PBSM (and upcoming PVC 4.6), when directories not specified in the RPM package are created with umask 0077 in the template area.


To fix the problem and make Parallels Plesk Sitebuilder working it is recommended that you change permissions to files in /opt/php52.

For that login to the container and execute the following command:

~# chmod +rx /opt/php52/*

f7f840260c1591440648a375a64b5b75 fad6dc0c8e983c17ae70a51ac7952cd0 d055be4fdc562a8ecb8e6d0bf419f946 ea6a61e571a858aa6019ceb068ea403a 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF