Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Adding mcrypt extension

Adding mcrypt extension

Scheduled Pinned Locked Moved Solved LAMP
7 Posts 4 Posters 1.3k Views 4 Watching
  • 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.
    • ShaiS Offline
      ShaiS Offline
      Shai
      wrote on last edited by
      #1

      I need to add the mcrypt extension to a Lamp 7.4 app.

      mcrypt was no longer included with PHP since PHP 7.2

      I'm presuming I would have to create a custom app to add it to a Lamp 7.4 install. Please confirm or tell me otherwise.

      Thanks.

      1 Reply Last reply
      0
      • subvenS Offline
        subvenS Offline
        subven
        wrote on last edited by
        #2

        Have you tried installing it on your own? Please see Lamp App - Installing custom PHP extensions 🙂

        ShaiS 1 Reply Last reply
        2
        • subvenS subven

          Have you tried installing it on your own? Please see Lamp App - Installing custom PHP extensions 🙂

          ShaiS Offline
          ShaiS Offline
          Shai
          wrote on last edited by
          #3

          @subven thanks.

          I followed the instructions Lamp App - Installing custom PHP extensions. I was not able to get mcrypt installed that way.

          Mcrypt is a pecl extension. Pecl is installed. In the app terminal I ran
          pecl and it returned Failed loading /app/data/mcrypt/mcrypt.c: /app/data/mcrypt/mcrypt.c: invalid ELF header.

          If I run pecl install mcrypt
          I get

          Failed loading /app/data/mcrypt/mcrypt.c:  /app/data/mcrypt/mcrypt.c: invalid ELF header
          WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
          Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user
          root@4b54a6f7-bd10-4898-a1a8-6c13ffb94a11:/app/data# 
          

          Any ideas?

          Thanks.

          nebulonN 1 Reply Last reply
          0
          • ShaiS Shai

            @subven thanks.

            I followed the instructions Lamp App - Installing custom PHP extensions. I was not able to get mcrypt installed that way.

            Mcrypt is a pecl extension. Pecl is installed. In the app terminal I ran
            pecl and it returned Failed loading /app/data/mcrypt/mcrypt.c: /app/data/mcrypt/mcrypt.c: invalid ELF header.

            If I run pecl install mcrypt
            I get

            Failed loading /app/data/mcrypt/mcrypt.c:  /app/data/mcrypt/mcrypt.c: invalid ELF header
            WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
            Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user
            root@4b54a6f7-bd10-4898-a1a8-6c13ffb94a11:/app/data# 
            

            Any ideas?

            Thanks.

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            @Shai the lamp package is currently not setup to deal with pecl extension installation, various required paths are read-only in the app, so this will currently not work.

            Not sure if this is something we should support from an app package perspective or as mentioned the better way is to create a custom app. Main concern for me is, how there things get updated/recompiled when we push an lamp update as such.

            ShaiS robiR 3 Replies Last reply
            0
            • nebulonN nebulon

              @Shai the lamp package is currently not setup to deal with pecl extension installation, various required paths are read-only in the app, so this will currently not work.

              Not sure if this is something we should support from an app package perspective or as mentioned the better way is to create a custom app. Main concern for me is, how there things get updated/recompiled when we push an lamp update as such.

              ShaiS Offline
              ShaiS Offline
              Shai
              wrote on last edited by
              #5

              @nebulon Thanks. I guess this is my chance to create my first custom app.

              1 Reply Last reply
              0
              • nebulonN nebulon

                @Shai the lamp package is currently not setup to deal with pecl extension installation, various required paths are read-only in the app, so this will currently not work.

                Not sure if this is something we should support from an app package perspective or as mentioned the better way is to create a custom app. Main concern for me is, how there things get updated/recompiled when we push an lamp update as such.

                ShaiS Offline
                ShaiS Offline
                Shai
                wrote on last edited by Shai
                #6

                @nebulon I think it would be helpful to mention in the "Installing custom PHP extensions" portion of the docs that pecl extensions are not supported. It would have saved me some time and frustration.

                1 Reply Last reply
                0
                • nebulonN nebulon

                  @Shai the lamp package is currently not setup to deal with pecl extension installation, various required paths are read-only in the app, so this will currently not work.

                  Not sure if this is something we should support from an app package perspective or as mentioned the better way is to create a custom app. Main concern for me is, how there things get updated/recompiled when we push an lamp update as such.

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #7

                  @nebulon you just run the update command(s)

                  Conscious tech

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search