Menu

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.

Requirements
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 https://getcomposer.org/installer | 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 your-domain.com
Do not forget to replace your-domain.com with your actual domain name.
Alternatively, if you do not want to use Composer, you can always download the latest version at https://github.com/jbroadway/elefant/releases , then extract the Elefant CMS archive to the /var/www/html/your-domain.com/ 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> FLUSH PRIVILEGES;
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>
ServerAdmin admin@your-domain.com
DocumentRoot /var/www/html/your-domain.com/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/your-domain.com/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>
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/your-domain.com') directory:
sudo chown -R www-data:www-data /var/www/html/your-domain.com/
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 http://your-domain.com/install/ , 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 http://your-domain.com/admin and start using it, write a blog post, upload files etc.
www.hackthesec.co.in

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

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top