{"id":18604,"date":"2016-03-01T13:34:58","date_gmt":"2016-03-01T19:34:58","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18604"},"modified":"2022-12-08T10:07:10","modified_gmt":"2022-12-08T16:07:10","slug":"how-to-install-elkarte-community-forum-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elkarte-community-forum-on-ubuntu-14-04\/","title":{"rendered":"How to install Elkarte Community Forum on Ubuntu 14.04"},"content":{"rendered":"
In this tutorial, we will show you how to install Elkarte Community Forum on an Ubuntu 14.04 VPS<\/strong> with Apache, PHP and MySQL installed on it.<\/p>\r\n\r\n\r\n\r\n Elkarte is an open source discussion forum written in PHP that allows web developers to create a community forum fully responsive to mobile and wireless devices.<\/span><\/p>\r\n\r\n\r\n\r\n 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>\r\n\r\n\r\n\r\n Download the latest version of Elkarte available at https:\/\/github.com\/elkarte\/Elkarte\/releases\/ to the server and extract it using the following commands:<\/p>\r\n\r\n\r\n\r\n Create a new MySQL database for Elkarte to use and assign a user to it with full permissions:<\/p>\r\n\r\n\r\n\r\n Do not forget to replace ‘your-password’ with a strong password. Then, run the following command:<\/p>\r\n\r\n\r\n\r\n Or, use the a2ensite to enable the ‘elkarte.conf’ configuration in Apache:<\/p>\r\n\r\n\r\n\r\n Edit the ‘elkarte.conf’ configuration file:<\/p>\r\n\r\n\r\n\r\n and add the following lines to it:<\/p>\r\n\r\n\r\n\r\n In order to set memory_limit, max_execution_time, max_input_time, post_max_size and upload_max_filesize and disable safe mode and Register Globals in PHP, edit the php.ini configuration file and add\/modify the following lines:<\/p>\r\n\r\n\r\n\r\n Optionally, add\/modify the following lines in php.ini:<\/p>\r\n\r\n\r\n\r\n Set the proper file permissions for the Apache web server to write to the Elkarte document root (‘\/var\/www\/html\/elkarte’) directory:<\/p>\r\n\r\n\r\n\r\n Enable the Apache2 rewrite module if it is not already done so:<\/p>\r\n\r\n\r\n\r\n Restart the Apache web server for the changes to take effect:<\/p>\r\n\r\n\r\n\r\n Open your favorite web browser, navigate to http:\/\/yourdomain.com , start the installation process and follow the easy instructions: enter your MySQL username, password and database name, then create an administrator account. For security reason, it is recommended to delete the install.php file.<\/p>\r\n\r\n\r\n\r\n Log in to the administration back-end of the Elkarte community forum at http:\/\/yourdomain.com\/index.php?action=login and configure it according to your needs, install add-ons etc.<\/p>\r\n\r\n\r\n\r\n That is it. The Elkarte installation is now complete. Follow this guide on how to Install ELK stack on Ubuntu 20.04<\/a><\/p>\r\n\r\n\r\n\r\n Of course you don’t have to do any of this if you use one of our Fully-Managed Ubuntu Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Elkarte forum <\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\r\n\r\n\r\n\r\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>\r\n","protected":false},"excerpt":{"rendered":" In this tutorial, we will show you how to install Elkarte Community Forum on an Ubuntu 14.04 VPS with Apache, … <\/p>\n
This 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 stable version of Elkarte is 1.0.6 and it requires:<\/p>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\napt-get update \r\napt-get upgrade<\/pre>\r\n\r\n\r\n\r\n
cd \/opt\r\nwget -O elkarte.zip https:\/\/github.com\/elkarte\/Elkarte\/releases\/download\/v1.0.6\/ElkArte_v1-0-6_install.zip\r\nmkdir -p \/var\/www\/html\/elkarte\r\nunzip -o elkarte.zip -d \/var\/www\/html\/elkarte\/<\/pre>\r\n\r\n\r\n\r\n
mysql -u root -p\r\nmysql> CREATE DATABASE elkartedb;\r\nmysql> GRANT ALL PRIVILEGES ON elkartedb.* TO 'elkarteuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\r\n\r\n\r\n\r\n
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘elkarte.conf’ on your virtual server:<\/p>\r\n\r\n\r\n\r\ntouch \/etc\/apache2\/sites-available\/elkarte.conf<\/pre>\r\n\r\n\r\n\r\n
ln -s \/etc\/apache2\/sites-available\/elkarte.conf \/etc\/apache2\/sites-enabled\/elkarte.conf<\/pre>\r\n\r\n\r\n\r\n
sudo a2ensite elkarte.conf<\/pre>\r\n\r\n\r\n\r\n
vi \/etc\/apache2\/sites-available\/elkarte.conf<\/pre>\r\n\r\n\r\n\r\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/elkarte\/\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\n<Directory \/var\/www\/html\/elkarte\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/yourdomain.com-error_log\r\nCustomLog \/var\/log\/apache2\/yourdomain.com-access_log common\r\n<\/VirtualHost><\/pre>\r\n\r\n\r\n\r\n
vi \/etc\/php5\/apache2\/php.ini<\/pre>\r\n\r\n\r\n\r\n
register_globals = Off\r\npost_max_size = 128M\r\nupload_max_filesize = 128M\r\nmemory_limit = 128M\r\nmax_execution_time = 300\r\nmax_input_time = 300\r\nsafe_mode = Off<\/pre>\r\n\r\n\r\n\r\n
display_errors = Off\r\nhtml_errors = Off\r\ndisplay_startup_errors = Off\r\nlog_errors = On\r\ndefault_charset = \"UTF-8\"\t\r\nmbstring.func_overload = 0<\/pre>\r\n\r\n\r\n\r\n
sudo chown -R www-data:www-data \/var\/www\/html\/elkarte\/<\/pre>\r\n\r\n\r\n\r\n
sudo a2enmod rewrite<\/pre>\r\n\r\n\r\n\r\n
service apache2 restart<\/pre>\r\n\r\n\r\n\r\n
<\/figure>\r\n\r\n\r\n\r\n
\r\n\r\n\r\n\r\n