Installing Wiki.js on CentOS 7


  • Service Provider

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.



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

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.

    Wiki.js runs on pretty much any platform that supports the requirements below. However, the following environments are recommended and more thoroughly tested:
    
    Ubuntu Server 16.04 LTS
    Windows Server 2012 R2
    

    I did not interpret that to mean that the OS itself was more tested, but rather that had tested Wiki.js on these OSes more so than others. They make it clear it can run on any system though. I just chose to go with what they had claimed to have tested for and it's worked out for me thus far.



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

    Wiki.js is a NodeBB based modern wiki that can be installed on nearly any OS. We will run through a simple install on CentOS 7.

    I think you meant NodeJS here...


  • Service Provider

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

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

    Wiki.js is a NodeBB based modern wiki that can be installed on nearly any OS. We will run through a simple install on CentOS 7.

    I think you meant NodeJS here...

    Whoops, yes.



  • @zachary715 said in Installing Wiki.js on CentOS 7:

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

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.

    Wiki.js runs on pretty much any platform that supports the requirements below. However, the following environments are recommended and more thoroughly tested:
    
    Ubuntu Server 16.04 LTS
    Windows Server 2012 R2
    

    I did not interpret that to mean that the OS itself was more tested, but rather that had tested Wiki.js on these OSes more so than others. They make it clear it can run on any system though. I just chose to go with what they had claimed to have tested for and it's worked out for me thus far.

    To me, it seems better to stay away from Wiki.js until they take it more seriously.

    I don't really see any additional benefits to using it versus other solutions that seem to work better and offer more.



  • @tim_g said in Installing Wiki.js on CentOS 7:

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

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

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.

    Wiki.js runs on pretty much any platform that supports the requirements below. However, the following environments are recommended and more thoroughly tested:
    
    Ubuntu Server 16.04 LTS
    Windows Server 2012 R2
    

    I did not interpret that to mean that the OS itself was more tested, but rather that had tested Wiki.js on these OSes more so than others. They make it clear it can run on any system though. I just chose to go with what they had claimed to have tested for and it's worked out for me thus far.

    To me, it seems better to stay away from Wiki.js until they take it more seriously.

    I don't really see any additional benefits to using it versus other solutions that seem to work better and offer more.

    It does seem like they are lax on testing



  • @wirestyle22 said in Installing Wiki.js on CentOS 7:

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

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

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

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.

    Wiki.js runs on pretty much any platform that supports the requirements below. However, the following environments are recommended and more thoroughly tested:
    
    Ubuntu Server 16.04 LTS
    Windows Server 2012 R2
    

    I did not interpret that to mean that the OS itself was more tested, but rather that had tested Wiki.js on these OSes more so than others. They make it clear it can run on any system though. I just chose to go with what they had claimed to have tested for and it's worked out for me thus far.

    To me, it seems better to stay away from Wiki.js until they take it more seriously.

    I don't really see any additional benefits to using it versus other solutions that seem to work better and offer more.

    It does seem like they are lax on testing

    It's node so I don't think you will see much changing between platforms. VMware is running it on PhotonOS. I've run it on CentOS and Fedora and haven't had any issues. Small projects like this usually don't have time to test on a bunch of platforms. But again, since it's Node it should be fine on anything.



  • @stacksofplates said in Installing Wiki.js on CentOS 7:

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

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

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

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

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

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

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

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

    Why are people using CentOS for This? Nothing on their website says it has to be on this.

    Anyone using CentOS other than me? I'm using it because it is our existing standard platform for NodeJS deployments and we aren't moving from it anytime soon. I was asked to document my process, so I did. It should be even simpler to do it on Fedora, that's just not where I'm deploying right now.

    Yes, one other in another thread was talking about CentOS for some reason. While someone else said they used Ubuntu I believe.

    I used Ubuntu because it's what their documentation recommended.

    Sort of, @wirestyle22 and I dug into that and while the docs say that, it's also pretty clear that they just don't update the docs, sadly. And they only document an install of Debian. They are all over the place. They don't exactly recommend old OSes like Ubuntu 16.04 and Windows 2012 R2, but point out that they are "more tested", which should be obvious since they are old. But that's not the same as recommended.

    "More tested" doesn't mean "more stable", already broken down old things are often better tested than new, reliable ones. A barely functional 1975 Pinto is "better tested" than a brand new BMW 335i, but the new BMW is probably less likely to leave you stranded.

    They word things a bit funny there and between that and not updating well, it can lead you in some weird directions. Not that Ubuntu is bad, but I don't think that they intend to recommend it in any way.

    Wiki.js runs on pretty much any platform that supports the requirements below. However, the following environments are recommended and more thoroughly tested:
    
    Ubuntu Server 16.04 LTS
    Windows Server 2012 R2
    

    I did not interpret that to mean that the OS itself was more tested, but rather that had tested Wiki.js on these OSes more so than others. They make it clear it can run on any system though. I just chose to go with what they had claimed to have tested for and it's worked out for me thus far.

    To me, it seems better to stay away from Wiki.js until they take it more seriously.

    I don't really see any additional benefits to using it versus other solutions that seem to work better and offer more.

    It does seem like they are lax on testing

    It's node so I don't think you will see much changing between platforms. VMware is running it on PhotonOS. I've run it on CentOS and Fedora and haven't had any issues.

    @scottalanmiller has similar things to say about it. I'm definitely going to give it a whirl



  • But if there are concerns about the platform, just run it in either Docker or LXC/LXD. Then it makes no difference at all.



  • @scottalanmiller Thanks for documenting this. Going to install again tomorrow on either Cent or fedora


  • Service Provider

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

    @scottalanmiller Thanks for documenting this. Going to install again tomorrow on either Cent or fedora

    Fedora is a snap.



  • @fuznutz04 said in Installing Wiki.js on CentOS 7:

    @scottalanmiller Thanks for documenting this. Going to install again tomorrow on either Cent or fedora

    Yeah @scottalanmiller himself would tell you to install it on Fedora. He's just using CentOS because "it is our existing standard platform for NodeJS deployments" as he said.



  • @wirestyle22 said in Installing Wiki.js on CentOS 7:

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

    @scottalanmiller Thanks for documenting this. Going to install again tomorrow on either Cent or fedora

    Yeah @scottalanmiller himself would tell you to install it on Fedora. He's just using CentOS because "it is our existing standard platform for NodeJS deployments" as he said.

    I figured, as Fedora is the new "go to" around here.


  • Service Provider

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

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

    @scottalanmiller Thanks for documenting this. Going to install again tomorrow on either Cent or fedora

    Yeah @scottalanmiller himself would tell you to install it on Fedora. He's just using CentOS because "it is our existing standard platform for NodeJS deployments" as he said.

    Exactly.



  • Very good job thanks !!! 😁
    Was very usefull for my work.

    I'm beginning with Linux admin and i have a problem after installation. If someone have a idea ?

    The installation Complete good, i havn't set SSL configuration and skip the Git configuration. But after the 30seconds waiting at the end. I have a error page in my web browser..

    Where can i find log about this error ?


  • Service Provider

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

    Very good job thanks !!! 😁
    Was very usefull for my work.

    I'm beginning with Linux admin and i have a problem after installation. If someone have a idea ?

    The installation Complete good, i havn't set SSL configuration and skip the Git configuration. But after the 30seconds waiting at the end. I have a error page in my web browser..

    Where can i find log about this error ?

    Start in /var/log/nginx



  • @scottalanmiller Thanks for reply.

    Given that i don't use SSL, i havn't install a web server such Apache or Nginx.

    I use just Node.js.

    The instalation step work fine (Mongodb connexion OK) It's after the 30seconds wait. after the auto-refresh i'v a error page 😒


  • Service Provider

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

    @scottalanmiller Thanks for reply.

    Given that i don't use SSL, i havn't install a web server such Apache or Nginx.

    I use just Node.js.

    The instalation step work fine (Mongodb connexion OK) It's after the 30seconds wait. after the auto-refresh i'v a error page 😒

    Oh, that's going to be a lot more tricky.

    In your wiki.js deployment directory, there should be a logs directory. Check wiki-error-0.log in there.



  • @scottalanmiller

    Yep i have nothing in the "wiki-error-0.log" the files is empty.



  • @mikah67

    Hmm i have progress 😆

    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 😆

    I search next.

    Thanks for help


  • Service Provider

    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.



  • @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 🙂


  • Service Provider

    @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.



  • @scottalanmiller

    hmm okey !

    Which version use you of node.js ?

    I will try a new install


  • Service Provider

    @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.



  • @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.


  • Service Provider

    @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.


  • Service Provider

    @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.


  • Service Provider

    @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.



  • @scottalanmiller @JaredBusch

    Yes sorry i know with dns and port 🙃 but it's because my bad English who create confusion. 😔 i make a bad describe