How to Install Dotclear on Debian 9 (Stretch)

Using a Different System?

  • How to Install Dotclear on Ubuntu 16.04

Are we missing a guide for your target system? Request one, or submit your own!

Dotclear is a very simple blogging engine. It is open-source and easy to use. This tutorial will go through the installation on a Vultr high performance SSD VPS running Debian 9.


  • Vultr VPS with Debian 9
  • Apache2, PHP and MySQL/MariaDB (LAMP stack)
  • An SSH client of your choice to access the VPS.
  • wget (apt install wget)

Log into your Vultr VPS as root using SSH. Navigate to your web root directory, usually /var/www/html/, and delete everything to prepare the directory for the Dotclear installation:

cd /var/www/htmlrm * -rf

Also, make sure Apache owns this directory:

chown www-data:www-data . -R

MySQL Setup

We need to create a database for Dotclear. First, login to the MySQL shell:

mysql -u root -p

Then, create a new database and assign a new user to it. Replace password with a password of your choice. The password should be complex and long enough to adhere to the best security practices:

CREATE DATABASE dotclear;GRANT ALL PRIVILEGES ON dotclear.* TO dotclearuser@localhost IDENTIFIED BY 'password';FLUSH PRIVILEGES;/q

Dotclear Installation

Ensure that your session is still in the var/www/html folder.

cd /var/www/html

Download the Dotclear loader PHP script:


Open a web browser of your choice and navigate to http://your_vps_ip/dotclear-loader.php and follow the instructions. During the installation, you will be asked for database details. Use the following details. Be sure to replace password with the password you chose earlier:

Database type: MySQLiDatabase Host Name: localhostDatabase Name: dotclearDatabase User Name: dotclearuserDatabase Password: password

Finally, continue along to complete the installation.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.