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. PostgreSQL and Memcached in LAMP

PostgreSQL and Memcached in LAMP

Scheduled Pinned Locked Moved LAMP
10 Posts 3 Posters 1.5k 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.
    • rmdesR Offline
      rmdesR Offline
      rmdes
      wrote on last edited by rmdes
      #1

      I have a client that built a custom web app, I think it won't be a problem to run it on the LAMP container but the client is asking for PostgreSQL & Memcached, both don't seem to be enabled on the current LAMP.

      This is the client requirement :

      Apache2.4. proxied by Nginx 1.14+ (ssl, static resources);
      Nginx shall be compiled with X-Accel, http2, ssl at a minimum
      Database server: PostgresSQL 11 with contrib packages
      PHP 7.3+ (fpm or fastcgi if multiple sites are hosted on the same server, dso (mod-php) otherwise )
      Serverside extra-security will be a plus (eg: Suhosin for PHP, apache security modules)

      I think the current LAMP container already provide all of this but I need to know if it's possible to also provide PostgreSQl and Memcached, any help is much appreciated.

      1 Reply Last reply
      0
      • rmdesR Offline
        rmdesR Offline
        rmdes
        wrote on last edited by
        #2

        Here is it : https://forum.cloudron.io/topic/2630/lamp-stack-with-postgres/

        1 Reply Last reply
        0
        • rmdesR Offline
          rmdesR Offline
          rmdes
          wrote on last edited by rmdes
          #3

          here is another piece : https://git.cloudron.io/cloudron/php7.3-postgres-app/
          Combined with this tutorial https://cloudron.io/documentation/guides/multiple-databases-lamp/ there is everything to install this custom app to one's cloudron 🙂

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

            @rmdes If you don't want to get into docker packaging stuff, it's easiest to use redis instead. Is that an option? Usually php frameworks like lavarel allow you to switch between these easily.

            rmdesR 2 Replies Last reply
            0
            • girishG girish

              @rmdes If you don't want to get into docker packaging stuff, it's easiest to use redis instead. Is that an option? Usually php frameworks like lavarel allow you to switch between these easily.

              rmdesR Offline
              rmdesR Offline
              rmdes
              wrote on last edited by
              #5

              @girish sadly it is'nt possible for the agency that built the web app for my non profit client 😕

              1 Reply Last reply
              0
              • girishG girish

                @rmdes If you don't want to get into docker packaging stuff, it's easiest to use redis instead. Is that an option? Usually php frameworks like lavarel allow you to switch between these easily.

                rmdesR Offline
                rmdesR Offline
                rmdes
                wrote on last edited by rmdes
                #6

                @girish by the way, is there some kind of phpmyadmin built in this image to handle PostgreSQL from a web interface ?

                the agency my non profit client hired is asking me for this :


                How can the PostgreSQL database can be managed? 
                eg phpPgAdmin would be a web based sollution (phpPgAdmin needs to be added to the container as well) or via a SSH tunnel 
                
                (can I connect to the container using SSH?) ?
                
                Then please confirm that PostgreSQL extensions: btree_gist, hstore, pg_trgm, plpgsql, unaccent can be installed.
                ----
                

                Regarding memcache :

                Regardind memcached server and the php-memcached extension, the installation can be done in one RUN line inside the container dockerfile.

                marcusquinnM 1 Reply Last reply
                0
                • rmdesR rmdes

                  @girish by the way, is there some kind of phpmyadmin built in this image to handle PostgreSQL from a web interface ?

                  the agency my non profit client hired is asking me for this :


                  How can the PostgreSQL database can be managed? 
                  eg phpPgAdmin would be a web based sollution (phpPgAdmin needs to be added to the container as well) or via a SSH tunnel 
                  
                  (can I connect to the container using SSH?) ?
                  
                  Then please confirm that PostgreSQL extensions: btree_gist, hstore, pg_trgm, plpgsql, unaccent can be installed.
                  ----
                  

                  Regarding memcache :

                  Regardind memcached server and the php-memcached extension, the installation can be done in one RUN line inside the container dockerfile.

                  marcusquinnM Offline
                  marcusquinnM Offline
                  marcusquinn
                  wrote on last edited by
                  #7

                  @rmdes I suggested adminer.org here as an omnipurpose interface that works with more DB types:

                  • https://forum.cloudron.io/topic/1397/suggestion-server-wide-database-manager-and-file-browser/4?_=1598404217122

                  Web Design https://www.evergreen.je
                  Development https://brandlight.org
                  Life https://marcusquinn.com

                  1 Reply Last reply
                  1
                  • rmdesR Offline
                    rmdesR Offline
                    rmdes
                    wrote on last edited by
                    #8

                    Would be great to add this http://phppgadmin.sourceforge.net/doku.php?id=about to the current LAMP PostgreSQL app, so that it's easier to manage databases inside this app.

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #9

                      I did give it a try but it seems it doesn't support any authentication...

                      rmdesR 1 Reply Last reply
                      0
                      • girishG girish

                        I did give it a try but it seems it doesn't support any authentication...

                        rmdesR Offline
                        rmdesR Offline
                        rmdes
                        wrote on last edited by
                        #10

                        @girish Hmm indeed, that's bad... couldn't some kind of basic auth be used instead a bit like the Youtube-DL app ?

                        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