Toggle navigation

Owncloud Image Guide

Version 9.1.3

Websoft9 OwnCloud is a pre-configured, ready to run image for running OwnCloud on Alibaba Cloud.

OwnCloud is a self-hosted file sync and share server software. It provides access to your data through a web interface, sync clients or WebDAV while providing a platform to view, sync and share across devices easily — all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plugins and it works with any storage

Software Version: OwnCloud 9.1.3
Software directory: /data/wwwroot/default/owncloud

Basic software environment: LAMP
PHP Configuration File: /usr/local/php/etc/php.ini
Virtual host Configuration File directory: /usr/local/apache/conf/
Virtual host Configuration Command: /root/oneinstack/vhost

Database install directory: /usr/local/mysql
Database data directory: /data/mysql
Database Configuration File: /etc/my.cnf

After the installation of Image,please verify it

  • Login on Alibaba Cloud console,get you Internet IP Address
  • Open you Chrome or Firefox on your local PC,visit the http://Internet IP Address/
  • If verify successfully,you can enter the boot page of Websoft9 below
  • If no response from browser,please check the Security Group settings to ensure that port 80 is been allowed

This Image use MySQL for database

#default user/password:root/123456

MySQL User Guide: Click here

Step1. Create a database

1.login in MySQL:

Method 1:Use following URL to open phpMyAdmin page: http://< Public net IP >/phpMyAdmin

Method 2:Use SSH command to login in.

mysql -uroot –p                      #enter mysql console

 #default user/password:root/123456            More MySQL User Guide: Click here


2.create a database:

MySQL [(none)]> create database mydbname;

MySQL [(none)]> show databases;


3.Create a Database User and grants permissions to the User:

MySQL [(none)]> grant all privileges on mydbname.* to username@’localhost’ identified by ‘userpassword’;

MySQL [(none)]> flush privileges;

MySQL [(none)]> exit;


Step2. Add a virtual host

Use SSH Command to Add a virtual host:

[root@iZbp1i4rjdsy216yq7lgucZ ~]# cd /root/oneinstack

[root@iZbp1i4rjdsy216yq7lgucZ oneinstack]# ./

Step3. Install OwnCloud

Open your domain name via browser:
1. Set admin account, Click “Storage & database”;

2. Click “MySQL/MariaDB”;

3. Fill in Database Configration, Click “Finish setup”;

4. OK, it has been installed successfully.

Use http://<domain name>/  to go to your index page.

Owncloud Marketplace includes hundreds of free apps and connect services you use to ownCloud,you can use apps to extend functions,themes

How to add a new app?e.g.we will use the app “OwnBackup”

  1. Got to the marketplace,search the “OwnBackup” and download it
  2. unzip it on you PC
  3. upload the files to data/wwwroot/default/owncloud/apps by FTP
  4. list the not enabled apps and enable the OwnBackup
  5. Now you can use OwnBackup app from Admin->Admin

When you backup your ownCloud server, there are four things that you need to copy:

  1. Your config/ directory.
  2. Your data/ directory.
  3. Your ownCloud database.
  4. Your custom theme files, if you have any.

Automatic Backup & Restore

If you have installed the “OwnBackup” app ( install it first) you can backup use interface

  1. Admin->Admin->OwnBackup
  2. Click the “Create Backup”-Yes,backup successful
  3. If you want to Restore owncloud,Select the backup you want to restore tables from and Select the tables you want to restore,then click the button “Restore Tables”

You should always maintain regular backups and make a fresh backup before every upgrade.

Then review third-party apps, if you have any, for compatibility with the new ownCloud release. Any apps that are not developed by ownCloud show a 3rd party designation. Install unsupported apps at your own risk. Then, before the upgrade, all 3rd party apps must be disabled. After the upgrade is complete you may re-enable them.

Upgrading ownCloud with the Updater App

The Updater app automates many of the steps of upgrading an ownCloud installation. It is useful for installations that do not have root access, such as shared hosting, for installations with a smaller number of users and data, and it automates updating manual installations.

You should maintain regular backups (see Backing up ownCloud), and make a backup before every update. The Updater app does not backup your database or data directory.

The Updater app performs these operations:

  • Creates an updater_backup directory under your ownCloud data directory
  • Downloads and extracts updated package content into the updater_backup/packageVersion directory
  • Makes a copy of your current ownCloud instance, except for your data directory, to updater_backup/currentVersion-randomstring
  • Moves all directories except dataconfig and themes from the current instance to updater_backup/tmp
  • Moves all directories from updater_backup/packageVersion to the current version
  • Copies your old config.php to the new config/ directory

Using the Updater app to update your ownCloud installation is just a few steps:

  1. You should see a notification at the top of any ownCloud page when there is a new update available.
  2. Even though the Updater app backs up important directories, you should always have your own current backups (See Backing up ownCloud for details.)
  3. Verify that the HTTP user on your system can write to your whole ownCloud directory; see the Setting Permissions for Updating section below.
  4. Navigate to your Admin page and click the Update Center button under Updater. This takes you to the Updater control panel.
  5. Click Update, and carefully read the messages. If there are any problems it will tell you. The most common issue is directory permissions; your HTTP user needs write permissions to your whole ownCloud directory. (See Setting Strong Directory Permissions.) Another common issue is SELinux rules (see SELinux Configuration.) Otherwise you will see messages about checking your installation and making backups.
  6. Click Proceed, and then it performs the remaining steps, which takes a few minutes.
  7. If your directory permissions are correct, a backup was made, and downloading the new ownCloud archive succeeded you will see the following screen. Click the Start Update button to complete your update:It runs for a few minutes, and when it is finished displays a success message, which disappears after a short time.
  8. Refresh your Admin page to verify your new version number. In the Updater section of your Admin page you can see the current status and backups. These are backups of your old and new ownCloud installations, and do not contain your data files. If your update works and there are no problems you can delete the backups from this screen.If the update fails, then you must update manually. (See Manually upgrading.)

Go to admin->Personal,you can set you language

Websoft9 Owncloud Image have installed the phpMyadmin

phpMyAdmin install directory: /data/wwwroot/default/phpMyAdmin


Following is the step for access phpMyadmin

  1. Open Chrome or Firefox on your local PC
  2. visit the http://Internet IP Address/phpMyAdmin,you can enter the login page
  3. select you language,Username:root,Password:123456
  4. Click the button “Go”


Following is the step for access phpMyadmin

  1. User Remote Desktop Connection of Window to connect to you ECS
  2. Install a Chrome or Firefox browser on you ECS
  3. Open Chrome or Firefox on your ECS
  4. visit the http://localhost/phpMyAdmin,you can enter the login page
  5. select you language,Username:root,Password:123456
  6. Click the button “Go”

The External Storage Support application enables you to mount external storage services and devices as secondary ownCloud storage devices. You may also allow users to mount their own external storage services.

  1. Make sure The External storage support application is enabled on your Apps page.
  2. To create a new external storage mount, select an available backend from the dropdown Admin->Add storage->External Storage. Each backend has different required options, which are configured in the configuration fields.
  3. Each backend may also accept multiple authentication methods. These are selected with the dropdown under Authentication. Different backends support different authentication mechanisms; some specific to the backend, others are more generic. See External Storage Authentication mechanisms for more detailed information.When you select an authentication mechanism, the configuration fields change as appropriate for the mechanism. The SFTP backend, for one example, supports username and passwordLog-in credentials, save in session, and RSA public key.
  4. Required fields are marked with a red border. When all required fields are filled, the storage is automatically saved. A green dot next to the storage row indicates the storage is ready for use. A red or yellow icon indicates that ownCloud could not connect to the external storage, so you need to re-check your configuration and network availability.If there is an error on the storage, it will be marked as unavailable for ten minutes. To re-check it, click the colored icon or reload your Admin page.

The ownCloud marketplace is the platform for developers, maintainers and administrators who work with ownCloud. Thanks to the modular architecture of your favorite cloud software you can easily extend the ownCloud core with a lot of useful features. Those features are available as apps, themes and even services which are published and offered by the community, enterprise partners and ownCloud itself. The new market app included in every ownCloud instance (starting with version 10) makes it easy to install new features.

If you are an administrator or developer with ownCloud expert skills, the marketplace is your platform to let the world know about you and your work.

When install new extension from back-end it will not successful,may be the permissions of file and folder is not appropriate,you should change it

Web site root permissions to follow:
file 644, folder 755 ,Permissions Users and groups www
If there is a file permissions problem, execute the following three commands:

chown -R www.www /data/wwwroot/default/owncloud
find /data/wwwroot/default/owncloud -type d -exec chmod 755 {} \;
find /data/wwwroot/default/owncloud -type f -exec chmod 644 {} \;

Modify the  /usr/local/php/etc/php.ini file to increase the allowed size for uploads:

; Maximum size of POST data that PHP will accept.
post_max_size = 16M
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M

then,restart the apache

# service httpd restart

The PHP configuration file allows you to configure the modules enabled, the email settings or the size of the upload files. It is located at /usr/local/php/etc/php.ini.

There are some PHP settings that need to be sufficient to install.

e.g The values for PHP.ini below are suggested values only.

  • memory_limit – Minimum: 256M Recommended: 1G or better
  • upload_max_filesize – Minimum: 20M
  • post_max_size – Minimum: 20M
  • max_execution_time: At Least 120 Recommended: 300

After modifying the PHP configuration file, restart both Apache and PHP-FPM for the changes to take effect:

# service httpd restart


If you receive the message “Maximum execution time of 30 seconds exceeded”.You may also like to extend the max_execution_time for PHP and you can modify it by two methods below

Method one: edit your  /usr/local/php/etc/php.ini

; Maximum execution time of each script, in seconds
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 90
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.

Method two: edit your .htaccess:

<IfModule mod_php5.c>
php_value max_execution_time 90

This document is original from Websoft9.In order to ensure the seriousness and usability of the documentation, no one may misappropriate or modify the second distribution. The need for friends reproduced please mark the source, otherwise we reserve the right to give legal action.

We will periodically update the documentation. Please visit the online documentation for the latest version

This document URL:
Support & Partnership:

Need more same solution like Owncloud,please read:Best DIY Cloud Storage Tools