Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard Error

    Scheduled Pinned Locked Moved Russian
    3 Posts 2 Posters 2.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andreika17
      last edited by

      Добрый день всем. Помогите пожалуйста, не могу разобраться никак, облазил весь форум, но так и не понял в чем проблема и как ее исправить…

      Установил pfsense (1.2.3-RELEASE) + squid (2.7.9_4)

      при установке squidguard (1.3_1 pkg v.1.9) снизу появляется ошибка:
      Warning: file_get_contents(/usr/local/etc/squidGuard/blacklist.files): failed to open stream: No such file or directory in /usr/local/pkg/squidguard_configurator.inc on line 585 Warning: file_get_contents(/usr/local/etc/squidGuard/blacklist.files): failed to open stream: No such file or directory in /usr/local/pkg/squidguard_configurator.inc on line 585 Warning: file_get_contents(/usr/local/etc/squidGuard/blacklist.files): failed to open stream: No such file or directory in /usr/local/pkg/squidguard_configurator.inc on line 585

      Пытаюсь произвести какие леибо настройки, выдает:
      Warning: file_get_contents(/usr/local/etc/squidGuard/blacklist.files): failed to open stream: No such file or directory in /usr/local/pkg/squidguard_configurator.inc on line 585 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/squidguard_configurator.inc:585) in /usr/local/www/pkg_edit.php on line 35

      Удалял пакет и ставл снова. Знания по freeBsd нулевые. Объясните что нужно сделать доступным языком.

      Заранее спасибо.

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Исправить
        /usr/local/pkg/squidguard_configurator.inc:585

        
                # load blk entries
                $db_entries = explode("\n", file_get_contents(SQUIDGUARD_BLK_FILELISTPATH));
        
        

        На

        
                # load blk entries
                if (file_exists(SQUIDGUARD_BLK_FILELISTPATH))
                   $db_entries = explode("\n", file_get_contents(SQUIDGUARD_BLK_FILELISTPATH));
        
        

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • A
          andreika17
          last edited by

          Спасибо огромное. Вроде получилось.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.