How to Install ownCloud on Alibaba Cloud ECS Ubuntu 16.04

Prerequisites

  • A valid Alibaba Cloud account. If you don’t have one, register for free and get $300 worth in Free Trial.
  • An Alibaba Cloud ECS instance running Ubuntu 16.04 Operating System
  • A non-root user for your Alibaba ECS instance that can perform sudo privileges

Step 1: Install Apache Web Server

$ sudo apt-get update
$ sudo apt-get install apache2
http://server_public_ip_address
$ sudo a2dismod autoindex
$ sudo a2enmod rewrite
$ sudo a2enmod headers
$ sudo a2enmod env
$ sudo a2enmod dir
$ sudo a2enmod mime
$ sudo service apache2 restart

Step 2: Install MySQL server

$ sudo apt-get install mysql-server
$ sudo mysql_secure_installation
Setup Validate Password plugin? : Y
Password validation policy level:2
Change the password for root? N
Remove anonymous users? : Y
Disallow root login remotely? : Y
Remove test database and access to it? : Y
Reload privilege tables now? : Y

3: Create ownCloud MySQL Database and User

$ sudo mysql -uroot -p
mysql>
mysql> create database owncloud;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'oc_user'@'localhost' identified by 'PASSWORD';
Query OK, 0 rows affected (0.00 sec)
mysql>flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>exit;

Step 4: Installing PHP scripting language

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php7.1
$ sudo apt-get install php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-zip php7.1-curl php7.1-xmlrpc
$ sudo systemctl restart apache2

Step 5: Download ownCloud software

https://download.owncloud.org/community/owncloud-10.0.3.zip
$ cd /tmp
$ wget https://download.owncloud.org/community/owncloud-10.0.3.zip
$ sudo apt-get install unzip
$ sudo unzip owncloud-10.0.3.zip -d /var/www/html/

Step 6: Configuring ownCloud Directory and File Permissions

$ sudo chown -R www-data:www-data /var/www/html/owncloud/
$ sudo chmod -R 755 /var/www/html/owncloud/

Step 7: Finalizing the Installation

http://public_ip_address/owncloud

Step 8: Testing the Installation

Conclusion

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Code Jam 2020 Solutions

170. Two Sum III — Data structure design

AWS: New Look

Scrum Estimation — How we size up the User Story

There’s Nothing to Worry About

Game Theory in Competitive Programming Series: Part 4

Introduction to Git and GitHub

How to make your website load faster

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Kubernates StatefulSet — RabbitMQ

Build and run microservices with Kubernetes, Helm and Skaffold locally

Securing Kubernetes-in-Docker

CockroachDB — Postgres for the cloud