Recently we showed you how to install OwnCloud with Composer for easy management and Apache2 support on Ubuntu 16.04 / 18.04 LTS…. Well, this post shows you how to setup OwnCloud with Composer and Nginx HTTP support instead…
If you’re a new user or student looking for help installing the latest version of OwnCloud Server ( 10.0.9 ) from Github using Composer with Nginx, MariaDB and PHP 7.2 support, then the steps below should be a great place to start…
When you use Composer to install OwnCloud packages, you can easily upgrade from the commmand line with Composer, which is much simpler…
To upgrade OwnCloud, you must manually upgrade its core files and other packages when new versions are available…. and doing that using its starndard method can be challenging for some users…
This brief tutorial is going to show students and new users how to install / upgrade OwnCloud from Github repository via Composer with Nginx, MariaDB and PHP 7.2 support on Ubuntu 16.04 / 18.04 LTS servers…
To get started with installing OwnCloud, follow the steps below:
Step 1: Install Nginx HTTP Server on Ubuntu
Nginx HTTP Server is probably the second most popular web server in use… so install it since OwnCloud needs it..
To install Nginx HTTP on Ubuntu server, run the commands below…
sudo apt update
sudo apt install nginx
After installing Nginx, the commands below can be used to stop, start and enable Nginx service to always start up with the server boots.
To test Nginx setup, open your browser and browse to the server hostname or IP address and you should see Nginx default test page as shown below.. When you see that, then Nginx is working as expected..
Step 2: Install MariaDB Database Server
MariaDB database server is a great place to start when looking at open source database servers to use with Magento… To install MariaDB run the commands below…
After installing PHP 7.2, run the commands below to open PHP default config file for Nginx…
sudo nano /etc/php/7.2/fpm/php.ini
Then make the changes on the following lines below in the file and save. The value below are great settings to apply in your environments.
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
cgi.fix_pathinfo = 0
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago
After making the change above, save the file and close out.
Step 3: Restart Nginx
After installing PHP and related modules, all you have to do is restart Nginx to reload PHP configurations…
To restart Nginx, run the commands below
sudo systemctl restart nginx.service
Step 4: Create OwnCloud Database
Now that you’ve installed all the packages that are required for OwnCloud to function, continue below to start configuring the servers. First run the commands below to create a blank OwnCloud database.
To logon to MariaDB database server, run the commands below.
sudo mysql -u root -p
Then create a database called owncloud
CREATE DATABASE owncloud;
Create a database user called ownclouduser with new password
CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'new_password_here';
Then grant the user full access to the database.
GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
Finally, save your changes and exit.
Step 5: Download OwnCloud Latest Release
To get OwnCloud latest release you may want to use Github repository… Install Composer, Curl and other dependencies to get started…