Squidguard update script error



  • I'm trying cron squidGuard_blacklist_update.sh to update blacklist everyday but it can't reconfigure squid because after database update ends the command to reconfigure squid points to wrong place. The correct path for squid is /usr/pbi/squid-i386/sbin/squid and not /local/sbin/squid

    php: squidGuard_blacklist_update.sh: The command '/usr/pbi/squid-i386/local/sbin/squid -k reconfigure' returned exit code '1', the output was 'Shared object "libmd5.so.0" not found, required by "squid"'



  • Friend, try to add sim-link

    ln -s /usr/pbi/squid-i386/local/lib/libmd5.so.0 /usr/lib/libmd5.so.0
    

    Possibly it is necessary to add sim-links and for other files on which there will be error in log.



  • Fix the library problems, but now I´m stucked with this error

    ERROR: MIME Config Table /usr/local/etc/squid/mime.conf: (2) No such file or directory FATAL: MIME Config Table /usr/local/etc/squid/mime.conf: (2) No such file or directory Squid Cache (Version 3.4.10): Terminated abnormally

    I did  the symlinks

    
    ln -s /usr/pbi/squid-i386/local/lib/libmd5.so.0 /usr/lib/libmd5.so.0
    ln -s /usr/pbi/squid-i386/local/lib/libecap.so.2 /usr/lib/libecap.so.2
    ln -s /usr/pbi/squid-i386/local/etc/squid/squid.conf /usr/local/etc/squid/squid.conf
    ln -s /usr/pbi/squid-i386/local/etc/squid/mime.conf /usr/local/etc/squid/mime.conf
    
    

    I think the best solution is squidGuard scritp points /usr/pbi/squid-i386/sbin/squid because there is no error with /usr/pbi/squid-i386/sbin/squid -k reconfigure


Log in to reply