04Wikijs - amagerard/Wiki GitHub Wiki

HOME

Return to the list of wikis

RedHat10/Wikijs

1- Network 2- NodejsRedis 3- MariaDB 4- Wikijs 5- Nginx
6- Selinux 7- UpdateWikijs 8- Backup 9- GnomeShell 10 Troubleshoots

4. wikijs

4.1 Create the system wikijs user.

groupadd wikijs
useradd -g wikijs -d /opt/wikijs wikijs

4.2 Installation.

su - wikijs
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
mkdir wiki
tar xvzf wiki-js.tar.gz -C ./wiki
mv ./wiki/config.sample.yml ./wiki/config.yml
exit

4.3 Configuration.

su - wikijs
vi ./wiki/config.yml

db:  
type: mariadb  
  
# PostgreSQL / MySQL / MariaDB / MS SQL Server only:  
host: localhost  
port: 3306  
user: wikijs  
pass: 641fqAB4d  
db: wikijs  
ssl: false  

exit

4.4 First start.

cd /opt/wikijs/wiki
node server
CTRL + c for exit.

If you have installed on the wikijs server GnomeShell and Firefox.
http://localhost:3000

From another computer.
http:<IP>:3000

You will need to open port 3000 for internal http access.
ufw allow in from any to any port 3000

From the Wikijs server,
open the url : http://wikijs.domain:3000 or http://<Your IP>:3000
Enter a username@domain for the administration and the password.
Example : [email protected] password : 876kijg4
http://wikijs.ol26modk.com:3000
The web page http://wikijs.ol26modk.com:3000 is now accessible.

4.5 Create the wikijs service.

Create a startup service for wikijs.
vi /etc/systemd/system/wikijs.service

[Unit]  
Description=Wiki.js  
After=network.target  
  
[Service]  
Type=simple  
# Maybe in future versions there will be no options to the node command.  
ExecStart=/usr/bin/node --openssl-config=' '  server  
Restart=always  
# Consider creating a dedicated user for Wiki.js here:  
User=wikijs  
Group=wikijs  
Environment=NODE_ENV=production  
WorkingDirectory=/opt/wikijs/wiki/  
  
[Install]  
WantedBy=multi-user.target  

systemctl enable --now wikijs

⚠️ **GitHub.com Fallback** ⚠️