Custom PHP extensions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • info
    Member
    Forum Explorer
    • Mar 2021
    • 36

    #1

    Custom PHP extensions

    Hello, I have compiled ssh2-php into my default cPanel PHP setup and its enabled in php.ini with extension = ssh2.so
    If I want to use the same module with the PHP selector, how can I do it? I tried inserting the line into alt_php.ini but I got an error.
    Thank you.
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    Ill ask developers to document how to do it, but we will add ssh2 to list of available extensions. I presume you are talking about this one?

    Comment

    • info
      Member
      Forum Explorer
      • Mar 2021
      • 36

      #3
      Yes.

      Comment

      • avolkov
        Member
        • Apr 2017
        • 50

        #4
        Please try the following (for example for PHP 5.4):
        1) put ssh2.so in /opt/alt/php54/usr/lib/php/modules
        2) create ssh2.ini in /opt/alt/php54/etc/php.d.all (with "extension=ssh2.so" directive).
        3) choose ssh2 in Selector tab in LVEManager
        4) choose ssh2 in user cpanel interface
        5) restart apache

        Comment

        • info
          Member
          Forum Explorer
          • Mar 2021
          • 36

          #5
          Thank you, now it appears without error.

          Comment

          • info
            Member
            Forum Explorer
            • Mar 2021
            • 36

            #6
            I noticed one thing when choosing the default modules for alt-php. If using Internet Explorer it doesnt save what you have chosen.

            Comment

            • iseletsk
              Senior Member
              • Dec 2017
              • 1199

              #7
              We will try to address it in the next release, early next week.

              Comment

              Working...