MapBBCodeShare is an open-source project that allows users to share maps with BBCode. Installing it on Manjaro is a straightforward process that requires a few steps. In this tutorial, we will go through the steps required to install MapBBCodeShare on Manjaro.
Before installing MapBBCodeShare, you need to ensure that the following packages are installed on your system:
To check if they are installed, open a terminal and type the following command:
sudo pacman -S git php apache mysql
Open a terminal and type the following command to clone the MapBBCodeShare repository:
git clone https://github.com/MapBBCode/share.mapbbcode.org.git
This will create a directory named share.mapbbcode.org
in your home directory.
Next, we need to configure Apache to serve MapBBCodeShare. Open a terminal and type the following command to edit the Apache configuration file:
sudo nano /etc/httpd/conf/httpd.conf
Add the following lines at the end of the file:
<VirtualHost *:80>
DocumentRoot /home/youruser/share.mapbbcode.org
DirectoryIndex index.php
<Directory /home/youruser/share.mapbbcode.org>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Replace youruser
with your username.
Save and close the file by pressing Ctrl+X
, Y
, then Enter
.
MapBBCodeShare requires a database to store its data. Open a terminal and type the following command to log in to the MySQL/MariaDB shell:
mysql -u root -p
Enter your root password when prompted.
Once you are logged in, create a new database by typing the following command:
CREATE DATABASE share_mapbbcode_org;
Exit the MySQL/MariaDB shell by typing quit;
.
Next, we need to configure MapBBCodeShare to use the database we just created. Open a terminal and navigate to the share.mapbbcode.org
directory:
cd ~/share.mapbbcode.org
Copy the config.inc.dist
file to config.inc
:
cp config.inc.dist config.inc
Open the config.inc
file in a text editor:
nano config.inc
Update the following fields with your database credentials:
$dbhost = 'localhost';
$dbuser = 'yourdatabaseuser';
$dbpassword = 'yourdatabasepassword';
$dbname = 'share_mapbbcode_org';
Replace yourdatabaseuser
and yourdatabasepassword
with your MySQL/MariaDB username and password.
Save and close the file by pressing Ctrl+X
, Y
, then Enter
.
MapBBCodeShare requires several PHP extensions to function properly. Open a terminal and type the following command to install them:
sudo pacman -S php-gd php-intl php-mbstring php-pdo_mysql
Composer is a dependency manager for PHP. Open a terminal and type the following command to install Composer:
sudo pacman -S composer
Next, we need to install MapBBCodeShare's PHP dependencies with Composer. Open a terminal and navigate to the share.mapbbcode.org
directory:
cd ~/share.mapbbcode.org
Then, type the following command to install the dependencies:
composer install
Next, we need to set the correct permissions for the files and directories. Open a terminal and navigate to the share.mapbbcode.org
directory:
cd ~/share.mapbbcode.org
Type the following command to ensure that Apache can read and write to the media
directory:
sudo chown -R http:http media/
Open a web browser and navigate to http://localhost/
. If everything was installed correctly, you should see the MapBBCodeShare homepage.
Congratulations! You have successfully installed MapBBCodeShare on Manjaro.
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!