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
  • Brite
  • 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. Off-topic
  3. Today we received a Top20 award for OpenCulturas

Today we received a Top20 award for OpenCulturas

Scheduled Pinned Locked Moved Off-topic
7 Posts 3 Posters 297 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.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote on last edited by
    #1

    Germany now has its first open-source software repository for the government. https://opencode.de/en

    OpenCulturas is a FLOSS culture portal software (you can easily install it on a LAMP app). https://www.openculturas.org/en

    Last year, one of our clients spent a lot of time making OpenCulturas part of openCode.

    Today, we got a Top20 award for the software. ๐Ÿš€
    https://social.luckow.org/@luckow/115294060182791352

    If you know anyone who needs art + culture portal software for regional marketing, please let me know. Our backlog is huge, and budgets are tight. ๐Ÿ˜‰

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    13
    • scookeS Offline
      scookeS Offline
      scooke
      wrote last edited by scooke
      #2

      Has anyone installed this on Cloudron yet, using the LAMP app? Does composer work in the LAMP app? I suppose I could try out my questions, but if things fail I don't always know what went wrong, hence these questions.

      It looks like even Drupal is installed via composer these days - https://new.drupal.org/download. So, do I make a LAMP app, leave it bare, then run composer to install Drupal, and then install OpenCulturas using composer again? Or, do I install OpenCulturas via composer all by itself straight into the LAMP app? Thanks for any tips.

      A life lived in fear is a life half-lived

      T 1 Reply Last reply
      1
      • scookeS Offline
        scookeS Offline
        scooke
        wrote last edited by
        #3

        Well, silly me went ahead to try installing Drupal, using composer. I even followed (tried to) these steps: https://forum.cloudron.io/topic/4457/installing-drupal-9-fails/5?_=1761881060321

        BBUUTTT of course it isn't working. AANNNDDD I of course don't really know why.

        A life lived in fear is a life half-lived

        1 Reply Last reply
        0
        • scookeS Offline
          scookeS Offline
          scooke
          wrote last edited by
          #4

          OK, I've made some progress, but running php vendor/bin/drush cr gives me;

          www-data@aeb12796-98b8-44ad-9108-5b61d48a8fe7:~/cms$ php vendor/bin/drush cr
          
          # Support bash to support `source` with fallback on $0 if this does not run with bash
          # https://stackoverflow.com/a/35006505/6512
          selfArg="$BASH_SOURCE"
          if [ -z "$selfArg" ]; then
              selfArg="$0"
          fi
          
          self=$(realpath $selfArg 2> /dev/null)
          if [ -z "$self" ]; then
              self="$selfArg"
          fi
          
          dir=$(cd "${self%[/\\]*}" > /dev/null; cd '../drush/drush' && pwd)
          
          if [ -d /proc/cygdrive ]; then
              case $(which php) in
                  $(readlink -n /proc/cygdrive)/*)
                      # We are in Cygwin using Windows php, so the path must be translated
                      dir=$(cygpath -m "$dir");
                      ;;
              esac
          fi
          
          export COMPOSER_RUNTIME_BIN_DIR="$(cd "${self%[/\\]*}" > /dev/null; pwd)"
          
          # If bash is sourcing this file, we have to source the target as well
          bashSource="$BASH_SOURCE"
          if [ -n "$bashSource" ]; then
              if [ "$bashSource" != "$0" ]; then
                  source "${dir}/drush" "$@"
                  return
              fi
          fi
          
          "${dir}/drush" "$@"
          

          A life lived in fear is a life half-lived

          1 Reply Last reply
          0
          • scookeS Offline
            scookeS Offline
            scooke
            wrote last edited by scooke
            #5

            OK, so, searching around gave me this form of the command: php83 ./vendor/bin/drush.php cr. At first it would appear to hang, and then the result was just "Killed". This was because somehow the drush command isn't in PATH, as in https://github.com/drush-ops/drush/issues/6250 and https://www.drupal.org/forum/support/post-installation/2023-12-30/drush-preflight-package-drupalcore-is-not-installed. I'm not sure how to add it.vendor/bin/drush to the PATH. Anyway, I then ran php ./vendor/bin/drush.php status, and it returned good info. I then tried the first, php83 ./vendor/bin/drush.php cr, and voila! The site loaded!

            So, I did the following:
            Following https://new.drupal.org/download, I installed the CMS, composer create-project drupal/cms. Previously I had been installing and trying to work with just Drupal Core... but I was thinking that since OpenCulturas IS a full CMS, I may as well install that. Maybe that is the main key here.

            Then I followed steps from Luckow.

            • switch to the www-data user su www-data
            • change directory to /app/data cd /app/data

            I skipped the following (from Lucknow's post):

            • install drupal via composer composer create-project drupal/recommended-project
            • move everything from inside recommended-project into the root of /app/data mv recommended-project/* . & mv recommended-project/.* .
            • remove the default public folder and make a symbolic link rm -rf public& ln -s web public

            and instead installed OpenCulturas from the /app/data...actually, to be honest I've lost track of where I ran the command:
            composer create-project --remove-vcs drupal/openculturas_project example.org

            And it seems to have been installed in a directory called example.org.

            And followed the next poster, Shai's suggestion:
            rm -rf public & ln -s cms/web public. So, I'm not sure where OpenCulturas is actually running from! cms/web or example.org/, and to be honest, I don't feel like redoing it all, at least not now.

            So, Derpal is installed and running the Events form of OpenCulturas.

            A life lived in fear is a life half-lived

            1 Reply Last reply
            0
            • scookeS scooke

              Has anyone installed this on Cloudron yet, using the LAMP app? Does composer work in the LAMP app? I suppose I could try out my questions, but if things fail I don't always know what went wrong, hence these questions.

              It looks like even Drupal is installed via composer these days - https://new.drupal.org/download. So, do I make a LAMP app, leave it bare, then run composer to install Drupal, and then install OpenCulturas using composer again? Or, do I install OpenCulturas via composer all by itself straight into the LAMP app? Thanks for any tips.

              T Offline
              T Offline
              tobiasb
              wrote last edited by
              #6

              @scooke

              To download/install OpenCulturas just run composer create-project --remove-vcs drupal/openculturas_project example.org and then create a symlink for public which links to example.org/web. I believe you need to remove the public directory before you can do it.

              Then you can install it via browser. Use the credentials from credentials.txt for database. When installed, it is better to replaces the strings in web/sites/default/settings.php with getenv('CLOUDRON_MYSQL_HOST'). So that you can create a copy, and it uses the new credentials and not the credentials from the other app.

              1 Reply Last reply
              1
              • scookeS Offline
                scookeS Offline
                scooke
                wrote last edited by
                #7

                @tobiasb I've already got it running.

                A life lived in fear is a life half-lived

                1 Reply Last reply
                1
                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