Quick and dirty install Wiki.js on Fedora 27
-
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 prereqsdnf 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
Navigate to your system and follow the wizard
http://ip.add.re.ss:3000
-
@jaredbusch Very helpful thanks.
-
No with Pictures!!
Navigate to the raw IP (or DNS name) and port 3000 to begin the setup wizard.
Click Start.
It will verify things. Click continue.
This screen is the important one. This is where you determine how to access it going forward.
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).
Read and understand what you need to do if you are using a proxy.
Mongo should connect if you followed the above instructions.
Unless you are snowflaking the system on purpose, leave this alone.
Skip this for now unless you really know what you are doing.
This is what you see whether you configure or skip.
Create your initial admin account
Start the Wiki up.
You will see this in the GUI
And you will see this on the CLI.
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.
-
Nice work. Are you documenting putting a reverse proxy in front of this, or are you only using it internally?
-
@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.
-
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 topm2.pid
. -
@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?
-
@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.
-
@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!
-
@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.
-
@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
-
@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.
-
@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 -
added some screenshots in post 3.
https://mangolassi.it/topic/16171/quick-and-dirty-install-wiki-js-on-fedora-27/3
-
@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.
@JaredBusch Did you get this fixed?
Having the same issue behind NGINX reverse proxy
-