> ## Content Index
> Fetch the complete content index at: https://comtechies.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How To Set Up  Owncloud Storage Server On Amazon Ec2
- URL: https://comtechies.com/how-to-set-up-owncloud-storage-server-on-amazon-ec2/
- Published: 2013-04-22T11:02:00.000Z
- Updated: 2025-08-15T16:16:42.000Z
- Author: Michael Hayes
- Tags: Amazon AWS, #Migrated-1755084814468, #wp, #wp-post, #Import 2025-08-13 11:34

Like dropbox , box , Skydrive etc, you can set up your own cloud storage using an open source tool called OwnCloud. Using OwnCloud you can upload images, audio files, video files and you can sync it with various devices. It is pretty easy to install and manage. You can also create users defining a particular storage limit. Here am going to explain how to install and configure on the cloud on amazon EC2 servers.

Installing Owncloud On EC2 Ubuntu Instance:  
Step1: Launch an Ubuntu instance on amazon ec2\. If you are new to EC2 ,then you can check out the following link for creating an Ubuntu instance on amazon ec2\. [How to launch an ubuntu instance on amazon ec2](https://comtechies.com/how-to-launch-an-ubuntu-instance-on-amazon-ec2/)  
Step 2: Connect the instance using putty. [How to connect ubuntu instance using putty](https://comtechies.com/connect-an-amazon-ec2-ubuntu-linux-instances-using-putty/)  
Step 3: Change the user mode to root using the following command.It allows you to install all the packages with root permission.

sudo su

Step 4: Update the server using the following command

apt-get update

Step 5: Install and configure LAMP server using the following command.

apt-get install lamp-server^

Step 6: Execute the following commands.

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu\_12.04/ /' >> /etc/apt/sources.list.d/owncloud.list

Step 7:Update the packages using **apt-get update** command

Step 8:Install owncloud using the following command.

apt-get install owncloud

Step 9: Execute the following commands to change the permissions for owncloud.

chown -R www-data:www-data /var/www/owncloud/config  
chown -R www-data:www-data /var/www/owncloud/apps  
chown -R www-data:www-data /var/www/owncloud/data

Step 10: Go to sites-enabled folder and edit the 000-default file. Under directory options change “Allowoverride none” to “Allowoverride All”. Use nano or vi editor to edit the 000-default file and save the file.

cd /etc/apache2/sites-enabled/  
nano 000-default

[![Capture](https://i0.wp.com/4.bp.blogspot.com/-EXDcrtUTxU4/UXUPVSLUWYI/AAAAAAAAA_8/gqb_COxNMX4/s400/Capture.PNG?resize=400%2C236 "How To Set Up Owncloud Storage Server On Amazon Ec2 2")](https://i0.wp.com/4.bp.blogspot.com/-EXDcrtUTxU4/UXUPVSLUWYI/AAAAAAAAA%5F8/gqb%5FCOxNMX4/s1600/Capture.PNG?ref=comtechies.com)

Step 11:Execute the following commands and restart the server.

a2enmod headers  
a2enmod rewrite  
service apache2 restart

Step 12: Now copy the public DNS of your instance and paste it in the browser followed by /owncloud and load the webpage.

eg:ec2-34-224-523-247.compute-1.amazonaws.com/owncloud

Step 13: You will see an admin page to enter the username and password. Enter a new username and password and click create an account. It will take you to the owncloud dashboard. There you can manage the groups, users, and the admin files.

[![1](https://i0.wp.com/3.bp.blogspot.com/-LVFWPSQqePo/UXURRN6h4fI/AAAAAAAABAE/g4xXOHoM0Co/s640/1.PNG?resize=640%2C230 "How To Set Up Owncloud Storage Server On Amazon Ec2 3")](https://i0.wp.com/3.bp.blogspot.com/-LVFWPSQqePo/UXURRN6h4fI/AAAAAAAABAE/g4xXOHoM0Co/s1600/1.PNG?ref=comtechies.com)

Installing Owncloud On Windows Instance:  
Step 1: Launch a windows instance  
Step 2: connect the instance using remote desktop.  
Step 3: Download and install Wamp server  
Step 4: Download the owncloud zip package from the owncloud website. [*Download it here*](http://owncloud.org/install/?ref=comtechies.com)  
Step 5: Extract the file to www folder of wamp and rename the folder to owncloud.  
Step 6: Configure owncloud by running it on localhost using the following URL

http://localhost/owncloud

Step 7: You can access owncloud from anywhere using the public DNS of your windows instance. Make sure that you have added HTTP to the security group for your instance .

(share the post and leave a comment if you get an error while installing)