On this page
Run the command below to install MariaDb on your Ubuntu 18.04 server. $ sudo apt-get install mariadb-server mariadb-client. Then, secure your MariaDb instance by typing the following: $ sudo mysqlsecureinstallation. The command above allows you to remove anonymous login, test databases and set a strong password for root user.
Pydio is a free and open source cloud-based file-sharing and synchronization software that allows you to access all your data storages from the central location. It is very alternative to other file-sharing software such as ownCloud and Nextcloud. Pydio provides an ajax based web interface that can be accessed from anywhere and any browser. Pydio allows you to connect your existing storages such as SAN, SAMBA, CIFS, FTP, NFS, etc. Pydio provides native clients for Mac, Windows, and Linux and mobile clients for iOS and Android. You can easily share files with other Pydio users or the public. Pydio can be integrated with LDAP/AD for authentication, also supports SSO with CMS such as WordPress, Drupal, and Joomla.
In this tutorial, we will learn how to install Pydio on Ubuntu 18.04 LTS.
Requirements
- A server running Ubuntu 18.04.
- A static IP address is set up on your server.
- A root password is set up on your server.
Getting Started
First, you will need to update your system with the latest version. You can do it with the following command:
Once your system is updated, restart the system to apply these changes.
Install LAMP Server
First, you will need to install Apache web server, MariaDB database server, PHP and other required packages to your system. You can install all of them by running the following command:
Once all the packages are installed, open php.ini file and make some changes:
Make the following changes:
Make the following changes:
Save and close the file, when you are finished.
Configure MariaDB
By default, MariaDB installation is not secured, so you will need to secure it first. You can secure it with the following command:
Once MariaDB is secured, log in to MariaDB shell with the following command:
Enter your root password. Then, create a database and user for Pydio with the following command:
Replace 'mypassword' with your own secure password. Next, grant all the privileges to the Pydio with the following command:
Replace 'mypassword' with your own secure password. Next, flush the privileges and exit from the MariaDB shell with the following command:
Your MariaDB database server is now set up properly. You can now proceed to install Pydio.
Install Pydio
By default, Pydio is not available in the Ubuntu 18.04 default repository. So, you will need to add the Pydio repository to your server. You can do it with the following command:
Next, import the GPG key and update the repository with the following command;
Finally, install Pydio with the following command:
Once the installation has been completed successfully, enable the Apache rewrite module with the following command:
Next, restart the Apache web server with the following command:
You can also verify the Apache web server status with the following command:
You should see the following output:
Apache web server is now configured and working fine. You can proceed to the next step
Access Pydio Web Interface
Pydio is now installed and configured, it's time to access their web interface.
Open your web browser and type the URL http://your-server-ip/pydio. You will be redirected to the following page:
Confirm all the checks and click on the CONTINUE TO PYDIO INSTALLATION button. You should see the following page:
Select your language and click on the START WIZARD. You should see the following page:
Set the Application name and welcome message. Then, click on the Next button. You should see the following page:
Next, set up your admin account and click on the Next button. You should see the following page:
Next, provide your database details like database name, database username, and password. Then, click on the TEST DB CONNECTION button. You should see the following page:
Next, click on the INSTALL PYDIO button. Once the installation has been completed successfully. You will be redirected to the following page:
Next, provide your admin username and password. Then, click on the ENTER button. You should see the following page:
Congratulations! you have successfully installed Pydio file sharing server on Ubuntu 18.04. You can now easily share a file with your friend using Pydio. Feel free to ask me if you have any questions.
LAMP stack (Linux, Apache, MySQL, and PHP) is the widely used stack to host a simple to large websites. If you think the above combination will only be installed on servers where the hosting is made, then that is wrong you can setup LAMP stamp on your PC which has Linux.
The installation procedure of the LAMP stack on Ubuntu is quite simple when compared to other Linux environment.
In other Linux environment, you need to install packages separately, one by one. But in Ubuntu, you can install the whole stack in the single command.
Here, we will see both ways of installing LAMP stack on Ubuntu 18.04.
You would get MySQL 5.7 as a database when you install LAMP stack using the single command. But, at the same time, if you choose to install LAMP stack manually, then you will be guided to install MariaDB 10.1 as a database.
Install Linux
Here is the guide about the Step by Step installation of Ubuntu 18.04 and Upgrading Ubuntu 16.04 LTS to Ubuntu 18.04 LTS.
Install LAMP Stack on Ubuntu 18.04 – Manual (One by one)
Now, we will proceed to install AMP (Apache version 2.4, PHP version 7.2, MariaDB version 10.1) on Ubuntu 18.04.
Install Apache HTTP server
Update the package repository index.
Install apache2 package using the apt command.
Testing Apache HTTP server:
We will now test the Apache web server to confirm whether it is working correctly. Open up any web browser and then navigate it to the following URL.
OR
http://your-ip-add-ress/
You will get the “Apache2 Ubuntu Default Page“, and this default page confirms you that the Apache HTTP server is working fine.
Apache web server’s default document root is /var/www/html/ on Ubuntu and the main configuration file is /etc/apache2/apache2.conf. Additional configuration files can be found in the /etc/apache2/*.enabled directory.
![Install Install](/uploads/1/2/5/6/125633258/282739192.jpg)
The directory hierarchy as follows.
Install MariaDB Server
MariaDB has replaced MySQL as a default database server in Linux distribution. To install MariaDB, run the following command
By default Apache server supports the .html only, not PHP. To get a PHP supprt, you would need to install PHP and the PHP extension package for MariaDB.
Here, we will install PHP 7.2 on Ubuntu 18.04.
Restart the Apache HTTP server after the installation of the PHP package.
Now, skip to Testing LAMP Stack.
Install LAMP Stack on Ubuntu 18.04 – Single Command
Now, we will proceed to install AMP (Apache version 2.4, PHP version 7.2, MySQL 5.7) on Ubuntu 18.04.
Update the repository cache using the apt command.
Paste below the line in the terminal and hit enter.
The above command will search and install the required packages for LAMP server. You should see messages something like below.
Wait for 10 to 15 minutes to let the installation LAMP stack complete. Then, check the status of the Apache and MySQL service.
Apache:
Output:
MySQL:
Output:
Test Apache
Before testing Apache, restart the Apache service.
Open up any web browser and then go to the following web address.
http://localhost/
OR
You should get the following page, and this confirms that Apache web server is working fine.
Apache’s default document root is /var/www/html on Ubuntu, and the main configuration file is /etc/apache2/apache2.conf.
Additional configurations like Virtual hosts and modules can be found in /etc/apache2/*-enabled directory
Test LAMP Stack
For testing the PHP, we will place one PHP file on to the default document root of Apache.
Paste the below line into the info file:
Now open a web browser and type the following into the web address:
http://localhost/phpinfo.php
OR
The page will look like below.
Scroll the page down to see the PHP extensions information including MySQL.
That’s All.