Dotclear is a free open source blog publishing application developed in PHP relatively popular in French-speaking countries.

Step1. Install packages

yum install httpd mariadb mariadb-server

Step2. Start services

systemctl start httpd
systemctl enable httpd
systemctl status httpd
 
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb

Step3. Enable HTTP port on the firewall.

firewall-cmd --zone=public --permanent --add-service=httpĂ‚ 
firewall-cmd --reload

Step4. Setup Database

mysql_secure_installation 

Step5. Create a database and user

mysql -u root -p

show databases;
Create database dotcleardb;
CREATE USER 'dotuser'@'%' IDENTIFIED BY 'redhat@123';
GRANT ALL PRIVILEGES ON dotcleardb.* TO 'dotuser'@'%';
select Host,User,Password from user;
FLUSH PRIVILEGES;
quit
Bye

Step6. Install/configure PHP repository

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72

Step7. Install PHP packages

yum install php-mysql php-gd php-ldap php-xml php-xmlrpc php-mbstring php-mcrypt curl zlib libtool-ltdl php-pdo -y

Step8. Download the dotclear software

yum install wget unzip
wget http://download.dotclear.org/latest.zip

Step9. Unzip the file and move in HTML folder

unzip latest.zip
mv latest  /var/www/html/dotclear

Step10. Set permission

chown -R apache.apache /var/www/html/dotclear

Step11. Create a virtual host file

vi /etc/httpd/conf.d/dotclear.conf 

<VirtualHost *:80>
     ServerAdmin localhost
     DocumentRoot "/var/www/html/dotclear/"
     ServerName 192.168.33.51
     ErrorLog "/var/log/httpd/dotclear-error_log"
     CustomLog "/var/log/httpd/dotclear-access_log" combined
     
     <Directory "/var/www/html/dotclear/">
         DirectoryIndex index.html index.php install.php
         Options FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>

Step12. Start the service.

systemctl start httpd 

Step13. Access via browser

http://<server ip>/dotclear

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here