• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Chrooted php dont include all modules !?!?

SpAcEDeViL

Basic Pleskian
Hy,

i use the install instruction for chrooted php, but its "bullshit".
https://support.plesk.com/hc/de/art...hroot-Shellumgebung-neue-Programme-hinzufügen


My installed Version on Server is:
Code:
PHP 5.6.31 (cli) (built: Jul  7 2017 10:54:32)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.7, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

But chrooted output is:
Code:
PHP 5.6.31 (cli) (built: Jul  7 2017 10:54:32)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Also, all modules where ignored. In the chrooted folder, i have all the files, also ioncube*.so or opcache*.so

The problem is, i will not give the webuser the hole info about the system, when they use "bin/bash".
With bin/bash the user can see all folders in the system include another domains... thats ****...
But only "bin/bash" works correct.

How can i fix that problem??
 
Hello,

i copy now all the files from /opt/plesk/php/5.6 folder in the chroot folder.

eg.
Code:
mkdir /var/www/vhosts/chroot/opt/plesk/php/5.6

Code:
cp -a /opt/plesk/php/5.6/ /var/www/vhosts/chroot/opt/plesk/php/5.6/

and
Code:
./chroot_update.sh --apply all

Now it works.
 
Last edited:
Now the mysql connection dont work...

why you make this "chrooted" access so?
And why you dont have a auto install script to make chrooted access compatible for the users to run php scripts
 
Back
Top