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. Java support for LAMP?

Java support for LAMP?

Scheduled Pinned Locked Moved LAMP
7 Posts 3 Posters 1.2k 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.
  • necrevistonnezrN Online
    necrevistonnezrN Online
    necrevistonnezr
    wrote on last edited by
    #1

    I'm wondering if it's possible to add Java support to the LAMP app.

    Reason: Filerun supports full-text-indexing and -search via Apache Tika and it seems quite easy...: https://docs.filerun.com/doku.php?id=file_indexing&rev=1592721884

    Apache Tika is used for extracting text contents from non-plain-text files, such as PDFs or office files.
    Note: Your server needs to have Java support, in order to run Apache Tika.
    You can read more about Apache Tika here: https://tika.apache.org

    Running Tika in command line mode:

    • Download the tika-app-[*].jar (note the app part in the file's name) file from here: https://tika.apache.org/download.html
    • Set the path to the tika-app-[*].jar file inside FileRun's control panel

    That's it!

    girishG 1 Reply Last reply
    3
    • necrevistonnezrN necrevistonnezr

      I'm wondering if it's possible to add Java support to the LAMP app.

      Reason: Filerun supports full-text-indexing and -search via Apache Tika and it seems quite easy...: https://docs.filerun.com/doku.php?id=file_indexing&rev=1592721884

      Apache Tika is used for extracting text contents from non-plain-text files, such as PDFs or office files.
      Note: Your server needs to have Java support, in order to run Apache Tika.
      You can read more about Apache Tika here: https://tika.apache.org

      Running Tika in command line mode:

      • Download the tika-app-[*].jar (note the app part in the file's name) file from here: https://tika.apache.org/download.html
      • Set the path to the tika-app-[*].jar file inside FileRun's control panel

      That's it!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @necrevistonnezr would the idea be to use the "Install Apache Tika (Command line mode)" ?

      necrevistonnezrN 1 Reply Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #3

        Here is what FileRun shows in the search config for Tika:
        90a341e4-797e-4aa2-a625-9bd50503b8ba-image.png

        So it can either run as an app, which means you need java to run the .jar

        OR

        You can run it as a server, if it were a Cloudron App.
        (we can try this by using a surrogate java App and find the internal IP 172.x.x.x:9998 )

        Conscious tech

        1 Reply Last reply
        2
        • girishG girish

          @necrevistonnezr would the idea be to use the "Install Apache Tika (Command line mode)" ?

          necrevistonnezrN Online
          necrevistonnezrN Online
          necrevistonnezr
          wrote on last edited by
          #4

          @girish said in Java support for LAMP?:

          @necrevistonnezr would the idea be to use the "Install Apache Tika (Command line mode)" ?

          As @robi explained - Running the jar as an app seems a lot easier(?)

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #5

            So I got to try this..

            Installed Metabase, which has java, and from it's CLI ran the tika server which started on localhost:9998

            So far so good, then I went to the FileRun LAMP App and tried to connect:
            5c899daa-de12-471f-a950-1d0f60bbea0a-image.png
            Then to the LAMP Terminal:

            root@7cc9dc8b-e60f-4150-80f1-ff18d13dd924:/app/code# telnet 172.18.18.208 9998
            Trying 172.18.18.208...
            telnet: Unable to connect to remote host: Connection refused
            root@7cc9dc8b-e60f-4150-80f1-ff18d13dd924:/app/code# ping 172.18.18.208
            bash: /usr/bin/ping: Operation not permitted
            

            Right, needs to listen on the right host/IP

            Back to Metabase Terminal (you can run it with --help for all the options):
            # java -jar tika-server-standard-2.3.0.jar -h 172.18.18.208 &

            You can find the IP via ifconfig

            a9bcdd67-fc18-4bd8-b938-45e619fc1f24-image.png

            Not sure how to get any search results, as it seems to expect elastic search nodes for any indexing.. so Tika doesn't seem useful on it's own???

            I was hoping for plain text file search results too, but that doesn't appear to be happening either.

            Conscious tech

            necrevistonnezrN 1 Reply Last reply
            2
            • robiR robi

              So I got to try this..

              Installed Metabase, which has java, and from it's CLI ran the tika server which started on localhost:9998

              So far so good, then I went to the FileRun LAMP App and tried to connect:
              5c899daa-de12-471f-a950-1d0f60bbea0a-image.png
              Then to the LAMP Terminal:

              root@7cc9dc8b-e60f-4150-80f1-ff18d13dd924:/app/code# telnet 172.18.18.208 9998
              Trying 172.18.18.208...
              telnet: Unable to connect to remote host: Connection refused
              root@7cc9dc8b-e60f-4150-80f1-ff18d13dd924:/app/code# ping 172.18.18.208
              bash: /usr/bin/ping: Operation not permitted
              

              Right, needs to listen on the right host/IP

              Back to Metabase Terminal (you can run it with --help for all the options):
              # java -jar tika-server-standard-2.3.0.jar -h 172.18.18.208 &

              You can find the IP via ifconfig

              a9bcdd67-fc18-4bd8-b938-45e619fc1f24-image.png

              Not sure how to get any search results, as it seems to expect elastic search nodes for any indexing.. so Tika doesn't seem useful on it's own???

              I was hoping for plain text file search results too, but that doesn't appear to be happening either.

              necrevistonnezrN Online
              necrevistonnezrN Online
              necrevistonnezr
              wrote on last edited by necrevistonnezr
              #6

              @robi from https://docs.filerun.com/file_indexing

              Please note that old/existing files will not be automatically indexed. If you wish to index these files, please see the available utility command lines.
              To test the configuration, run the following from the FileRun server's command line:

              cd /path/to/filerun/cron
              php process_search_index_queue.php
              

              It will show the progress of processing the search indexing queue. It will extract file contents using Apache Tika and send it to Elasticsearch for indexing.

              So it seems, you need both Tika and Elastic 😰
              Existing files need to be indexed via command line

              There‘s a docker with elastic and tika included : https://docs.filerun.com/docker-tika

              robiR 1 Reply Last reply
              0
              • necrevistonnezrN necrevistonnezr

                @robi from https://docs.filerun.com/file_indexing

                Please note that old/existing files will not be automatically indexed. If you wish to index these files, please see the available utility command lines.
                To test the configuration, run the following from the FileRun server's command line:

                cd /path/to/filerun/cron
                php process_search_index_queue.php
                

                It will show the progress of processing the search indexing queue. It will extract file contents using Apache Tika and send it to Elasticsearch for indexing.

                So it seems, you need both Tika and Elastic 😰
                Existing files need to be indexed via command line

                There‘s a docker with elastic and tika included : https://docs.filerun.com/docker-tika

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #7

                @necrevistonnezr yes, a bit disappointed that it's not even doing plain text search as it seems to indicate before setting up Tika for looking into PDFs and even OCR if ones add Tesseract.

                Perhaps a different workflow can be had once its files are mounted via webDAV and a local search done.

                Conscious tech

                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