Elgg is a free and open-source platform for building social networks, e-commerce sites, and web applications. In this tutorial, we will guide you through the installation of Elgg on EndeavourOS.
Before we begin, ensure that you have:
sudo pacman -Syu
sudo pacman -S apache php php-apache mariadb
sudo pacman -S php-gd php-xmlrpc
Download the latest stable release of Elgg from the official website at https://elgg.org/download.php.
Extract the downloaded archive to /var/www/html
with administrative privileges:
sudo tar xzf elgg-*.zip -C /var/www/html/
elgg
:sudo mv /var/www/html/elgg-* /var/www/html/elgg
sudo chown -R http:http /var/www/html/elgg
sudo mysql -u root -p
MariaDB [(none)]> CREATE DATABASE elgg_db;
MariaDB [(none)]> CREATE USER 'elgg_user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON elgg_db.* TO 'elgg_user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Open a web browser and navigate to http://localhost/elgg.
Follow the prompts in the installation wizard to configure your Elgg site. When prompted for the database credentials, enter the following:
install
directory:sudo rm -rf /var/www/html/elgg/install
.htaccess
file to enable URL rewriting:sudo nano /var/www/html/elgg/.htaccess
#RewriteBase /elgg/
sudo systemctl restart httpd
Open a web browser and navigate to http://localhost/elgg.
Log in with the admin credentials you created during the installation process.
Explore Elgg and begin building your site!
Congratulations! You have successfully installed Elgg on your EndeavourOS machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!