Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th July 2012, 13:21
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default Problems(?) regarding chrooted cron jobs

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?
__________________
Marius Cramer

pixcept KG
Reply With Quote
Sponsored Links
  #2  
Old 12th July 2012, 17:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th July 2012, 17:29
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
 
Default

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.
__________________
Marius Cramer

pixcept KG
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPC 3.0.4.5: Cron Jobs don't work manarak Installation/Configuration 24 24th July 2012 16:35
Cron jobs not running IrDA Installation/Configuration 8 18th November 2011 14:17
ISPConfig cron jobs mphayesuk General 3 30th August 2009 11:15
cron jobs collimic General 1 26th July 2009 12:57
CRON and .htaccess problems devilslayer General 1 23rd November 2007 16:49


All times are GMT +2. The time now is 02:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.