Since XWiki 3.3, it's possible to download and install automatically XWiki and every component needed for a production instance in a one shot, with the help of our new .deb packages, into our repository.

This method must work on every debian-based linux distribution. Feel free to use the Mailing List to report an issue, or discuss about it.

First Step : APT Configuration

First, you have to configure your package manager in order to use xwiki's repository. This can done simply, using this command:

sudo echo "deb http://maven.xwiki.org/ stable/" >> /etc/apt/sources.list

Now you can update the packages database to read the data from this repository.
sudo apt-get update

I'll assume you're using APT tools. You can use Aptitude as well.

Now you can make a little search to see what this repo offers.

apt-cache search xwiki

It shows the following packages:

  • xwiki-enterprise-common - XWiki enterprise common package
  • xwiki-enterprise-tomcat-mysql - XWiki enterprise Tomcat/MySQL based package
  • xwiki-enterprise-tomcat-pgsql - XWiki enterprise Tomcat/PostgreSQL

Second Step : Complete Installation

Using MySQL

As you may now, you only have to run this command to install all the interesting components.
apt-get install xwiki-enterprise-tomcat-mysql

This virtual package depends on xwiki-enterprise-common, mysql-server, tomcat6 and libmysql-java.

During the installation, you may have some questions from dbconfig, in charge of the configuration of the database. Don't confuse it with the MySQL root password prompt, which beg you to put a password for the superuser. DBconfig prompt is about the configuration of xwiki and mysql. If you haven't any mysql already installed and you aren't familiar with it, you should let dbconfig handle this.
DB config is then asking you for the mysql root password (you may have entered before). Then, you can choose the password of "xwiki" mysql user. This user will be used to connect from XWiki application, choose is wisely, but you don't have to pay a lot of attention to it, because after that, dbconfig is configuring automatically XWiki with these credentials.

The installation now ends, with the automatic start of tomcat daemon ("Starting Tomcat servlet engine tomcat6      [OK]").

You can now point your favorite browse to the following URL to use your wiki!
http://localhost:8080/xwiki

 Note that your wiki is absolutely empty, like a WAR installation. You have to go to the administration, and import the default XAR package (link above the upload form). Or you can import a wiki from another instance for example (XAR export/import).

Tags:
   

Get Connected