Local installation


To install Dotclear locally, you need:

  • an Apache server
  • a MySQL database
  • PHP support

The WAMP5 software allows you to install a full environment featuring this prerequisites.


Wamp5 does not run on Windows 98 and Me; you need XP (any version). If you're using Windows Vista, you will need Wamp5 1.7.0 or above.

Download the software from the official site and install it on your computer.


WAMP5 has a compact installation: all the necessary files are copied to the installation directory, which is by default named wamp and located at the root of the boot drive. You are free to choose another location at the time of installation.

Dotclear 2 should then be downloaded, extracted and copied to the root directory of the server (www directory in wamp). You may find it useful to create a specific directory (for example dotclear) in www, if you wish to test other scripts or Dotclear installation locally.

Immediately place an empty directory named tmp into dotclear.

Once this is done, start Wamp. An icon should appear in your notification area (bottom-right corner of your screen) and informs you that the services (Apache and MySQL) are running.

A database named "test" is provided with Wamp5. That is the database we are going to use (if you wish to create another one, you can do it with PhpMyAdmin via the menu added by Wamp5 to the notification area).

Installing with the wizard:

Open you browser and go to: http://localhost/dotclear/admin/install/wizard.php

Below are the parameters required for the configuration:

  • Database type: MySQL
  • Hostname of the database: localhost
  • Name of the database: test (or the name of the database you have created if it is the case)
  • Username for the database: root
  • Password for the database: leave empty
  • Prefix for the database tables: dc_ by default, you may change it if you wish.

Press "Save", fill in your details (email, last name, first name) then in the next screen, write down the username and password that are provided and log in.

Installing from the config.php file:

You can install Dotclear manually by renaming inc/config.php.in into config.php and entering the following details:

// Database driver (mysql, pgsql, sqlite)
// Database hostname (usually "localhost")
// Database user
// Database password
// Database name
// Tables' prefix
// Crypt key (password storage)
// Admin URL. You need to set it for some features.
// Cookie's name
// Plugins root
// Template cache directory

Then open your browser and go to: http://localhost/dotclear/admin/install.

Mac OS X


  • Apache server
  • MySQL or PostgreSQL server


The easiest way is to install the MAMP package that provides you with an Apache server and a totally independent MySQL server.


The root directory for the Apache server embedded in MAMP is named htdocs and located in the MAMP directory. This location may be changed via MAMP preferences.

If you wish to use a PostgreSQL database, you only need to install the PostgreSQL Unified Installer package (version 8.1.5b successfully tested on MacOSX 10.3.9). you will then have all you need to install the server as well as a few tools (server control, database and user creation). The installation process is typical of Mac OS X: double-click on PostgreSQL.mpkg package (located in the server directory of the mounted disk image).


Once started, the Apache server is accessible at: http://localhost:8888/.

Once you have installed the servers, you need to create a UTF-8 encoded database. The MAMP package include phpMyAdmin to manage MySQL databases. If you wish to use PostgreSQL, you can download and install phpPgAdmin .

Below are the parameters required to configure phpPGAdmin:

  • host : localhost
  • port : 5432
  • defaultdb : postgres
  • pg_dump_path : /Library/PostgreSQL8/bin/pg_dump
  • pg_dumpall_path : /Library/PostgreSQL8/bin/pg_dumpall

You should then download and install Dotclear 2 in the root directory of the server (htdocs) or in another directory you created for this purpose. Below are the parameters required for the configuration:

  • MySQL database
    • host : localhost:8889
    • user : root
    • password : root
  • PostgreSQL database
    • host : localhost:5432
    • user : postgres
    • password : <empty>


If you wish to manage two installations of Dotclear simultaneously, you should use a different name for the session cookie in each installation (in inc/config.php). This will allow you to login and have administrative sessions open to both installations the same time.



This tutorial is not adapted to a Linux-based personal hosting solution for one or several Dotclear blogs, but is only intended for local tests before or in conjunction with an online version at a third-party hosting provider. Also, to make it simpler, the tutorial only covers installations with MySQL. Don't worry, though - if your hosting providers offers PostgreSQL, you will be able to import the data you created locally.



All Linux distributions typically provide the packages required to install a fully functional Apache server, with all sorts of modules and configuration options 1).

The easiest way is to download a server that is "ready to use", designed for testing: XAMPP. This one does not provide the security of a "production" server, but you get everything you need in one single package :-) !

In fact, XAMPP will install: an Apache web server, a MySQL database server, the languages PHP 4 and 5 (version 5, required for Dotclear 2, is actived by default), phpMyAdmin, and phpSQLiteAdmin, as well as all the libraries necessary to make them run. Al of this is included in a small 50 MB package.

Once you have downloaded it, extract it into your /opt directory as indicated on the website, with a simple

sudo tar xzf xampp-linux-x.x.x.tar.gz -C /opt

You can then start the server:

sudo /opt/lampp/lampp start

and take two minutes to configure the passwords (basic security):

sudo /opt/lampp/lampp security

Now check the following address in your favourite browser: http://localhost/ or

If a pretty page is displayed, then everything's alright. Otherwise, you have missed something in the previous steps ;-)

But you'll still find people who say that Linux is far too complicated! :-D

Prepare the server to "host" Dotclear

MySQL : activating InnoDB


Dotclear 2 MySQL to use InnoDB to run properly: that's why you need to activate it, because it's disabled by default in XAMPP.

Nothing tricky here: open the configuration file in your favorite text editor (with administrator permissions)

sudo vim /opt/lampp/etc/my.cnf

Look for the following lines:

# Comment the following line to unskip and use InnoDB

and comment the line as you're recommended, which should give you

# Comment the following line to unskip and use InnoDB

Don't forget to save your changes then restart the server:

sudo /opt/lampp/lampp restart

MySQL: creating the database

Log into phpMyAdmin as root (providing the password you have previously defined for MySQL with lampp security, or leaving the password field empty if you're not afraid and haven't configured the security): http://localhost/phpmyadmin/

In the left column of the main area, you will see the title "create a database". Enter the name of the new base (for example dotclear) then choose the collation type utf8_unicode_ci. You can then press the "create" button. We're over with phpMyAdmin :-)

Placing Dotclear files

Download the last version of Dotclear 2 then extract it into the htdocs directory of the XAMPP installation:

sudo tar xzf dotclear-2.x.x.tar.gz -C /opt/lampp/htdocs/

Then authorise anyone to read, write and execute files (this is a local installation, there isn't much danger around):

 sudo chmod -R 777 /opt/lampp/htdocs/dotclear/

We're now ready to start the wizard.

Initial configuration of Dotclear 2

Go back to your browser: http://localhost/dotclear/admin/install/wizard.php

Choose MySQL as "Type of database", enter localhost as "name of the database host", dotclear as your "database name", root as "username for the database", enter the password you defined for MySQL into the "password for the database" field, then leave the prefix and the location of the temporary directory unchanged.

Normally, if you click on "Save", you are directed to the next page where you only have to fill your email, last name and first name.

With XAMPP, there are no mail server activated, so the following page displays a default login name and the associated password, with a link for you to log in.

Dotclear is now all yours for all the local tests you want to inflict on it. Time to play! ;-)

1) but most likely if you have mastered Apache already, you won't need this tutorial

Wiki powered by Dokuwiki.