By Francis Ndungu, Alibaba Cloud Community Blog author.
Pydio is one of the best open-source software for sharing and storing files in the cloud. Competing with software applications like ownCloud and Dropbox, Pydio is great for syncing data with your cloud server, desktop computer and mobile phone. The software allows you to keep your data secure in a cloud server. If you have a virtual private server (VPS) such as an ECS instance from Alibaba Cloud, you can use Pydio while still conforming to your data security policies and user rights management.
In this guide, we will walk you through the steps of installing Pydio on your Alibaba Cloud Elastic Compute Service (ECS) instance running Ubuntu 18.04. Once the installation is complete, users in your organization can log in to save and share files across different Pydio instances.
Before you begin, make sure you have the following:
SSH to your Ubuntu 18.04 server. Then, update the package information index.
$ sudo apt-get update
Then, run the command below to install Apache web server:
$ sudo apt-get -y install apache2
You can check if Apache was installed successfully by entering the public/internet IP address or domain name associated with your Alibaba Cloud ECS instance.
If there were no errors with the Apache setup, you should see a page similar to the one shown below:
Once, Apache is installed, enable
mod_rewrite by running the command below:
$ sudo a2enmod rewrite
Then, restart Apache for the changes to be effected.
$ sudo systemctl restart apache2
You have setup Apache web server and enabled mod_rewrite, in the next step, you will configure a database for the Pydio software.
Pydio requires a database in order to initialize its structures. So, you need to install MySQL database server by running the command below
$ sudo apt-get -y install mysql-server
The default MySQL installation is not secure. So, you should run the
mysql_secure_installation command to secure it.
$ sudo mysql_secure_installation
Next, you will get some prompts, Respond with the values shown below. Remember to replace PASSWORD with a strong value.
Would you like to Setup VALIDATE PASSWORD plugin? [Y/N] Y Password Validation policy level : 2 New password for root: PASSWORD Re-enter new password: PASSWORD Continue with the password provided: Y Remove anonymous users? [Y/N] Y Disallow root login remotely? [Y/N] Y Remove test database and access to it? [Y/N] Y Reload privilege tables now? [Y/N] Y
Once you have tightened the security of your MySQL server, log in to the database:
$ sudo mysql -uroot -p
Enter the root password of your database server and hit Enter to continue. Then, run the following SQL commands one by one to create a database and a privileged user for Pydio software. Replace PASSWORD with a strong value.
mysql > CREATE DATABASE pydio_db DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; mysql > GRANT ALL PRIVILEGES ON pydio_db.* TO 'pydio_user'@'localhost' IDENTIFIED BY 'PASSWORD'; mysql > Flush privileges; mysql > Quit
You have now installed MySQL, secured the server and created a database for Pydio to run. In the next step, you will install PHP and all required extensions needed by Pydio.
Pydio is written in PHP and thus you must install this scripting language in this step. To do this, run the command below:
$ sudo apt-get install -y php libapache2-mod-php
Also, Pydio relies heavily on some PHP extensions. Run the command below to install all of them in one line:
$ sudo apt-get install -y php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-zip php-curl php-xmlrpc
To effect the changes, restart Apache web server.
$ sudo systemctl restart apache2
Once you have installed PHP and all the required extensions, you will move over to installing Pydio in the next step.
Pydio software is not available on the default Ubuntu package repository, so you will need to add the package installation information on the sources list. Run the command below.
$ sudo sh -c 'echo "deb https://download.pydio.com/pub/linux/debian/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/pydio.list'
Next, add the pydio GPG key on the system.
$ wget -qO - https://download.pydio.com/pub/linux/debian/key/pubkey | sudo apt-key add -
You can now updated the package information index to sync the changes.
$ sudo apt-get update
Then, run the command below to install Pydio on the server;
$ sudo apt-get install -y apt-transport-https pydio pydio-all
Towards the end of the installation, you will get a prompt to configure encfs, just hit Enter to continue.
You have now installed the Pydio package on your Ubuntu 18.04 server. You will now go ahead and setup Pydio via a web browser in the following step.
In this step, you will be configuring Pydio on the web interface. You will run a wizard to configure the database that you created earlier and create a user account for accessing Pydio.
Visit the address below on your web browser. Remember to replace 198.18.0.1 with the public/internet IP address associated with your Alibaba Cloud ECS instance or domain name.
Once the page loads, click CONTINUE TO PYDIO INSTALLATION.
Next, choose your desired language and click START WIZARD.
On the next screen, you can define your Pydio application title and welcome message or just leave them intact. Then, click NEXT to continue
Next, create a user account by entering the username, full names and password and click NEXT.
Next, configure a database connection using the database and user that you created earlier and click on TEST DB CONFIGURATION.
Then, click on INSTALL PYDIO to finalize the installation
If the installation succeeds, you will be taken to the Pydio login page, use the Pydio user account details that you created above to login
Congratulations. If you were able to log in, you can now access the Pydio dashboard to upload, manage and share your files in the cloud.
In this guide, we took you through the steps for installing Pydio on an ECS instance hosted on Alibaba Cloud. You can use this tutorial to create a cloud infrastructure for storing, securing and sharing your files in the cloud. Remember, if you are new to Alibaba Cloud, you can sign up now and get up to $1200 worth of free credit to test Pydio and other Alibaba cloud products.
Alibaba Clouder - February 27, 2019
Alibaba Clouder - April 12, 2019
Alex - June 21, 2019
Alibaba Clouder - September 28, 2018
Hiteshjethva - March 2, 2020
Alibaba Clouder - October 1, 2018
Web App Service allows you to deploy, scale, adjust, and monitor applications in an easy, efficient, secure, and flexible manner.Learn More
Simple, scalable, on-demand and reliable network attached storage for use with ECS instances, HPC and Container Service.Learn More
An elastic and horizontally scalable high-performance computing service providing the same computing performance as traditional physical servers including physical isolation.Learn More
An online computing service that offers elastic and secure virtual cloud servers to cater all your cloud hosting needs.Learn More
More Posts by francisndungu