101Network - amagerard/Wiki GitHub Wiki

HOME

Return to the list of wikis

RedHat/Xwiki

1- Network 2- Java 3- Tomcat 4- Mariadb 5- Xwiki
6- Nginx 7- selinux 8- GnomeShell 9 Troubleshoots

1. Network.

1.1 Prerequisites.

This is the Redhat 9.5 version.
RedHat may ask you to make a new subscription.
subscription-manager register --username <username> --password <password> --auto-attach --force

Xwiki imposes prerequisites:
March 2, 2025
https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/17.1.0/

  • mariadb 11.7.2.
  • tomcat 10.1.36.
  • java-21-openjdk.
  • xwiki 17.1.0.
  • mariadb-java-client-3.5.2.jar.

The status of selinux is permissive.
getenforce
If the command result is Enforcing you must pass it as permissive.

vi /etc/crontab

@reboot root setenforce 0  

Xwiki and tomcat need 6G disk space.
lvextend -L+4G /dev/vgl0/opt
resize2fs /dev/vgl0/opt

Restart the server.
reboot

1.2 Network Setup.

This procedure is based on this example.
My username is teacher.
IP xwiki:     192.168.60.44/24.
Gateway :   192.168.60.254.
Ip dns1 :     192.168.90.41/24.
Domain :     ol26modk.com.
Names Server:
xwiki.ol26modk.com.
dns1.ol26modk.com.

vi /etc/hostname

xwiki  

Au prompt vous aurez : teacher@xwiki.

vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4  
192.168.60.44  xwiki.ol26modk.com  xwiki  

vi /etc/sysconfig/network

 # Created by anaconda  
# # Created by anaconda  
 networking=yes  
 HOSTNAME=xwiki.ol26modk.com  

Change Network.
Example:
IP: 192.168.60.44/24.
Gateway: 192.168.60.254.
Name Server: 192.168.90.41.
Search domain: ol26modk.com.
nmcli con mod eth0 ipv4.method "manual" ipv4.addresses 192.168.60.44/24
nmcli con mod eth0 ipv4.gateway 192.168.60.254
nmcli con mod eth0 ipv4.dns 192.168.90.41
nmcli con mod eth0 ipv4.dns-search ol26modk.com

Read the new network configuration.
more /etc/NetworkManager/system-connections/eth0.nmconnection

Apply the new network configuration.

ifconfig eth0 0.0.0.0
systemctl restart NetworkManager
ifconfig eth0

Update :
dnf update

Restart the server.
reboot

1.3 Firewall.

Take over the rules of the TemplateVM firewall.
See Firewall Configuration.
Add the rules.

ufw allow 8080/tcp  

ufw status verbose

Status: active  
Logging: on (medium)  
Default: deny (incoming), deny (outgoing), disabled (routed)  
New profiles: skip  
  
 To                         Action      From  
--                         ------      ----  
22                         ALLOW IN    192.168.1.0/29  
80,443/tcp (WWW Full)      ALLOW IN    Anywhere  
8080/tcp                   ALLOW IN    Anywhere  
  
80,443/tcp (WWW Full)      ALLOW OUT   Anywhere  
25/tcp (SMTP)              ALLOW OUT   Anywhere  
53 (DNS)                   ALLOW OUT   Anywhere  
67,68/udp (DHCP)           ALLOW OUT   Anywhere  
123/udp (NTP2)             ALLOW OUT   Anywhere  
465/tcp (SMTP SSL)         ALLOW OUT   Anywhere  
587/tcp (SMTP TLS)         ALLOW OUT   Anywhere  
993/tcp (IMAP SSL)         ALLOW OUT   Anywhere  
143/tcp (IMAP TLS)         ALLOW OUT   Anywhere  
22/tcp (SSH)               ALLOW OUT   Anywhere  
⚠️ **GitHub.com Fallback** ⚠️