ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Quick and dirty install Wiki.js on Fedora 27

    IT Discussion
    wiki.js
    5
    16
    1.6k
    Loading More Posts
    • 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.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      This is nothing like a full set of instructions from me, and I will rectify that later.

      But I am out of free time for a while and thought I would at least toss this at you all.

      Start with Fedora 27 Minimal
      Install prereqs

      dnf install -y tar git mongodb-server
      

      Set MongoDB to start.

      systemctl start mongod
      systemctl enable mongod
      

      Install NVM to manage node

      cd ~
      curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
      nvm ls-remote
      nvm install v8.9.4
      

      Allow the default port through the firewall

      firewall-cmd --add-port=3000/tcp --permanent
      firewall-cmd --reload
      

      Create a folder to put your wiki in and then download it there

      mkdir /opt/wiki
      cd /opt/wiki
      curl -sSo- https://wiki.js.org/install.sh | bash
      
      [root@wiki wiki]# curl -sSo- https://wiki.js.org/install.sh | bash
      
      
       __    __ _ _    _    _     
      / / /\ \ (_) | _(_)  (_)___ 
      \ \/  \/ / | |/ / |  | / __| 
       \  /\  /| |   <| |_ | \__ \ 
        \/  \/ |_|_|\_\_(_)/ |___/ 
                         |__/
         < INSTALL >
      
      [1/3] Fetching latest build...
      [2/3] Fetching dependencies...
      [3/3] Creating config file...
      -> Installation Complete
      
      Thank you for installing Wiki.js!
      Please consider donating to our open collective to help maintain this project:
      https://opencollective.com/wikijs/donate
      
      - Launch configuration wizard: node wiki configure
      - Start Wiki.js server: node wiki start
      

      Setup SELinux to know this is a directory needing httpd_rw

      semanage fcontext -a -t httpd_sys_rw_content_t "/opt/wiki(/.*)?"
      restorecon -R -F /opt/wiki
      

      Start the setup wizard

      node wiki configure
      

      0_1516998476363_9cc18b06-e5b6-47e4-b552-60d625d6af9b-image.png
      Navigate to your system and follow the wizard
      http://ip.add.re.ss:3000

      wirestyle22W 1 Reply Last reply Reply Quote 6
      • wirestyle22W
        wirestyle22 @JaredBusch
        last edited by

        @jaredbusch Very helpful thanks.

        1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch
          last edited by JaredBusch

          No with Pictures!!

          Navigate to the raw IP (or DNS name) and port 3000 to begin the setup wizard.
          Click Start.
          0_1521132094868_94b16f99-ec79-4a05-9214-1559ef179041-image.png

          It will verify things. Click continue.
          0_1521132136299_05fd8a2d-af61-4182-92e7-c4613b7c564b-image.png

          This screen is the important one. This is where you determine how to access it going forward.
          0_1521132385008_c1693caf-7f60-4ff7-b7d0-5d0a4827e87b-image.png

          Fill in the name with whatever you want and the host with your real FQDN. if you are gong to be using SSL on your proxy, populate this with https.
          I will always recommend that you put a proxy in front of a nodejs application. So because of that, set this to be port 3000 (we already opened the firewall for this).
          0_1521132682485_a6b50d58-5c87-4393-949b-6d28f35bc5da-image.png

          Read and understand what you need to do if you are using a proxy.
          0_1521132728426_daac1ccb-eb1f-4957-89ef-4c83d9035564-image.png

          Mongo should connect if you followed the above instructions.
          0_1521132776516_53c9d7e9-cff5-40dd-b51d-e68cb9ec274c-image.png
          0_1521132795438_f24ba259-7019-4a94-8411-8a7f245273f3-image.png

          Unless you are snowflaking the system on purpose, leave this alone.
          0_1521132826805_cdb59dd7-0df8-45df-891e-f6c4c2be2d4a-image.png

          Skip this for now unless you really know what you are doing.
          0_1521132871834_948756f4-06f7-4c43-956e-d52edfb1a7ec-image.png

          This is what you see whether you configure or skip.
          0_1521132928270_d8374491-ab07-4b5b-bb76-874de5264d60-image.png

          Create your initial admin account
          0_1521133010501_f1a64f3e-cf68-4524-b584-9ed137e3066b-image.png

          Start the Wiki up.
          0_1521133036418_5de3dea9-4817-48d8-a0a1-43659ec7aac1-image.png

          You will see this in the GUI
          0_1521133126281_172b5360-0411-497a-8a45-4ddb808da5f7-image.png

          And you will see this on the CLI.
          0_1521133107652_6967a8c2-3c36-4758-9026-39c314b0353d-image.png

          This brings it to here. I'm not sure why the system is not showing the css. Probably because I do not have my proxy setup right yet.
          0_1521133945975_e56999fa-d7c4-4bd6-a27e-d8ecc13ea318-image.png

          A 1 Reply Last reply Reply Quote 1
          • AdamFA
            AdamF
            last edited by

            Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @AdamF
              last edited by

              @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

              Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

              Yes, I have a Nginx proxy in front. But that is on another box.

              AdamFA 1 Reply Last reply Reply Quote 0
              • black3dynamiteB
                black3dynamite
                last edited by

                If you want to have wiki.js autostart after reboot. You can install pm2 and tell pm2 to configure itself as a startup service.

                But before installing pm2 and configuring it, you will want to temporary set SELinux to permissive and also install setroubleshoot-server. After installing and configuring pm2. You will end up having to run these commands.

                ausearch -c 'systemd' --raw | audit2allow -M my-systemd
                semodule -i my-systemd.pp
                

                You'll get that info from running sealert -a /var/log/audit/audit.log.
                SystemD needs read access to pm2.pid.

                1 Reply Last reply Reply Quote 1
                • AdamFA
                  AdamF @JaredBusch
                  last edited by

                  @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                  @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                  Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                  Yes, I have a Nginx proxy in front. But that is on another box.

                  I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @AdamF
                    last edited by

                    @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                    @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                    @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                    Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                    Yes, I have a Nginx proxy in front. But that is on another box.

                    I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                    Yes.

                    AdamFA 1 Reply Last reply Reply Quote 0
                    • AdamFA
                      AdamF @JaredBusch
                      last edited by

                      @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                      @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                      @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                      @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                      Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                      Yes, I have a Nginx proxy in front. But that is on another box.

                      I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                      Yes.

                      Another project for the list!

                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @AdamF
                        last edited by

                        @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                        @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                        @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                        @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                        @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                        Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                        Yes, I have a Nginx proxy in front. But that is on another box.

                        I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                        Yes.

                        Another project for the list!

                        I have instructions for CentOS7 on here. shoudl be the same.

                        AdamFA 1 Reply Last reply Reply Quote 0
                        • AdamFA
                          AdamF @JaredBusch
                          last edited by

                          @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                          @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                          @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                          @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                          @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                          @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                          Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                          Yes, I have a Nginx proxy in front. But that is on another box.

                          I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                          Yes.

                          Another project for the list!

                          I have instructions for CentOS7 on here. shoudl be the same.

                          Referring to this one, I assume...https://mangolassi.it/topic/6905/setting-up-nginx-on-centos-7-as-a-reverse-proxy

                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @AdamF
                            last edited by

                            @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                            @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                            @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                            @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                            @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                            @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                            @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                            Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                            Yes, I have a Nginx proxy in front. But that is on another box.

                            I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                            Yes.

                            Another project for the list!

                            I have instructions for CentOS7 on here. shoudl be the same.

                            Referring to this one, I assume...https://mangolassi.it/topic/6905/setting-up-nginx-on-centos-7-as-a-reverse-proxy

                            Yes. There is nothing special in setting up NginX on CentOS versus Fedora.

                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @JaredBusch
                              last edited by

                              @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                              @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                              @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                              @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                              @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                              @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                              @jaredbusch said in Quick and dirty install Wiki.js on Fedora 27:

                              @fuznutz04 said in Quick and dirty install Wiki.js on Fedora 27:

                              Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?

                              Yes, I have a Nginx proxy in front. But that is on another box.

                              I think to do this properly, I should put up Nginx in front as well. If I were to just put Wiki.js on a VPS, I could put Nginx on the same box, correct?

                              Yes.

                              Another project for the list!

                              I have instructions for CentOS7 on here. shoudl be the same.

                              Referring to this one, I assume...https://mangolassi.it/topic/6905/setting-up-nginx-on-centos-7-as-a-reverse-proxy

                              Yes. There is nothing special in setting up NginX on CentOS versus Fedora.

                              and I made a new guide for that now.
                              https://mangolassi.it/topic/16651/install-nginx-as-a-reverse-proxy-on-fedora-27

                              1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch
                                last edited by

                                added some screenshots in post 3.

                                https://mangolassi.it/topic/16171/quick-and-dirty-install-wiki-js-on-fedora-27/3

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alex Sage @JaredBusch
                                  last edited by Alex Sage

                                  @JaredBusch said in Quick and dirty install Wiki.js on Fedora 27:

                                  This brings it to here. I'm not sure why the system is not showing the css. Probably because I do not have my proxy setup right yet.
                                  0_1521133945975_e56999fa-d7c4-4bd6-a27e-d8ecc13ea318-image.png

                                  @JaredBusch Did you get this fixed?

                                  Having the same issue behind NGINX reverse proxy

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Alex Sage
                                    last edited by

                                    Nevermind.

                                    https://docs.requarks.io/wiki/administration/setup-nginx-reverse-proxy

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post