How to Install Access to Memory (AtoM) on Void Linux

Access to Memory (AtoM) is a web-based, open-source application for managing archives and other digital cultural heritage materials. In this tutorial, we will walk you through the steps to install AtoM on Void Linux.

Prerequisites

Before we get started, make sure that you have the following:

Steps to Install AtoM on Void Linux

  1. Update the system packages:
sudo xbps-install -Suv
  1. Install the required dependencies:
sudo xbps-install -y php-fpm php-dba php-json php-mbstring php-sqlite3 sqlite sqlite-devel nginx mysql mysql-devel mysql-client
  1. Install Composer to manage packages and dependencies:
sudo xbps-install -y composer
  1. Create a new database for AtoM:
mysql -u root -p
CREATE DATABASE atom;
GRANT ALL PRIVILEGES ON atom.* TO 'atomuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;

Note: Replace 'password' with a secure password of your choice.

  1. Download and install AtoM:
cd /var/www/
sudo git clone https://github.com/artefactual/atom.git
  1. Set the correct permissions for the AtoM directory:
sudo chown -R nginx:nginx /var/www/atom
  1. Install AtoM dependencies:
cd /var/www/atom
sudo composer install --no-dev
  1. Change the ownership of the AtoM directory to the Nginx user:
sudo chown -R nginx:nginx /var/www/atom
  1. Configure Nginx to serve AtoM:
sudo nano /etc/nginx/nginx.conf

Add the following configuration inside the 'http' block:

server {
    listen       80;
    server_name  atom.example.com;

    root /var/www/atom;

    index index.php;

    access_log /var/log/nginx/atom.access.log;
    error_log /var/log/nginx/atom.error.log;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}

Replace 'atom.example.com' with your domain name or IP address, if you don't have one.

  1. Restart Nginx and PHP-FPM services:
sudo service nginx restart
sudo service php-fpm restart
  1. Open your web browser and navigate to 'http://atom.example.com/' to access AtoM:

Congratulations, you have successfully installed AtoM on Void Linux!

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!