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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    LAMP composer: command not found

    LAMP
    4
    8
    325
    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.
    • T
      TheNils last edited by

      Hi there,

      i'm trying to install drupal on a LAMP app
      when i try to run composer i get : bash: composer: command not found

      i've tested with root user and www-data also tested in different location /app/data/ , /app/data/public/

      thanks

      BrutalBirdie girish 2 Replies Last reply Reply Quote 0
      • BrutalBirdie
        BrutalBirdie Staff @TheNils last edited by

        @thenils
        My LAMP App (latest version)

        root@60ae11f2-5b75-4c15-8272-d0e7d9c15092:/app/data# composer --version
        Do not run Composer as root/super user! See https://getcomposer.org/root for details
        Composer 1.6.3 2018-01-31 16:28:17
        

        and explicit path

        root@60ae11f2-5b75-4c15-8272-d0e7d9c15092:/app/data# /usr/bin/composer --version
        Do not run Composer as root/super user! See https://getcomposer.org/root for details
        Composer 1.6.3 2018-01-31 16:28:17
        

        Like my work? Consider donating a beer 🍻 Cheers!

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

          We had a couple of LAMP app flavors in the past, which one and version are you using?
          You can find this information in the Update section in your Cloudron dashboard when you configure the app.

          T 1 Reply Last reply Reply Quote 0
          • T
            TheNils @nebulon last edited by

            @nebulon app version is :
            lamp.cloudronapp.php74@1.8.0-3

            it's a fresh install made yesterday from the app store

            BrutalBirdie 1 Reply Last reply Reply Quote 0
            • BrutalBirdie
              BrutalBirdie Staff @TheNils last edited by BrutalBirdie

              @thenils True!
              My LAMP App is:
              50d5801d-acd4-4f7a-9ad7-b7415cab2932-image.png
              lamp.cloudronapp@2.1.0 and was not update over a year 😄


              I just installed a new instance and yes I can confirm this issue is replicable.

              And indeed the composer binary is missing!

              root@57870c5e-4d1b-46b9-87ad-395728cbafa2:/app/code# ls -lah /usr/bin/ | grep -i compo
              lrwxrwxrwx 1 root root       11 Oct 18  2019 compose -> run-mailcap
              lrwxrwxrwx 1 root root       27 Feb  6  2021 composite -> /etc/alternatives/composite
              lrwxrwxrwx 1 root root       31 Feb  6  2021 composite-im6 -> /etc/alternatives/composite-im6
              -rwxr-xr-x 1 root root      15K Nov 18  2020 composite-im6.q16

              Like my work? Consider donating a beer 🍻 Cheers!

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @TheNils last edited by

                @thenils indeed, this is an oversight. I am making a new package.

                T 1 Reply Last reply Reply Quote 1
                • Moved from Support by  girish girish 
                • T
                  TheNils @girish last edited by

                  @girish 👍 💪

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @TheNils last edited by

                    @thenils I have pushed a new package, can you please check? It should have composer 2.1.8

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB