<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elgg Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/elgg/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/elgg/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Tue, 27 Jun 2023 14:30:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Elgg Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/elgg/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Elgg on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-elgg-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-elgg-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Tue, 27 Jun 2023 14:30:06 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Elgg]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1392</guid>

					<description><![CDATA[<p>Elgg is an open-source social networking platform that allows users to create and manage their own social networks and communities. It provides a flexible architecture...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-elgg-on-debian-12/">How to Install Elgg on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Elgg is an open-source social networking platform that allows users to create and manage their own social networks and communities.</p>
<p>It provides a flexible architecture that allows developers to extend and customize its functionality according to their specific needs. Elgg also supports the creation of plugins and themes, enabling further customization and integration with other systems.</p>
<p>In this tutorial, we will show you how to install Elgg on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>Verify the status of the <code>Apache</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; <span style="color: #00ff00;">enabled</span>; preset: <span style="color: #00ff00;">enabled</span>)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 3682 (apache2)
      Tasks: 55 (limit: 2273)
     Memory: 8.6M
        CPU: 32ms
     CGroup: /system.slice/apache2.service
             ├─3682 /usr/sbin/apache2 -k start
             ├─3684 /usr/sbin/apache2 -k start
             └─3685 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions for Elgg</span></h2>
<p>To install PHP and additional PHP modules to support Elgg, run the following command:</p>
<pre><code># apt install php php-cli php-common libapache2-mod-php php-curl php-zip php-gd php-mysql php-xml php-mbstring php-xmlrpc php-intl</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code><strong>Output:</strong>
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/apache2/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M
date.timezone = America/Chicago</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the <code>MariaDB</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> mariadb.service - MariaDB 10.11.3 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; <span style="color: #00ff00;">enabled</span>; preset: <span style="color: #00ff00;">enabled</span>)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 16734 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 12 (limit: 2273)
     Memory: 203.0M
        CPU: 464ms
     CGroup: /system.slice/mariadb.service
             └─16734 /usr/sbin/mariadbd
</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Enter current password for root (enter for none): <strong>Enter</strong>
- Switch to unix_socket authentication [Y/n] <strong>Y</strong>
- Change the root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Elgg installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE elgg;
MariaDB [(none)]&gt; CREATE USER 'elgg'@'localhost' IDENTIFIED BY 'Str0ngPass2F';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON elgg. * TO 'elgg'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Elgg</span></h2>
<p>The latest version of Elgg is available to <a href="https://elgg.org/about/download">download from the official website</a>. As of writing this tutorial, the latest version available is 5.0.1.</p>
<pre><code># wget https://elgg.org/download/elgg-5.0.1.zip</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip elgg-5.0.1.zip -d /var/www/</code></pre>
<p>Rename the extracted directory:</p>
<pre><code># mv /var/www/elgg-5.0.1 /var/www/elgg/</code></pre>
<p>Create a data directory:</p>
<p><code># mkdir /var/www/data/</code></p>
<p>Then enable permission for the Apache webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/data/
# chown -R www-data:www-data /var/www/elgg/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache for Elgg</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>elgg</kbd> in the <strong>/etc/apache2/sites-available/</strong> directory.</p>
<pre><code># nano /etc/apache2/sites-available/elgg.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/elgg/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/elgg/&gt; 
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    &lt;/Directory&gt; 

    ErrorLog /var/log/apache2/your-domain.com-error_log
    CustomLog /var/log/apache2/your-domain.com-access_log common

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>Then enable the <code>"rewrite"</code> module in Apache:</p>
<pre><code># a2enmod rewrite</code></pre>
<p>To enable this site run the command:</p>
<pre><code># ln -s /etc/apache2/sites-available/elgg.conf /etc/apache2/sites-enabled/elgg.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Install free Let’s Encrypt SSL certificate</span></h2>
<p>First we need to install the Certbot client which is used to create <a href="https://www.linuxtuto.com/how-to-install-apache-with-lets-encrypt-on-ubuntu-22-04/">Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-apache</code></pre>
<p>To get the SSL certificate using the Certbot, type the command given below:</p>
<pre><code># certbot --apache -d your-domain.com -d www.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/your-domain.com.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/your-domain.com/privkey.pem
   Your cert will expire on 2023-09-02. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access Elgg Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>https://your-domain.com</code></strong>. You should see the following page:</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1395" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-900x513.jpg" alt="Elgg Welcome Page" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-900x513.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-768x438.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-1536x876.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-1222x697.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-897x511.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1-684x390.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_1.jpg 1893w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Next</strong> button.</p>
<p><img decoding="async" class="aligncenter wp-image-1396 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-900x514.jpg" alt="Requirements check" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-900x514.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-768x439.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-1536x877.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-1222x698.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-897x512.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2-684x391.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_2.jpg 1891w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>The installer will then check the requirements. Once all checks are passed, click on the <strong>Next</strong> button.</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1397" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3-668x900.jpg" alt="Database installation" width="668" height="900" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3-668x900.jpg 668w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3-223x300.jpg 223w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3-768x1036.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3-684x922.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_3.jpg 801w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>After that, you will have to write the credentials from the database, data directory, and site URL and then click on the <strong>Next </strong>button:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1399" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-900x514.jpg" alt="Configure site" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-900x514.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-768x439.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-1536x877.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-1222x698.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-897x512.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4-684x391.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_4.jpg 1891w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Then, you have to set up your site name and email and then click on the <strong>Next</strong> button:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1400" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-900x514.jpg" alt="Create admin account" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-900x514.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-768x439.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-1536x878.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-1222x698.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-897x513.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5-684x391.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_5.jpg 1890w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin username, password, email and click on the Next button. Once the installation has been completed, you should see the following page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1401" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-900x431.jpg" alt="Elgg finished installation" width="900" height="431" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-900x431.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-300x144.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-768x368.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-1536x736.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-1222x586.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-897x430.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6-684x328.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_6.jpg 1890w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Go to site</strong> button you should see your administration panel:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1403" src="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-900x434.jpg" alt="Elgg Dashboard" width="900" height="434" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-900x434.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-300x145.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-768x370.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-1536x741.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-1222x589.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-897x433.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7-684x330.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/06/elgg_7.jpg 1891w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed Elgg. Thanks for using this tutorial for installing Elgg on your Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="http://learn.elgg.org/en/stable/" target="_blank" rel="noopener">the official Elgg documentation</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-elgg-on-debian-12/">How to Install Elgg on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-elgg-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1392</post-id>	</item>
	</channel>
</rss>
