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. Shlink on LAMP, APC absent?

Shlink on LAMP, APC absent?

Scheduled Pinned Locked Moved Solved LAMP
lamp
9 Posts 3 Posters 1.3k Views 3 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.
    • yusfY Offline
      yusfY Offline
      yusf
      wrote on last edited by girish
      #1

      Hi, I'm trying to get Shlink going on a LAMP app but it seems to crash over an APCU thing, though APCU should be included in LAMP. Can it possibly be fixed?

      php -i | grep apc yields nothing.

      Initializing database... [Running "/usr/bin/php7.2 vendor/doctrine/orm/bin/doctrine.php orm:schema-tool:create"]   RUN  '/usr/bin/php7.2' 'vendor/doctrine/orm/bin/doctrine.php' 'orm:schema-tool:create'
        ERR  PHP Fatal error:  Uncaught Error: Call to undefined function apcu_fetch() in /app/data/shlink/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php:26
        ERR  Stack trace:
        ERR  #0 /app/data/shlink/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(200): Doctrine\Common\Cache\ApcuCache->doFetch('DoctrineNamespa...')
        ERR  #1 /app/data/shlink/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(177): Doctrine\Common\Cache\CacheProvider->getNamespaceVersion()
        ERR  #2 /app/data/shlink/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(60): Doctrine\Common\Cache\CacheProvider->getNamespacedId('Shlinkio\\Shlink...')
        ERR  #3 /app/data/shlink/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(177): Doctrine\Common\Cache\CacheProvider->fetch('Shlinkio\\Shlink...')
        ERR  #4 /app/data/shlink/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(89): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataF in /app/data/shlink/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php on line 26
        ERR
        RES  255 Command did not run successfully
      
      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        The lamp app ships currently with yac instead of apcu and they don't seem to be compatible to be installed in parallel it seems. I am not an expert on either of them, do you or anyone know how to resolve this otherwise?

        1 Reply Last reply
        0
        • yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #3

          I've no idea yet, but I want to look into it. Btw, apcu is listed in the docs still, while yac is not.

          1 Reply Last reply
          0
          • girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #4

            @yusf I think it's a bug that yac got installed as default instead of acpu. This was because of an ordering issue in the package installation. I think ACPu is what we want to support as part of LAMP app (and keeps it consistent with the docs as well).

            1 Reply Last reply
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by girish
              #5

              I have pushed an update to the LAMP app. With the update, I was able to install and run shlink. To test, make a fresh LAMP installation (updates will take a while to roll out).

              1 Reply Last reply
              1
              • yusfY Offline
                yusfY Offline
                yusf
                wrote on last edited by
                #6

                Excellent, thank you!

                1 Reply Last reply
                0
                • yusfY Offline
                  yusfY Offline
                  yusf
                  wrote on last edited by yusf
                  #7

                  I got it to work. The external app, https://app.shlink.io, can't reach the API though I can't figure out why. It should just be http requests, right?

                  Also, the app now reports back to box as "Not responding" though it's running. 🤔

                  1 Reply Last reply
                  0
                  • girishG Do not disturb
                    girishG Do not disturb
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    I think the not responding is because the root of the app returns a 404 😕 There is no admin panel for shlink afaict (I used the CLI tool to test).

                    1 Reply Last reply
                    0
                    • yusfY Offline
                      yusfY Offline
                      yusf
                      wrote on last edited by
                      #9

                      Okay, I understand. It's fine by me.

                      The separate admin panel's latest release just renders a blank page for me (locally and on LAMP) ¯_(ツ)_/¯

                      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