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

Suricata rule sets PHP error

Scheduled Pinned Locked Moved IDS/IPS
5 Posts 2 Posters 542 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.
  • G
    GasmanC
    last edited by Sep 5, 2017, 9:01 AM

    Hi all,

    I get the following error when attempting to download rules:

    PHP ERROR: Type: 1, File: /usr/local/pkg/suricata/suricata_check_for_rule_updates.php, Line: 172, Message: Call to undefined function curl_init() @ 2017-09-05 18:30:00

    Any idea what's going on.

    I am using the latest development snapshot.

    Thanks.

    1 Reply Last reply Reply Quote 0
    • B
      bmeeks
      last edited by Sep 7, 2017, 1:41 AM

      @GasmanC:

      Hi all,

      I get the following error when attempting to download rules:

      PHP ERROR: Type: 1, File: /usr/local/pkg/suricata/suricata_check_for_rule_updates.php, Line: 172, Message: Call to undefined function curl_init() @ 2017-09-05 18:30:00

      Any idea what's going on.

      I am using the latest development snapshot.

      Thanks.

      Hmm… that function is a built-in PHP function.  It is used by the code to download the rules tarball via HTTP.  The fact the function cannot be found is odd.  It would potentially indicate a missing INCLUDE file someplace.  Your problem looks to be something other than just Suricata.

      Bill

      1 Reply Last reply Reply Quote 0
      • G
        GasmanC
        last edited by Sep 7, 2017, 1:07 PM

        Should I nuke it and start again?

        1 Reply Last reply Reply Quote 0
        • B
          bmeeks
          last edited by Sep 7, 2017, 7:40 PM

          @GasmanC:

          Should I nuke it and start again?

          Most likely that is the best solution.  I'm basing this on the fact other users are not posting here with the same issue.  If this suddenly was broken for everyone on the 2.4 snapshots, I would expect to see a large number of posts about it.

          Bill

          1 Reply Last reply Reply Quote 0
          • G
            GasmanC
            last edited by Sep 8, 2017, 1:53 AM

            Fair point, and to put it into perspective, I had restored the configuration from an xml file. Maybe that's it.

            Thanks for your help

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received