{"id":19185,"date":"2016-05-16T07:50:24","date_gmt":"2016-05-16T12:50:24","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19185"},"modified":"2022-06-03T03:42:54","modified_gmt":"2022-06-03T08:42:54","slug":"how-to-install-elefant-cms-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elefant-cms-on-ubuntu-16-04\/","title":{"rendered":"How to install Elefant CMS on Ubuntu 16.04"},"content":{"rendered":"
In this tutorial, we will show you how to install Elefant CMS on an Ubuntu 16.04 VPS<\/strong> with Apache, PHP and MySQL installed on it. 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. This tutorial was tested and written for an Ubuntu VPS<\/a>, but it should work on any Debian based Linux distribution. Let’s start with the installation. Make sure your server OS packages are fully up-to-date:<\/p>\n It is best to install Elefant CMS using Composer, so install Composer if it is not already installed by running the following commands:<\/p>\n Download the latest version of Elefant CMS using the following commands:<\/p>\n Do not forget to replace your-domain.com with your actual domain name. Do not forget to replace ‘your-password’ with a strong password. Edit the ‘elefant.conf’ configuration file:<\/p>\n and add the following lines to it:<\/p>\n Then, run the following command:<\/p>\n Or, use the a2ensite to enable the ‘elefant.conf’ configuration in Apache:<\/p>\n 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:<\/p>\n Enable the Apache2 rewrite module if it is not already done so:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/your-domain.com\/install\/ , start the installation process and follow the easy instructions: That is it. The Elefant CMS installation is now complete.<\/p>\n 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.<\/p>\n Of course you don’t have to do any of this if you use one of our Optimized Ubuntu Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Elefant CMS<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/span>.<\/strong> 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.<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" In this tutorial, we will show you how to install Elefant CMS on an Ubuntu 16.04 VPS with Apache, PHP … <\/p>\n
\n
\nThis install guide assumes that Apache, MySQL and PHP are already installed and configured on your virtual server. At the time of writing this tutorial, the latest version of Elefant CMS is 1.3.12 and it requires:<\/p>\n\n
apt-get update \r\napt-get upgrade<\/pre>\n
apt-get install curl\r\ncd \/opt\r\ncurl -sS https:\/\/getcomposer.org\/installer | php\r\nmv composer.phar \/usr\/local\/bin\/composer<\/pre>\n
cd \/var\/www\r\ncomposer create-project elefant\/cms --stability=dev your-domain.com\r\n<\/pre>\n
\nAlternatively, 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.
\nNext, create a new MySQL database for Elefant CMS to use and assign a user to it with full permissions:<\/p>\nmysql -u root -p\r\nmysql> SET GLOBAL sql_mode='';\r\nmysql> CREATE USER elefant;\r\nmysql> CREATE DATABASE elefantdb;\r\nmysql> GRANT ALL PRIVILEGES ON elefantdb.* TO 'elefant'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
\nCreate a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘elefant.conf’ on your virtual server:<\/p>\ntouch \/etc\/apache2\/sites-available\/elefant.conf<\/pre>\n
vi \/etc\/apache2\/sites-available\/elefant.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/your-domain.com\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/your-domain.com\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
ln -s \/etc\/apache2\/sites-available\/elefant.conf \/etc\/apache2\/sites-enabled\/elefant.conf<\/pre>\n
sudo a2ensite elefant.conf<\/pre>\n
sudo chown -R www-data:www-data \/var\/www\/html\/your-domain.com\/<\/pre>\n
sudo a2enmod rewrite<\/pre>\n
service apache2 restart<\/pre>\n
\nClick ‘Next: License’ , accept the license, check if server requirements are met then click ‘Next:Database’ and enter the following information:
\nDriver: MySQL
\nServer: localhost
\nPort: 3306
\nDatabase: elefantdb
\nUsername: elefant
\nPassword: *your-password*
\nClick ‘Connect & Create Schema’, enter the site name and set the email address and password of the Elefant CMS administrative user.<\/p>\n
\n