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

    Fatal error when run: /usr/local/sbin/pfSsh.php

    General pfSense Questions
    3
    4
    994
    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.
    • S
      sparkvilla
      last edited by

      Hi all. I would like to start the PHP shell from the "normal" shell. So I type:

      /usr/local/sbin/pfSsh.php

      I do not get access to the PHP shell and I get:

      Fatal error: Call to undefined function readline_completion_function() in /usr/local/sbin/pfSsh.php on line 162
      PHP ERROR: Type: 1, File: /usr/local/sbin/pfSsh.php, Line: 162, Message: Call to undefined function readline_completion_function()

      Any help? Thank you

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Works fine here, have you seen any other problems?

        From the error message it sounds like it is missing a php module (readline)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • S
          sparkvilla
          last edited by

          I guess there was a problem in the pfSsh.php script because I replaced it with a new one (from a pfSense box that was actually working) and now it works!

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

            I was seeing the exact same issue on a newly upgraded 2.3 box. It appears the script must now run as root vs. just running as an admin user. I already had the 'sudo' package installed on the box so once I added 'sudo' to the beginning of my previous check command, it works perfectly.

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