This article explains how to install ownCloud on your Media Temple VPS or dedicated server with Ubuntu 14.04. OwnCloud is a very popular open source cloud hosting platform.
"ownCloud is a self-hosted file sync and share server. 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."
STATEMENT OF SUPPORT:
Please keep in mind that troubleshooting the configuration/functionality of third-party applications is not covered by our statement of support. These resources were provided as a courtesy to assist you to the extent of our abilities. For more information on our statement of support, feel free to click here.
- A VPS with Ubuntu 14.04 installed
- Root SSH Access
- Familiarity with basic shell commands
These installation instructions assume that you have a fresh Ubuntu 14.04 install on your Media Temple VPS or dedicated server. To change your Media Temple VPS operating system through the Account Center, see these instructions. If you already have a standard LAMP stack or a web server and database software installed, you can skip to step 3. For more in-depth instructions for installing and configuring a LAMP stack, check out this community article.
Begin by connecting to your server via SSH as either root or a user with sudo access.
Connect via SSH - Community article with instructions.
1. Install Apache and the required PHP modules
apt-get install apache2 libapache2-mod-php5 apt-get install php5-gd php5-json php5-mysql php5-curl apt-get install php5-intl php5-mcrypt php5-imagick
2. Install and set up MariaDB
Owncloud requires a database to work properly. These instructions are for MariaDB, which is a powerful database utility. There's no reason to change to MariaDB if you already have a different database utility installed.
apt-get install -y mariadb-server
- Though not technically a requirement, it's important to complete the secure installation process. Don't forget to write down your root user password. Select "yes" at the end when prompted to reload privilege tables.
3. Download and unzip ownCloud's files
Use 'wget' to download ownCloud's installation files directly to your server. You may also download them to your computer and upload via S/FTP.
Unzip the installation files.
- Copy ownCloud's files into your doc root
cp -r owncloud /var/www/html/
4. Create an ownCloud configuration file
Use your preferred shell editor to create and modify a ownCloud configuration file.
- Cut and paste the following content into that file:
Alias /owncloud "/var/www/html/owncloud/" Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/html/owncloud SetEnv HTTP_HOME /var/www/html/owncloud
5. Create a symlink for owncloud.conf
ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
6. Enable Apache Modules
OwnCloud requires that mod_rewrite be enabled. Consider enabling mod_headers as well. mod_env, mod_dir, and mod_mime should already be enabled, but it's a good idea to verify.
a2enmod headers a2enmod env a2enmod dir a2enmod mime
- Restart Apache:
service apache2 restart
7. Make sure that the ownCloud installation files are web accessible
chown -R www-data:www-data /var/www/html/owncloud/
8. Use your browser to complete the installation
Navigate to yourdomain.com/owncloud and follow the instructions.
- Create a new admin user. It is recommended that you use an original password for the admin user.
- Leave the Data folder as the default directory. (/var/www/html/owncloud/data)
- Your database user should be root and use the password you created during MariaDB's installation.
- Use the default localhost setting.