Install Elefant CMS on Ubuntu 16.04
Elefant CMS is an open source CMS and web framework written in PHP that allows web developers to create everything from simple websites to complete web applications.

Browser requirements:

  • Google Chrome
  • Safari 4+
  • Firefox 3.5+
  • IE 8+

Server requirements:

  • PHP 5.3+ or HHVM
  • Apache with mod_rewrite or Nginx web server
  • SQLite, *MySQL, or PostgreSQL database
  • PHP CURL extension required for some features

*MySQL replacements such as MariaDB and Percona are also supported.

Linux users should use your distribution's package management system to install the required server software.
Install Elefant CMS
It is best to install Elefant CMS using Composer, so install Composer if it is not already installed by running the following commands:
apt-get install curl
cd /opt
curl -sS | php
mv composer.phar /usr/local/bin/composer
Download the latest version of Elefant CMS using the following commands:
cd /var/www
composer create-project elefant/cms --stability=dev
Do not forget to replace with your actual domain name.
Alternatively, if you do not want to use Composer, you can always download the latest version at , then extract the Elefant CMS archive to the /var/www/html/ directory on your server.

Next, create a new MySQL database for Elefant CMS to use and assign a user to it with full permissions:
mysql -u root -p
mysql> SET GLOBAL sql_mode='';
mysql> CREATE USER elefant;
mysql> CREATE DATABASE elefantdb;
mysql> GRANT ALL PRIVILEGES ON elefantdb.* TO 'elefant'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
mysql> quit
Do not forget to replace'your-password' with a strong password.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named 'elefant.conf' on your virtual server:
touch /etc/apache2/sites-available/elefant.conf
Edit the 'elefant.conf' configuration file:
vi /etc/apache2/sites-available/elefant.conf
and add the following lines to it:
<VirtualHost *:80>
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common
Then, run the following command:
ln -s /etc/apache2/sites-available/elefant.conf /etc/apache2/sites-enabled/elefant.conf
Or, use the a2ensite to enable the 'elefant.conf' configuration in Apache:
sudo a2ensite elefant.conf
Set the proper file permissions for the Apache web server to write to the Elefant CMS document root ('/var/www/html/') directory:
sudo chown -R www-data:www-data /var/www/html/
Enable the Apache2 rewrite module if it is not already done so:
sudo a2enmod rewrite
Restart the Apache web server for the changes to take effect:
service apache2 restart
Open your favorite web browser, navigate to , start the installation process and follow the easy instructions:
Click 'Next: License' , accept the license, check if server requirements are met then click 'Next:Database' and enter the following information:
Driver: MySQL
Server: localhost
Port: 3306
Database: elefantdb
Username: elefant
Password: *your-password*
Click 'Connect & Create Schema', enter the site name and set the email address and password of the Elefant CMS administrative user.

That is it. The Elefant CMS installation is now complete.

Log in to the administration back-end of the Elefant CMS at and start using it, write a blog post, upload files etc.

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment