How to Install Dotclear on a Debian 8 VPS

Dotclear is an open source web publishing software written in PHP, created to allow anyone publish websites, regardless of their technical skills.


So, let’s start with the installation procedure. Download the latest version of Dotclear available at ‘’ to a directory of your virtual server and extract it using the following commands:

cd /opt/
tar -xvzf latest.tar.gz
mv /opt/dotclear/ /var/www/html/dotclear/
chown www-data:www-data -R /var/www/html/dotclear/

Move the Dotclear installation files to the document root directory defined in the virtual host directive above:

mv /opt/ /var/www/html/dotclear/

Set the proper ownership of Dotclear files and directories:

chown -R www-data /var/www/html/dotclear/

Dotclear requires a database to store it’s data, so create a new MySQL database for Dotclear to use and assign a user to it with full permissions:

mysql -u root -p
mysql> CREATE DATABASE dotcleardb;
mysql> GRANT ALL PRIVILEGES ON dotcleardb.* TO 'dotclearuser'@'localhost' IDENTIFIED BY 'Y0ur-Passw0rd' WITH GRANT OPTION;
mysql> quit

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘dotclear.conf’ on your virtual server:

touch /etc/apache2/sites-available/dotclear.conf

Then, run the following command:

ln -s /etc/apache2/sites-available/dotclear.conf /etc/apache2/sites-enabled/dotclear.conf

Alternatively, use the a2ensite to enable the dotclear.conf configuration in Apache:

sudo a2ensite dotclear.conf

Edit the ‘dotclear.conf’ configuration file:

vi /etc/apache2/sites-available/dotclear.conf

and add the following lines to it:

<VirtualHost *:80>
DocumentRoot /var/www/html/dotclear/
<Directory /var/www/html/dotclear/>
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common

Restart the Apache web server for the changes to take effect:

systemctl restart apache2.service

Open your favorite web browser and navigate to . Once you do that, you will be taken to the first page of the Dotclear web installer. Enter the MySQL database information:

Database type: MySQLi
Database Host Name: localhost
Database Name: dotcleardb
Database User Name: dotclearuser
Database Password: Y0ur-Passw0rd

Click continue, create an administrator user account, then log in to the Dotclear administration back-end using the newly created account and start managing your Dotclear based blog.

That is it. The installation of Dotclear is complete.

Leave a Reply

Your email address will not be published.