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.10.0/xwiki-platform-distribution-war-17.10.0.war
mv /opt/tomcat/xwiki-platform-distribution-war-17.10.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
In this file, commented lines are not marked with "#".
To comment on a line or a set of lines.
It starts with "<!--" and ends with "-->'.
You must comment out all the lines in "Configuration for the default database". For me, using the vim editor, all the lines are green.
You must uncomment the lines in the "MariaDB configuration". And only those lines. Then you will change the xwiki password.
account: xwiki password: 641fqAB4d
<!-- MariaDB configuration.
Uncomment if you want to use MariaDB and comment out other database configurations.
Notes:
- if you want the main wiki database to be different than "xwiki"
you will also have to set the property xwiki.db in xwiki.cfg file
-->
<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>
<!--
<property name="hibernate.dbcp.poolPreparedStatements">true</property>
<property name="hibernate.dbcp.maxOpenPreparedStatements">20</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"/>
<!-- 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.6/mariadb-java-client-3.5.6.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.