How to Install ProjectSend on Ubuntu Server

ProjectSend is an open-source application, designed to share files securely between users. It is a web application that can be installed on a server to provide a centralized platform for file sharing. In this guide, we will look at how to install ProjectSend on Ubuntu Server.

Prerequisites

Before we begin installing ProjectSend, ensure that you have the following:

Step 1: Download ProjectSend

To download the latest version of ProjectSend, visit the official website via https://www.projectsend.org/download/ page.

wget https://github.com/Projectsend/projectsend/releases/download/v7.1.4/projectsend_7.1.4.zip

After downloading the package, extract it to the /var/www directory.

sudo unzip projectsend_7.1.4.zip -d /var/www

Step 2: Create a MySQL Database

ProjectSend stores data in a MySQL database. You need to create a new database and user for ProjectSend.

Log in to the MySQL server as the root user.

sudo mysql -u root -p

Create a new database for ProjectSend.

CREATE DATABASE projectsend;

Create a new MySQL user.

CREATE USER 'projectuser'@'localhost' IDENTIFIED BY 'Password123';

Grant the user privileges to the database.

GRANT ALL PRIVILEGES ON projectsend.* to 'projectuser'@'localhost';

Flush privileges and exit MySQL.

FLUSH PRIVILEGES;
EXIT;

Step 3: Configure ProjectSend

Create a copy of the configuration sample file.

cd /var/www/projectsend
cp config_sample.php config.php

Edit the config.php file.

sudo nano config.php

Update the following lines with your database information.

define('DB_USER', 'projectuser');
define('DB_PASSWORD', 'Password123');
define('DB_NAME', 'projectsend');

Save and exit the file.

Step 4: Configure Apache

Create a new Apache virtual host configuration file.

sudo nano /etc/apache2/sites-available/projectsend.conf

Add the following configuration to the file.

<VirtualHost *:80>
  ServerName projectsend.example.com

  DocumentRoot /var/www/projectsend
  <Directory /var/www/projectsend>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/projectsend-error.log
  CustomLog ${APACHE_LOG_DIR}/projectsend-access.log combined
</VirtualHost>

Replace projectsend.example.com with your domain name or IP address.

Enable the new virtual host configuration.

sudo a2ensite projectsend.conf

Restart Apache for the changes to take effect.

sudo systemctl restart apache2

Step 5: Access ProjectSend

In your web browser, access the URL http://projectsend.example.com to complete the ProjectSend installation. The wizard will guide you through the installation process.

If you did not use a domain name, use the server IP address in place of the domain name.

Conclusion

You have now installed ProjectSend on Ubuntu Server 20.04. You can now use it to share files between users over the internet securely.

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!