Cronjobs: Mysqli extension missing

Discussion in 'General' started by orasis, Mar 6, 2015.

  1. orasis

    orasis Member

    Hi, I have a cronjob which I runs fine on debian wheezy as Full Cron using the system full paths. Testing from cli the following command executes fine:

    /usr/bin/php -q /var/www/clients/client3/web32/web/console core:archive --url=http://stats.development.dev/

    Now I want to run the cron job as Chrooted but in this case the mysqli extension is missing. The following command from cli fails:

    /usr/bin/php -q /web/console core:archive --url=http://stats.development.dev/

    The server has mysqli extension loaded. From any site if I execute the following in a php file it returns true:

    echo extension_loaded('mysqli');
    exit;

    Any help on this appreciated as I would like the cronjobs to be Chrooted for security.
     
  2. vhacker11

    vhacker11 Member

    Hi,

    Try installling mysql in the chroot environment.
    You can also refer the post here and here.

    Let me know if this helps.
     
  3. orasis

    orasis Member

    thanks for the reply and help, I will ahve to dive into this deeper
     

Share This Page