× Warning! This forum is in archival status. New contributions may not work.
SOLVED Cron maxlifetime causes PHP Warning: cannot open shared object file
  • Hi there,

    My reinstalled Airtime seems have some php problems...
    Possibly the result of an incomplete apt-get purge.

    Will try reinstalling (again) not sure if it will help though.

    Anyone know how solve this?

    Listed packages are all Airtime dependencies.

    
    From: (Cron Daemon)    
    Subject: Cron <root@aws> [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete
    Date: Thursday, 20 October 2011 08:09:01 +0200 (CEST)
    
    
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/curl.so' - /usr/lib/php5/20090626/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_pgsql.so' - /usr/lib/php5/20090626/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pgsql.so' - /usr/lib/php5/20090626/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    




    
    # /etc/cron.d/php5: crontab fragment for php5
    #  This purges session files older than X, where X is defined in seconds
    #  as the largest value of session.gc_maxlifetime from all your php.ini
    #  files, or 24 minutes if not defined.  See /usr/lib/php5/maxlifetime
    
    # Look for and purge old sessions every 30 minutes
    09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
    root@aptosid:/etc/cron.d#
    
    

  • 3 Comments sorted by

  • apt-get purge curl php5-gd airtime

    apt-get install airtime

    did not resolve the problem.

  • dpkg --purge php5-gd

    apt-get install php5-curl

    2 down 2 to go

    root@aws:/usr/lib/php5/20090626# php
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_pgsql.so' - /usr/lib/php5/20090626/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pgsql.so' - /usr/lib/php5/20090626/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    

  • This one takes care of the other 2

    dpkg --purge php5-pgsql