How to install OwnCloud (Free alternative to Dropbox) on CentOS 6


Hi Folks! In this videotutorial I will show you how to install OwnCloud. OwnCloud is an open source alternative to the popular service Dropbox, but on your own server! For more information about OwnCloud and it’s features, visit

Prerequisites for this tutorial:
– Your own server (VPS or a physical machine)
– PuTTY (in case you use Windows like me)

Step 1. Install a basic CentOS 6.4 server. You can download CentOS for free on
Step 2. After the installation, run a full update by running ‘yum update -y’.
Step 3. Install the database server. I personally love MySQL. Run ‘yum install mysql mysql-server’.
Step 4. Start MySQL: ‘/etc/init.d/mysqld start’
Step 5. Run mysql_secure_installation to set a root password for your new database server.
Step 6. Install the apache webserver by running ‘yum install httpd’
Step 7. Edit the host file (/etc/hosts) and add your IP address and hostname
Step 8. Start the webserver by running ‘/etc/init.d/httpd start’.
Step 9. Install some necessary PHP packages ‘yum install php php-gd php-xml php-mysql php-intl php-curl curl php-mbstring’.
Step 10. Restart the webserver ‘/etc/init.d/httpd restart’
Step 11. Run mysql -u root -p and hit Enter
Step 12. Enter the root password you’ve created at step 5.
Step 13. Create a new database by typing ‘CREATE DATABASE owncloud;’ (Don’t forget the semicolon)
Step 14. Grant all privileges to a new user on that specific database by running ‘GRANT ALL ON owncloud.* TO owncloud@localhost IDENTIFIED BY ‘yourpasswordhere';’
Step 15. Exit the MySQL CLI by typing quit;
Step 16. Download the latest version of owncloud and extract it to /var/www/html/
Step 17. Create a new folder called data in /var/www/html/owncloud/
Step 18. Change the owner to apache:apache on apps/ config/ and data/
Step 19. Edit the apache config file and add the following in /etc/httpd/conf/httpd/conf:

<Directory “/var/www/html/owncloud/data/”>
AllowOverride All

Step 20. Go to http://youripaddress/owncloud and install your new owncloud environment.

Have fun!

Comments are closed.