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

    Cant connect to mysql

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 481 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.
    • D
      dochy
      last edited by dochy

      There are many instructions how to enable and connect to mysql from captive portal custom html page but i cannt find to do this from last version of pfsense. Error is

      Fatal error. Uncaught Error: Call to undefined function mysql_connect()
      

      i tried to write msqli_connect but still erroring can you help me? FreeRadius3 is installed and running

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @dochy
        last edited by

        @dochy

        pfSense 23.05.1 :

        pkg install -y php82-mysqli
        

        Restart PHP-FPM (console/SSH option 16)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        D 1 Reply Last reply Reply Quote 0
        • D
          dochy @Gertjan
          last edited by

          @Gertjan 111.png

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @dochy
            last edited by Gertjan

            @dochy

            Ah.
            Your using an ancient version.

            5ae2a4b1-a046-4732-8a2e-edc2aded1058-image.png

            That's ok of course, but I can't recall what I did 'yesterday'. And before yesterday, I was using 23.05, and before that 23.01 and before that ... 22.0x and before that 2.6.0.
            2.7.0 isn't ok for you ?

            I suggest you use the use the "forum search", as I'm pretty sure some one has writing about mysql in the past.

            Double check the PHP version pfSense 2.6.0 uses.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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