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

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


    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

  • Rebel Alliance Developer Netgate

    Works fine here, have you seen any other problems?

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

  • 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!

  • 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.

Log in to reply