hi, I have a problem!!... 1. create client 2. create website 3. create sub domain 4.create shell-user 4.a. chroot shell and use jailkit all for a client who want to log in and have putty access to their site. if its not chroot'd they can wander the file system (yes/no) when i tested with their login i could cd /var/www/ and see all my other clients websites so now the problem: when they login they need to run a php script under the command line ie "php nameofscript.php" but chroot does not have php for the command line, how can i fix it cheers dave
hi till, a follow up question does this look right for centos - added to /etc/jailkit/jk_init.ini PHP: comment = the php interpreter and librariesexecutables = /bin/phpdirectories = /usr/bin/php/, /usr/lib64/php and to add php to an existing chroot do i just: jk_cp -j /var/www/nameofchroot/ /usr/bin/php
this is what is found for php #whereis php php: /usr/bin/php /usr/lib64/php /etc/php.ini /etc/php.d /usr/include/php /usr/share/php /usr/share/man/man1/php.1.gz