105Xwiki - amagerard/Wiki GitHub Wiki
| 1- Network | 2- Java | 3- Tomcat | 4- Mariadb | 5- Xwiki | 
|---|---|---|---|---|
| 6- Nginx | 7- selinux | 8- GnomeShell | 9 Troubleshoots | 
systemctl stop tomcat
su - tomcat
wget -P /opt/tomcat https://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/platform/xwiki-platform-distribution-war/17.1.0/xwiki-platform-distribution-war-17.1.0.war
mv /opt/tomcat/xwiki-platform-distribution-war-17.1.0.war /opt/tomcat/webapps/xwiki.war
exit
systemctl start tomcat
Wait one minute.
systemctl stop tomcat
su - tomcat
rm /opt/tomcat/webapps/xwiki.war
cp /opt/tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml /opt/tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml_ori
vi /opt/tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml
The lines starting with ## should not be written in the script.
account: xwiki
password: 641fqAB4d
   <!-- Configuration for the default database.  
## It's not in the script: removing arrow <!-- and --> until the line  <mapping resource="mailsender.hbm.xml"/>  
<property name="hibernate.connection.url">jdbc:hsqldb:file:${environment.permanentDirectory}/database/xwiki_db;shutdown=true</property>  
    <property name="hibernate.connection.username">sa</property>  
    <property name="hibernate.connection.password"></property>  
    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>  
  
    <property name="hibernate.connection.charSet">UTF-8</property>  
    <property name="hibernate.connection.useUnicode">true</property>  
    <property name="hibernate.connection.characterEncoding">utf8</property>  
  
    <mapping resource="xwiki.hbm.xml"/>  
    <mapping resource="feeds.hbm.xml"/>  
    <mapping resource="instance.hbm.xml"/>  
    <mapping resource="notification-filter-preferences.hbm.xml"/>  
    <mapping resource="mailsender.hbm.xml"/>  
## It's not in the script: add arrow  --> before line  <!-- MySQL configuration  
-->  
 <!-- MySQL configuration.  
<!-- MariaDB configuration.  
## It's not in the script: add arrow  --> before line  <property name="hibernate.connection.url">jdbc:mariadb ....  
-->  
    <property name="hibernate.connection.url">jdbc:mariadb://localhost/xwiki?useSSL=false</property>  
    <property name="hibernate.connection.username">xwiki</property>  
    <property name="hibernate.connection.password">641fqAB4d</property>  
    <property name="hibernate.connection.driver_class">org.mariadb.jdbc.Driver</property>  
## It's not in the script: add arrow <!-- before line  <property name="hibernate.dbcp.poolPreparedStatements ....  
    <!--  
    <property name="hibernate.dbcp.poolPreparedStatements">true</property>  
    <property name="hibernate.dbcp.maxOpenPreparedStatements">20</property>  
## It's not in the script: add arrow --> before line   <property name="hibernate.connection.charSet"...  
    -->  
    <property name="hibernate.connection.charSet">UTF-8</property>  
    <property name="hibernate.connection.useUnicode">true</property>  
    <property name="hibernate.characterEncoding">utf8</property>  
  
    <mapping resource="xwiki.hbm.xml"/>  
    <mapping resource="feeds.hbm.xml"/>  
    <mapping resource="instance.hbm.xml"/>  
    <mapping resource="notification-filter-preferences.hbm.xml"/>  
    <mapping resource="mailsender.hbm.xml"/>  
## It's not in the script: remove arrow --> before line  <!-- HSQLDB configuration.  
    <!-- HSQLDB configuration.  
The hibernate.cfg.xml file is very important because if there is a syntax error like a forgotten arrow, your xwiki will not start.
mariadb-java-client.jar is very important because if not present your xwiki will not start.
wget -P /opt/tomcat/webapps/xwiki/WEB-INF/lib/   https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/3.5.2/mariadb-java-client-3.5.2.jar
exit
systemctl restart tomcat
First access to xwiki.
Ip xwiki server : 192.168.60.44.
http://localhost:8080/xwiki  ou http://192.168.60.44:8080/xwiki
Loading Xwiki 11% up to 50%.
First page: Distribution wizard Continue.
Step 1 - Admin user.
FIRST NAME:admin.
LAST NAME:xwiki.
USERNAME:adminxwiki.
PASSWORD and CONFIRM PASSWORD:as you want.
EMAIL ADDRESS:as you want.
Register and login.
Step 1 - Admin user:You are connected with user admin xwiki.
Continue.
Step 2 - Flavor.
Press the F5 key to update the page (if nothing on the screen).
Step 2 - Flavor.
Click on gray color XWiki Standard Flavor.
Install this flavor.
Install.
Continue.
The installation takes a long time.
Continue.
Wait a little time.
Step 5 - Report.
Continue.
Wait a little time.
Welcome to XWiki:Next
After 7 Next and  End tour.
To change the localization.
Click on the Icon Drawer  on the top right corner.
Select Administer Wiki.
Select Content.
Select Localization.
Change DEFAULT LANGUAGE  and TIMEZONE.
Save.
At  the end.
systemctl stop tomcat
su - tomcat
vi /opt/tomcat/webapps/xwiki/WEB-INF/xwiki.cfg
xwiki.store.migration=0  
exit
systemctl start tomcat
Ip xwiki server : 192.168.60.44.
http://192.168.60.44:8080/xwiki
Open a session.
Xwiki is ready.