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.
Before we get started, make sure that you have the following:
sudo xbps-install -Suv
sudo xbps-install -y php-fpm php-dba php-json php-mbstring php-sqlite3 sqlite sqlite-devel nginx mysql mysql-devel mysql-client
sudo xbps-install -y composer
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.
cd /var/www/
sudo git clone https://github.com/artefactual/atom.git
sudo chown -R nginx:nginx /var/www/atom
cd /var/www/atom
sudo composer install --no-dev
sudo chown -R nginx:nginx /var/www/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.
sudo service nginx restart
sudo service php-fpm restart
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!