How to Install ResourceSpace on Debian Latest

ResourceSpace is a digital asset management system that allows you to manage, share, and distribute your files across your organization. In this step-by-step tutorial, we will install ResourceSpace on Debian Latest.

Prerequisites:

To install ResourceSpace on Debian, you need the following;

Let's get started!

  1. Update and Upgrade Your System:

    sudo apt update && sudo apt upgrade -y

  2. Install LAMP stack:

    sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-curl php-cli php-imagick php-mbstring php-gd php-xml imagemagick ghostscript -y
    
  3. Download ResourceSpace:

    curl -s https://www.resourcespace.com/get/latest -o resourcespace_latest.zip
    
  4. Unzip the archive:

    unzip resourcespace_latest.zip -d /var/www/
    
  5. Set the correct ownership and permissions for the files:

    sudo chown -R www-data:www-data /var/www/resourcespace/
    sudo chmod -R 775 /var/www/resourcespace/
    
  6. Create a new MySQL database:

    mysql -u root -p
    mysql> CREATE DATABASE resourcespace_db;
    mysql> GRANT ALL PRIVILEGES ON resourcespace_db.* TO 'resourcespace_user'@'localhost' IDENTIFIED BY 'password';
    mysql> FLUSH PRIVILEGES;
    mysql> EXIT;
    
  7. Configure ResourceSpace:

    cd /var/www/resourcespace/
    sudo cp config.php.in config.php
    sudo nano config.php
    

    Update the following details in the config file:

    $mysql_server      = "localhost" 	// replace localhost with your DB hostname or IP
    $mysql_port        = 3306 		// replace 3306 with your DB port
    $mysql_username    = "resourcespace_user" // replace resourcespace_user with your DB username
    $mysql_password    = "password" // replace password with your DB password
    $mysql_database    = "resourcespace_db" // replace resourcespace_db with your DB name
    
  8. Update Apache Configuration:

    sudo cp resourcespace.conf /etc/apache2/sites-available/
    sudo a2ensite resourcespace.conf
    sudo a2enmod rewrite
    sudo systemctl restart apache2
    
  9. Open ResourceSpace:

    In your web browser, go to your machine IP address or domain name http://<your_machine_ip>/resourcespace.

    Here you can set up your system admin account, and you can start uploading, managing and sharing your digital files.

Congratulations, you have successfully installed ResourceSpace on your Debian Latest 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!