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

    Installing Wiki.js on CentOS 7

    IT Discussion
    wiki.js wiki centos centos 7 howto
    8
    41
    8.5k
    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.
    • M
      MikaH67 @MikaH67
      last edited by

      @mikah67

      Hmm i have progress :smiling_face_with_open_mouth_closed_eyes:

      When i try a other port in the configuration (tcp/8080) i have a other result. But..

      0_1521044767735_Capture du 2018-03-14 17-25-42.png image url)

      The language is french :smiling_face_with_open_mouth_closed_eyes:

      I search next.

      Thanks for help

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        That looks like it is running fine, but likely you are using an IP address and it was configured for a URL or vice versa. It's not picking up the images.

        M 1 Reply Last reply Reply Quote 1
        • M
          MikaH67 @scottalanmiller
          last edited by

          @scottalanmiller Yep, i have use now a dns for connect me.

          When i let the port 80 in configuration i have the same issue.

          When i use the port 8080 in configuration it's works ! But when i change a page, it's redirect at port 80.. And i need te insert manually the port 8080 in the url.

          I suppose it's a problem with the redirect and or node.js (Version v6.12.3).

          I will try to reinstall it 🙂

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @MikaH67
            last edited by

            @mikah67 said in Installing Wiki.js on CentOS 7:

            @scottalanmiller Yep, i have use now a dns for connect me.

            When i let the port 80 in configuration i have the same issue.

            When i use the port 8080 in configuration it's works ! But when i change a page, it's redirect at port 80.. And i need te insert manually the port 8080 in the url.

            I suppose it's a problem with the redirect and or node.js (Version v6.12.3).

            I will try to reinstall it 🙂

            DNS redirects do not handle ports, that would cause the issue.

            M 1 Reply Last reply Reply Quote 1
            • M
              MikaH67 @scottalanmiller
              last edited by

              @scottalanmiller

              hmm okey !

              Which version use you of node.js ?

              I will try a new install

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

                @mikah67 said in Installing Wiki.js on CentOS 7:

                @scottalanmiller

                hmm okey !

                Which version use you of node.js ?

                I will try a new install

                What are you doing trying to get things on weird ports?

                The defualt port for Wiki.js is port 3000.

                @scottalanmiller's instructions override that to port 4573 for whatever reason.

                When you set this up, just keep thing default.

                Also realize that if you are not putting a reverse proxy in front of this, that you need to configure the webstire URL in the web configuraiton step to use the port also.

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

                  @jaredbusch

                  At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.
                  It's just after that i try with different "weird ports" .
                  It's my first experience with node.js , i think i have missed something .
                  I will try your tutorial with Fedora27 and nvm.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @MikaH67
                    last edited by

                    @mikah67 said in Installing Wiki.js on CentOS 7:

                    @jaredbusch

                    At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.

                    DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.

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

                      @scottalanmiller said in Installing Wiki.js on CentOS 7:

                      @mikah67 said in Installing Wiki.js on CentOS 7:

                      @jaredbusch

                      At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.

                      DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.

                      WTF? DNS points to an IP always. It has nothing to do with any port, 80 or otherwise.

                      You set up your DNS entry and unless you choose to use port 80 (http) or port 443 (https) you are required to use the port always.

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

                        @jaredbusch said in Installing Wiki.js on CentOS 7:

                        @scottalanmiller said in Installing Wiki.js on CentOS 7:

                        @mikah67 said in Installing Wiki.js on CentOS 7:

                        @jaredbusch

                        At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.

                        DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.

                        WTF? DNS points to an IP always. It has nothing to do with any port, 80 or otherwise.

                        That's what I just literally said "DNS can't point to ports." If you use the standard, DNS points to the service because of not needing to specify a port. If a port must be specific DNS can't point to the service.

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MikaH67 @scottalanmiller
                          last edited by

                          @scottalanmiller @JaredBusch

                          Yes sorry i know with dns and port :upside-down_face: but it's because my bad English who create confusion. :pensive_face: i make a bad describe

                          1 Reply Last reply Reply Quote 2
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            It's okay. What error are you getting now.

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MikaH67 @scottalanmiller
                              last edited by MikaH67

                              @scottalanmiller

                              Aha it's fine now :smiling_face_with_open_mouth_smiling_eyes:

                              I've make a new instalation FROM SCRATCH :upside-down_face: . I've take the last iso from centOS 7.3 minimal.

                              I have try a newer node.js version(v8.10.0)

                              For requirement :

                              Install git :

                              sudo yum groupinstall "Development Tools"
                              sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
                              
                              cd /opt/
                              wget https://github.com/git/git/archive/v2.16.2.tar.gz
                              tar -zxf v2.16.2.tar.gz 
                              cd git-2.16.2/
                              
                              make configure
                              ./configure --prefix=/usr/local
                              sudo make install
                              git --version
                              
                              

                              Install mongodb :

                              vim /etc/yum.repos.d/mongodb-org-3.6.repo
                              sudo yum install -y mongodb-org
                              semanage port -a -t mongod_port_t -p tcp 27017
                              systemctl enable mongod
                              systemctl start mongod
                              mongod --version
                              

                              Install NodeJs :

                              curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
                              yum install -y nodejs
                              sudo yum install gcc-c++ make
                              node --version
                              

                              I have let the default port (80) and create
                              Now it's work fine !
                              I will try with a web server in frontal now (nginx)
                              Thanks for help and patience :smiling_face_with_open_mouth_cold_sweat:

                              scottalanmillerS 1 Reply Last reply Reply Quote 1
                              • scottalanmillerS
                                scottalanmiller @MikaH67
                                last edited by

                                @mikah67 Glad that it is working!

                                As a general rule, just do a yum -y update before starting an installation to make sure you are fully updated, regardless of which CentOS 7 version you started with.

                                1 Reply Last reply Reply Quote 2
                                • 1
                                • 2
                                • 3
                                • 2 / 3
                                • First post
                                  Last post