I just came across some problems when using chrooted cron jobs for clients. The feature itself works without problems, but there are a lot of libraries missing if you try to use php commandline cron jobs. On jk_chroot creation the php binaries are copied over but no php.ini from /etc/php5/* No libraries from /usr/lib/php5/<zendversion>/*.so No dependency libraries for the above php modules. No pear/pecl files. The most important issue with that is that mysql, gd and curl usage are not working and there seems to be a big problem with date and time functions due to missing timezones database. I think this renders php cli useless on chrootet cron, what do you think?
This are custom settings of your systema and not a greneral problem with the chrooted cronjob. You can use any binary you wnat in the jail, you have just to tell jailkit that it shall be added. e.g. the php interpreter is not part of the jail and for that reason, no php libraries were copied. You can configure the jailed applications under system > server config > jailkit and in the jailkit system config files.
The php interpreter itself is in the jail without having anything changed in the config. The php binary runs but without any common modules active. I know I can customize the jailkit config, but I thought if it includes php in the default settings it should include common modules, too. The server was set up using the perfect server howto (deb 6) and then installed ispc 3, nothing else done.