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.

ban2

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

cd /opt/
wget http://download.dotclear.org/latest.tar.gz
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:

ban4
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> FLUSH PRIVILEGES;
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>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/dotclear/
ServerName yourdomain.com
ServerAlias www.yourdomain.com
<Directory /var/www/html/dotclear/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/yourdomain.com-error_log
CustomLog /var/log/apache2/yourdomain.com-access_log common
</VirtualHost>

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

systemctl restart apache2.service

Open your favorite web browser and navigate to http://yourdomain.com . 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
bn6

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. Required fields are marked *