×
Community Blog How to Setup ownCloud on Ubuntu 16.04

How to Setup ownCloud on Ubuntu 16.04

In this article, you will get some information on the installation of ownCloud on your Alibaba Cloud Elastic Compute Service (ECS) instance with Ubuntu 16.

You can setup your ownCloud server on Alibaba Cloud Elastic Compute Service (ECS) running Ubuntu 16.04. The cloud software is written in PHP and JavaScript and requires MariaDB/MySQL database alongside a web server like Apache to function.

You can install Apache Web Server, MySQL server and create ownCloud MySQL Database and User according to this step by step guide.

Installing PHP scripting language

PHP is one of the most widely used server-side scripting language. The open source general purpose programming language is powerful for running dynamic and interactive web applications like ownCloud

By the time of writing this guide, the highest PHP version supported by ownCloud was PHP 7.1.

To, install it, run the command below:

$ sudo apt-get install software-properties-common

Press Y and hit Enter when prompted to confirm the installation

$ sudo add-apt-repository ppa:ondrej/php

Press Enter when prompted to add the repository.

Then, update the repository information using the command below:

$ sudo apt-get update

You can now go ahead and install PHP 7.1

$ sudo apt-get install php7.1 

Press Y and hit Enter when prompted to confirm the installation.

For ownCloud to work with PHP 7.1, you need to run the command below to make sure all the required PHP modules are installed:

$ 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

Press Y and hit Enter when prompted to confirm the installation.

You can now restart Apache so that it loads PHP:

$ sudo systemctl restart apache2

Download ownCloud software

You have now setup a web server, a database server and PHP scripting language. The server environment is now ready for running ownCloud software.

The latest ownCloud software can be downloaded from the link below in zip format:

https://download.owncloud.org/community/owncloud-10.0.3.zip

First, CD to the /tmp folder of your Ubuntu server:

$ cd /tmp  

Then use Linux wget utility to download the file from the link.

$ wget https://download.owncloud.org/community/owncloud-10.0.3.zip

The zip file should now be saved on the /tmp directory, you need to unzip it and copy it to the root of your web server /var/www/html using the unzip command:

First, install the unzip tool:

$ sudo apt-get install unzip

Then, unzip the file and send the content to the root of the website:

$ sudo unzip owncloud-10.0.3.zip -d /var/www/html/

Allow a few seconds for the unzip utility to finalizing the process.

Then you can configure your ownCloud Directory and file permissions and finalize the installation. For details, you can go to see How to Install ownCloud on Alibaba Cloud ECS Ubuntu 16.04.

Related Blog Posts

How to Setup Zabbix on Ubuntu 16.04

Zabbix is an open source and enterprise-class network monitoring tool that can be used to monitor performance and availability of the server, network devices and other network components. Zabbix uses MySQL, PostgreSQL and Oracle to store its data. Zabbix also provides a user friendly web interface to monitor and track data and settings. Zabbix uses a Zabbix agent to collect the data and send it to the Zabbix server.

How to Secure Apache Web Server with ModEvasive on Ubuntu 16.04

According to a July 2018 research published by w3techs, Apache has a market share of around 45.9%. That being said, Apache web server is targeted by most hackers. The software is secure out-of-the-box but you can still harden it with some additional modules.

One of the most common methods of securing your Apache web server hosted on Alibaba Cloud is installing ModEvasive. This is a highly intelligent Apache module that provides evasive actions against Distributed Denial of Service and Brute Force attacks.

Related Market Products

There are some products with php infrastructures built by partners can be quickly launched on Alibaba Cloud servers.

PHP infrastructure powered by Websoft9(WAMPServer)

Websoft9 WAMPServer stack is a pre-configured, ready to run image for running PHP application on Alibaba Cloud.WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database.

LAMP on Ubuntu 14.04 64bits

IGS provides a list of images pre-integrated with most popular software for web service solution. It includes ready-to-run versions of Apache/Nginx, MySQL, PHP and phpMyAdmin etc.

It includes ready-to-run versions of Apache/Nginx, MySQL, PHP and phpMyAdmin etc. IGS images greatly simplify the development and deployment of Web applications.

Related Documentation

There are some documentation may be useful to you.

[Vulnerability notice] CVE-2018-5711: DoS vulnerability in the PHP GD Library

On January 22, 2018, a security researcher discovered a DoS vulnerability in the PHP environment. The PoC can trigger the suspension and crash of the PHP process with specially crafted GIF images, affecting website functions and services. The PoC is public. Because websites developed in PHP use the GD Library for image uploading, we recommend that you keep yourself updated with this vulnerability.

Harden PHP environment security

With the increasing application of PHP, security is becoming a more prominent concern. Safe mode, provided by the PTP environment, is an important embedded security feature which is capable of controlling some PHP functions, such as the system() function. Meanwhile, the safe mode also manages permissions for many file operation functions and does not allow editing certain keyword files, such as the /etc/passwd file. However, safe mode is not enabled by default in the php.ini configuration file. This document explains how to use PHP security features to increase your website security.

Related Products

Elastic Compute Service

An online computing service that offers elastic and secure virtual cloud servers to cater all your cloud hosting needs.

Managed Security Service

Identify vulnerabilities and improve security management of the online business systems with a fully managed security service

Related Course

Alibaba Cloud Managed Security Services Introduction

Through this course, you will better understand what can Alibaba Cloud Managed Security Services do for you and the whole service structure and benefits

Web Application Attacks and Defense Deep Dive

Web applications are the most common way to provide services on the cloud and are the most vulnerable security targets. Through this course, you can understand the top 10 network application security risks listed by OWASP. We will explain these 10 security risks one by one, and choose XSS, SQL injection, Webshell, the three most common attack methods to further In-depth discussion, and finally introduce Alibaba Cloud's WAF products to help you solve online application security problems once and for all.

0 0 0
Share on

Alibaba Clouder

1,405 posts | 218 followers

You may also like

Comments