Set up Pydio Cells file sharing server on Ubuntu 20.04

The
You can download this article in PDF format to support us through the following link.

Download the guide in PDF format

turn off
The

The
The

Pydio unit is an open source file sharing software. It provides file synchronization, so various documents such as files, images and videos can be shared and accessed internally and externally from a central point. Pydio can be installed on a virtual machine or a physical computer.

Pydio also comes with native clients for Linux, Windows and MacOS and mobile clients for Android and iOS. Pydio is an alternative to other file sharing tools such as Drop Box and Nextcloud. In this guide, we will study how to install and configure Pydio on Ubuntu 20.04 for file sharing.

Step 1: Update the system

Before installing, you need to ensure that the system is running the latest software packages. Use the following command to update your Ubuntu 20.04 server.

sudo apt-get update -y
sudo apt-get upgrade -y

After the update, it is always recommended to reboot the server for the new changes to take effect.

sudo reboot

Step 2: Install LAMP Server on Ubuntu

Pydio server requires MySQL, Apache, PHP and other software packages to run. Run the following command to enable you to install all necessary packages.

sudo apt -y install apache2 mariadb-server apt-transport-https libapache2-mod-php php-{cli,fpm,json,mysql,zip,gd,mbstring,curl,xml,pear,bcmath,intl,opcache,xml}
sudo apt -y install mariadb-server postfix wget unzip -y

You will be prompted to enter Postfix SMTP configuration settings. In this case, the suffix will be installed in your Ubuntu server.

To learn more about postfix, check out the guide on how to install postfix on Ubuntu.

Choose your mail server configuration type

In the next dialog, provide a host name for your postfix server.

Set up Pydio Cells file sharing server on Ubuntu 20.04

After the installation is complete, open php.ini Edit the configuration file. Use your favorite file editor.

Change the php.ini file as follows. Open two files and make the changes shown below

sudo vim /etc/php/7.4/apache2/php.ini

Make the following changes

upload_max_filesize = 1G
post_max_size = 1G
output_buffering = off

Save and close the file, then continue to edit other php.ini files

sudo vim /etc/php/7.4/cli/php.ini
upload_max_filesize = 1G
post_max_size = 1G
output_buffering = off

Step 3: Configure MariaDB database

MariaDB has been installed when installing the LAMP server. First, use the following command to protect the installation of MariaDB. You will be prompted to enter a password for the MariaDB root user.

sudo mysql_secure_installation

Answer the prompt as shown

  • Enter the current password of root (without entering the password): Just press Enter
  • Set root password? [Y/n]: ÿ
  • new password: enter password
  • Re-enter the new password: Repeat password
  • Delete anonymous user? [Y/n]: ÿ
  • Prohibit remote root login? [Y/n]: ÿ
  • Delete the test database and access it? [Y/n]: ÿ
  • Now reload the privilege table? [Y/n]: ÿ

Allow root password login:

$ sudo mysql -u root
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'root';
FLUSH PRIVILEGES;
QUIT;

Next, we need to create a user and a database for Pydio. Use the following command to connect to MariaDB.

$ mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or g.
Your MariaDB connection id is 58
Server version: 10.3.22-MariaDB-1ubuntu1 Ubuntu 20.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

MariaDB [(none)]>

Enter the password you set above, and then continue to create users and databases for Pydio, and replace “mypassword” with the password of your choice. All databases are also granted user permissions for creation.

CREATE DATABASE pydio;
GRANT ALL ON pydio.* TO 'pydio-user'@'localhost' IDENTIFIED BY '[email protected]' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Test the database connection as the pydio-user user.

$ mysql -u pydio-user -p'[email protected]'
Welcome to the MariaDB monitor.  Commands end with ; or g.
Your MariaDB connection id is 59
Server version: 10.3.22-MariaDB-1ubuntu1 Ubuntu 20.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| pydio              |
+--------------------+
2 rows in set (0.001 sec)

MariaDB [(none)]> q
Bye

Step 4: Install Pydio server on Ubuntu 20.04

First, you need to add the Pydio repository to the Ubuntu 20.04 server, because the repository is not yet available. Also add the Pydio public key, and then continue to update the system repository.

echo "deb https://download.pydio.com/pub/linux/debian/ bionic main" | sudo tee /etc/apt/sources.list.d/pydio.list
wget -qO - https://download.pydio.com/pub/linux/debian/key/pubkey | sudo apt-key add -
sudo apt update

Now it’s time to install Pydio. Run the command as shown below

sudo apt install -y pydio pydio-all

Use the command shown below to enable the apache rewrite module, then restart and enable Apache2

sudo a2enmod rewrite
sudo systemctl restart apache2
sudo systemctl enable apache2

Use the following command to confirm that the Apache service is running:

sudo systemctl status apache2

If the installation is completed correctly, the output should be as shown, indicating that the apache2 service is running.

Set up Pydio Cells file sharing server on Ubuntu 20.04

Step 5: Visit Pydio in the browser

Open a browser and enter the URL http: ///pydio. You should see the page shown below

Set up Pydio Cells file sharing server on Ubuntu 20.04

Click the “Install” button and start the wizard.

Set up Pydio Cells file sharing server on Ubuntu 20.04

Provide the administrator username and password.

Set up Pydio Cells file sharing server on Ubuntu 20.04

It also provides details of the database connection, which has been previously configured. Make sure the connection test is successful.

Set up Pydio Cells file sharing server on Ubuntu 20.04

Continue to configure your Pydio server and enjoy file sharing!

Set up Pydio Cells file sharing server on Ubuntu 20.04

reference:

Here are more interesting guides in your daily Linux installation:

  • How to install Nextcloud on Ubuntu
  • How to install Seafile on Ubuntu
  • How to install Pydio file sharing server on Ubuntu
  • Nextcloud vs Owncloud vs Seafile vs Syncthing

The
You can download this article in PDF format to support us through the following link.

Download the guide in PDF format

turn off
The

The
The

Sidebar