<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: May 2022]]></title>
	<link>https://bioinformaticsonline.com/blog/archive/neelam/1651381200/1654059600?</link>
	<atom:link href="https://bioinformaticsonline.com/blog/archive/neelam/1651381200/1654059600?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/43872/installing-elgg-on-ubuntu</guid>
	<pubDate>Wed, 25 May 2022 02:26:05 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/43872/installing-elgg-on-ubuntu</link>
	<title><![CDATA[Installing ELGG on Ubuntu !]]></title>
	<description><![CDATA[<p>Elgg is an open-source and highly customizable framework used for building an online social environment. It provides a simple and powerful user interface that helps to manage and build your content through a web browser. Elgg offers a rich set of features including messaging, microblogging, file-sharing, RSS support, access control, groups, and many more.</p><p>&nbsp;</p><p>In this tutorial, we will show you how to install and configure Elgg social networking platform on Ubuntu 20.04.</p><h2>Prerequisites</h2><p>&bull; A fresh Ubuntu 20.04&nbsp;<a href="https://www.atlantic.net/vps-hosting/">VPS</a>&nbsp;on the Atlantic.net Cloud Platform<br />&bull; A valid domain name pointed to your server IP<br />&bull; A root password configured on your server</p><h2>Step 1 &ndash; Create Atlantic.Net Cloud Server</h2><p>First, log in to your&nbsp;<a href="https://cloud.atlantic.net/?page=userlogin" target="_blank">Atlantic.Net Cloud Server</a>. Create a new&nbsp;<a href="https://www.atlantic.net/vps-hosting/how-to-create-new-atlantic-net-cloud-server/">server</a>, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.</p><p>Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.</p><pre>apt-get update -y</pre><h2>Step 2 &ndash; Install Apache, MariaDB and PHP</h2><p>Elgg runs on Apache web server, is written in PHP, and uses MySQL/MariaDB as a database backend, so you will need to install the Apache, MariaDB, PHP and other required PHP extensions to your server. You can install all of them with the following command:</p><pre>apt-get install apache2 mariadb-server php libapache2-mod-php php-common php-sqlite3 php-curl 
php-intl php-mbstring php-xmlrpc php-mysql php-gd php-xml php-cli php-zip unzip wget -y</pre><p>After installing all the packages, edit the php.ini file and change some recommended settings.</p><pre>nano /etc/php/7.4/apache2/php.ini</pre><p>Change the following values:</p><pre>max_execution_time = 300
memory_limit = 512M
upload_max_filesize = 100M
date.timezone = Asia/Kolkata</pre><p>Save and close the file, then restart the Apache service to apply the configuration changes.</p><pre>systemctl restart apache2</pre><h2>Step 3 &ndash; Create a Database for Elgg</h2><p>Next, you will need to create a database and user for Elgg. First, log in to MySQL shell with the following command:</p><pre>mysql</pre><p>Once logged in, create a database and user with the following command:</p><pre>CREATE DATABASE elgg;
CREATE USER 'elgg'@'localhost' IDENTIFIED BY 'secure-password';</pre><p>Next, grant all the privileges to the elgg database with the following command:</p><pre>GRANT ALL ON elgg.* TO 'elgg'@'localhost' IDENTIFIED BY 'secure-password' WITH GRANT 
OPTION;</pre><p>Next, flush the privileges and exit from the MariaDB shell with the following command:</p><pre>FLUSH PRIVILEGES;
EXIT;</pre><p>At this point, the MariaDB database is created for Elgg.</p><h2>Step 4 &ndash; Install Elgg</h2><p>First, download the latest version of Elgg from its official website using the following command:</p><pre>wget https://elgg.org/download/elgg-3.3.13.zip</pre><p>Once the download is completed, unzip the downloaded file with the following command:</p><pre>unzip elgg-3.3.13.zip</pre><p>Next, move the extracted directory to the Apache root directory:</p><pre>mv elgg-3.3.13 /var/www/html/elgg</pre><p>Next, create a data directory and set proper ownership and permissions to the Elgg directory:</p><pre>mkdir /var/www/html/data
chown -R www-data:www-data /var/www/html/elgg
chown -R www-data:www-data /var/www/html/data
chmod -R 755 /var/www/html/elgg</pre><p>Once you are finished, you can proceed to the next step.</p><h2>Step 5 &ndash; Configure Apache for Elgg</h2><p>Next, you will need to configure Apache to serve Elgg. You can configure it by creating a new Apache virtual host configuration file:</p><pre>nano /etc/apache2/sites-available/elgg.conf</pre><p>Add the following lines:</p><pre>&lt;VirtualHost *:80&gt;
ServerAdmin admin@example.com
DocumentRoot /var/www/html/elgg/
ServerName elgg.example.com
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/elgg-error_log
CustomLog /var/log/apache2/elgg-access_log common
&lt;/VirtualHost&gt;</pre><p>Save and close the file, then enable the virtual host and Apache rewrite module with the following command:</p><pre>a2ensite elgg.conf
a2enmod rewrite</pre><p>Finally, restart the Apache service to apply the changes:</p><pre>systemctl restart apache2</pre><h2>Step 6 &ndash; Access Elgg Web Interface</h2><p>Now, open your web browser and access the Elgg web interface using the URL http://elgg.example.com. You should see the Elgg welcome screen:</p>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>