Install Dotclear on a CentOS VPS
In order to able to run Dotclear you need to have an Apache server, a MySQL database and PHP version 5.2 or above installed on your server. If these components are not installed, we already have a blog post covering the installation of LAMP (Linux, Apache, MySQL, PHP) server.
First of all make sure that your CentOS server is up to date
yum -y update
and install the following PHP extensions
yum install php-xml php-mbstring php-gd
Then, go to Dotclear’s official website and download the latest stable version to your server
Unpack the compressed zip archive in the Apache’s document root directory.
unzip latest.zip -d /var/www/html
This will create a new ‘dotclear’ directory in the document root.
If you are not sure what is your document root directory you can find it using the following command:
grep -i '^documentroot' /etc/httpd/conf/httpd.conf
Change your working directory to the newly created ‘dotclear’ directory.
Change the ownership of the Dotclear directory:
chown -R apache: /var/www/html/dotclear/
Now, create a MySQL database for Dotclear and assign a user to the database with all privileges.
echo "CREATE DATABASE dotclear;" | mysql -u root -p echo "CREATE USER 'dotclear'@'localhost' IDENTIFIED BY 'YourPassword';" | mysql -u root -p echo "GRANT ALL PRIVILEGES ON dotclear.* TO 'dotclear'@'localhost';" | mysql -u root -p echo "FLUSH PRIVILEGES;" | mysql -u root -p
* Replace ‘YourPassword’ with an actual password.
Finally, open your favorite web browser and point it to http://YOURDOMAIN.TLD/dotclear and follow the on-screen instructions. You will be prompted to enter the information of your MySQL user and database created for the Dotclear installation and create your administrator account.
Of course you don’t have to do any of this if you use one of our Linux VPS hosting services, in which case you can simply ask our expert linux admins to install Dotclear on your server for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.