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. Matomo
  3. Connect Matomo DB in External Application

Connect Matomo DB in External Application

Scheduled Pinned Locked Moved Matomo
6 Posts 3 Posters 31 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.
  • W Offline
    W Offline
    webliska
    wrote last edited by
    #1

    Hello,

    I want to know how I can connect the Matomo DB to my external web app based on PHP.

    If there is a way to connect, then please let me know. I need this to be done.

    Thanks!

    1 Reply Last reply
    1
    • J Offline
      J Offline
      joseph
      Staff
      wrote last edited by
      #2

      @webliska https://docs.cloudron.io/guides/connect-mysql/ possibly.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        webliska
        wrote last edited by
        #3

        No that's not what I want, I have already done that but I'm not asking for any external windows tool instead I need to fetch the data to my web application where I can use the data for analytics and monitoring.

        Let me know about that.

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote last edited by
          #4

          The two desktop apps are just used as an example of a common case. Generally it very much depends on your web applications stack and technology on how to connect to mysql and what kind of connection those libraries support.

          Maybe you can give more context there and potentially we can help. Overall as seen in the docs page, the database container is not exposed on the public interfaces, so the mysql connection would go via an ssh tunnel into the system and then connect to the container as mentioned there in those examples.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            webliska
            wrote last edited by
            #5

            I mentioned that my web app is based on PHP & mysql and I need help with that.

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote last edited by
              #6

              Ah ok, I am not a PHP developer, not sure what libraries for php there are to connect to a mysql instance via an SSH tunnel, maybe someone with more PHP knowledge has some recommendations?

              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