Vultr 安装ownCloud 说明 One-Click ownCloud
本文最后更新于:2025年8月22日 晚上
来源: [One-Click ownCloud - Vultr.com](https://www.vultr.com/docs/one-click-
owncloud) Modified on: Thu, Aug 6, 2015 at 12:43 pm EST
This article contains information about the ownCloud application that can be
deployed on Vultr.
App Details
ownCloud runs on the CentOS 6 x64 operating system. You can log into this
system with an SSH client using the root login found on your Vultr control
panel. Initially, you will need to access https://[SERVER_IP]/
in your web-
browser. Substitute the [SERVER_IP]
with the IP address of your VPS. Your
ownCloud credentials are available in the Vultr control panel. Upon logging
into ownCloud, your ownCloud application will be setup and ready for use. See
SSL Warning below if you are concerned about the initial SSL warning.
SQL Database
There is a MySQL database server running on the VPS. This is used by ownCloud.
You can connect to the database by executing the following:
mysql -u root
The MySQL root password is saved on the VPS in /root/.my.cnf
.
Backup Script
The Vultr team has provided a backup script for convenience. This is located
in the /root/
folder. You can run this file by logging in as root and
executing sh backup-owncloud.sh
. A backup of the ownCloud configuration,
database, and uploaded files will exist in the /root/
folder. Ensure that
you have enough space on your VPS to duplicate all of your files before
running it.
SSL Warning
When you first access https://[SERVER_IP]/
, you will see an SSL working.
Don’t panic - this is normal. When you access ownCloud, you log in with
your password. To ensure that your password is transmitted securely from your
computer to your ownCloud application, secure-sockets (SSL) are used. The SSL
warning shows because Vultr setup your application with a self-signed
certificate. Modern web browsers don’t trust self-signed certificates by
default, which is why you see the warning. Simply tell your web browser to
trust the self-signed certificate, and it will navigate you to the ownCloud
login screen. SSL warning in Chrome:
SSL warning in Firefox:  ownCloud login screen:  If you want to remove the SSL warning entirely, then you will need
your own domain and a certificate from a certificate authority. The process of
registering a domain name and obtaining an SSL certificate is outside of the
scope of this article. However, once you have an SSL certificate, you can
integrate it with this app by doing the following:
- Point the DNS “A record” of your website to your
[SERVER_IP]
. - Login to your ownCloud app with SSH.
- Upload the certificate and private key files to
/etc/nginx/ssl/server.crt
and/etc/nginx/ssl/server.key
. - Run the command
service php-fpm restart && service nginx restart
.
Upgrading from 7.0 to 8.0
If your Vultr ownCloud app is running ownCloud 7, it is not recommended to
upgrade to 8.0 with the update center, as there are known issues with the
ownCloud updater. If you have already started the 8.0 update process, here are
some commands that will help resolve upgrade issues.
# (login as root)
# First run this
yum -y install redis
service php-fpm restart
# After upgrade completes - if you see a blank page.
cd /var/www/owncloud
mv apps/calendar/ apps/calendar7
mv apps/contacts/ apps/contacts7
# Review the admin page for any other errors
# https://[SERVER_IP]/index.php/settings/admin
About Vultr Applications
Vultr applications use modern releases of software packages. Applications are
configured to be deployed with specific versions of software. Over time, the
Vultr team will update the application offerings to include newer operating
systems, package versions, etc. This document only provides up-to-date
information about the latest version of this application. Vultr
applications are updated without notice. If you plan to build a project or
infrastructure based on our application templates, we recommend taking a
snapshot of the application used in your initial deployment.