MapBBCodeShare is an open-source project that allows users to share and embed maps on their websites. In this tutorial, we will show you step-by-step how to install MapBBCodeShare on Ubuntu Server Latest.
Before we proceed with the installation, make sure you have the following prerequisites:
The first step is to download the MapBBCodeShare package from Github.
$ git clone https://github.com/MapBBCode/share.mapbbcode.org.git
This will create a new directory called share.mapbbcode.org
in the current directory.
Next, we need to install some packages which are required for MapBBCodeShare.
$ sudo apt-get update
$ sudo apt-get install php7.2-curl php7.2-mysql php7.2-gd php7.2-cli php7.2-xml
After installing the required packages, we need to create a new database for MapBBCodeShare.
$ mysql -u root -p
mysql> CREATE DATABASE mapbbcode;
mysql> GRANT ALL PRIVILEGES ON mapbbcode.* TO 'mapbbcodeuser'@'localhost' IDENTIFIED BY 'yourpassword';
mysql> FLUSH PRIVILEGES;
mysql> EXIT;
Replace mapbbcodeuser
and yourpassword
with your desired username and password. Note them down as we will use them later.
To configure MapBBCodeShare, we need to modify the config.php
file inside the share.mapbbcode.org
directory.
$ cd share.mapbbcode.org
$ cp config.php.sample config.php
$ nano config.php
In this file, find the following lines:
// Database connection settings
define('DB_HOST', 'localhost');
define('DB_NAME', 'mapbbcode');
define('DB_USER', 'mapbbcodeuser');
define('DB_PASSWORD', 'yourpassword');
Update these lines with the database settings we created earlier.
After configuring MapBBCodeShare, we can now install it by importing the database and running the installer.
$ mysql -u mapbbcodeuser -p mapbbcode < db/mapbbcode.sql
$ php install.php
This will install the required tables and create a new user account with administrative privileges. Note down the username and password as it will be required to log in.
Finally, we need to set the correct permissions for the cache
and uploaded
directories.
$ chmod 777 cache
$ chmod 777 uploaded
MapBBCodeShare should now be installed and configured on your Ubuntu Server Latest. To access it, open your web browser and navigate to http://your-server-ip-or-domain/share.mapbbcode.org
, where your-server-ip-or-domain
is the IP address or domain name of your server.
Login with your administrative account and start using MapBBCodeShare.
In this tutorial, we have shown you how to install MapBBCodeShare on Ubuntu Server Latest. Using MapBBCodeShare, you can easily share and embed maps on your website.
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!