Problems(?) regarding chrooted cron jobs

Discussion in 'Installation/Configuration' started by Croydon, Jul 12, 2012.

  1. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    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?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    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.
     

Share This Page