How to install Dotclear on Ubuntu 18.04?

0
58

There are a lot of tools to create and manage websites today. Websites very different from each other can be easily managed and created thanks to CMS. Of this great group of tools, WordPress stands out for its ease and popularity. However, there are many other alternatives, able to face it. Each of them, dedicated to a specific sector, but all with a common goal, provide everything you need to host a dynamic website without too much effort. So, in this post, I will show you how to install Dotclear on Ubuntu 18.04.

Dotclear is an open-source web publishing software published in 2003 by Olivier Meunier. The project’s purpose is to provide a user-friendly tool allowing anyone to publish on the web, regardless of their technical skills. Dotclear possesses a rich functionality that makes it a high-quality publishing tool, equaling and even outperforming other similar tools in some aspects. For example:

  • Easy publication.
  • Fully customizable theme.
  • User-friendly administration.
  • Media management.
  • Naturally optimized for search engine.
  • Complete trackback support.

As you can see, there are many features that make it a serious alternative to our website.

So, let us start.

Getting Dotclear on Ubuntu

1) Install LAMP

The first step is to have a functional LAMP server. Because Dotclear is a web application that requires a database manager.

So you can read our post about how to install LAMP on Ubuntu 18.04.

I will just point out that it’s necessary to install some extra PHP modules. They are:

libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-xml php7.2-cli php7.2-zip

To install them, just type:

:~$ sudo apt install libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-xml php7.2-cli php7.2-zip

2) Configure PHP

In order for Dotclear to work without any problems, it is necessary to modify some parameters of the PHP configuration. So you have to edit the configuration file:

:~$ sudo nano /etc/php/7.2/apache2/php.ini

Now, edit the following parameters.

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 200M
max_execution_time = 360

I’ll give you a little trick, use in nano the key combination CTRL + W to find the exact term and not waste time.

Next, restart Apache.

:~$ sudo systemctl restart apache2

3) Creating the database for Dotclear

Once we have all the components installed, it’s time to create the database dedicated to Dotclear.

So run the following command:

:~$ sudo mysql -u root -p
CREATE DATABASE dotclear;
GRANT ALL PRIVILEGES ON dotclear.* TO 'dotclearuser'@'localhost' IDENTIFIED BY 'dotpss';
FLUSH PRIVILEGES;
exit;
1.- Creating the database for Dotclear
1.- Creating the database for Dotclear

4) Install Dotclear on Ubuntu 18.04

Now you have to download Dotclear to install it. To do this, run the following commands:

:~$ cd /tmp/
:~$ wget http://download.dotclear.org/latest.tar.gz
2.- Download Dotclear on Ubuntu 18.04
2.- Download Dotclear on Ubuntu 18.04

Next, decompress it and move it to the Apache root folder.

:~$ tar xvf latest.tar.gz
:~$ sudo mv dotclear /var/www/html/dotclear

After that, it is necessary to set the proper permissions to the folder.

:~$ sudo chown -R www-data:www-data /var/www/html/dotclear/
:~$ sudo chmod -R 755 /var/www/html/dotclear/
3.- Set the permission to the folder
3.- Set the permission to the folder

Now you have to make a virtual host for Dotclear run correctly.

:~$ sudo nano /etc/apache2/sites-available/dotclear.conf

And add the following:

<VirtualHost *:80>
     ServerAdmin admin@your-server.com
     DocumentRoot /var/www/html/dotclear
     ServerName your-server.com
     ServerAlias www.your-server.com

     <Directory /var/www/html/dotclear/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
4.- Create a new virtualhost for Dotclear
4.- Create a new virtual host for Dotclear

Save the changes and close the file.

Next, enable the new virtual host and the rewrite module. After that, restart Apache.

:~$ sudo a2ensite dotclear.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2
5.- Restarting Apache
5.- Restarting Apache

5) Complete the installation

Finally, open the web browser and go to the server to run Dotclear. You will see the following:

6.- Install Dotclear on Ubuntu 18.04
6.- Install Dotclear on Ubuntu 18.04

Then, type your MariaDB credentials and press Continue.

7.- Type the MariaDB credentials
7.- Type the MariaDB credentials

Now, create the admin account.

8.- Create the admin account
8.- Create the admin account

If everything went right, you’ll see the following message.

9.- All done
9.- All done

Now, you will see the admin panel.

10.- Admin panel
10.- Admin panel

And that’s it.

Conclusion

As you can see, the installation of Dotclear is not complicated, but it opens a new possibility to manage our blog or website. So, this is a very competitive alternative in a market dominated by WordPress.

Please share this post with your friends.

LEAVE A REPLY

Please enter your comment!
Please enter your name here