{"id":469,"date":"2016-03-03T10:11:25","date_gmt":"2016-03-03T10:11:25","guid":{"rendered":"http:\/\/kb.veeble.org\/?p=469"},"modified":"2025-03-25T12:01:49","modified_gmt":"2025-03-25T06:31:49","slug":"how-to-install-owncloud-on-centos","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-install-owncloud-on-centos\/","title":{"rendered":"How to Install ownCloud on CentOS"},"content":{"rendered":"\n<p>Hi all,<\/p>\n\n\n\n<p>Storing our data with a third-party server or storage place has been always a concern. We used to save our personal as well as company or organization-related data with storage space providers like Dropbox, Google Drive, Outlook drive, etc. They provide security for our data but sometimes we need to go for their premium service if the storage space we need is large. What if we can use our own server, dedicated, or a VPS to store these data? We will get the UI much similar to any other service provider as well.<\/p>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-owncloud\">What is ownCloud?<\/h3>\n\n\n<p>ownCloud is a web application that can store and serve content from a centralized location or server, it is much like using Dropbox or Google drive to store and retrieve data. The difference is that <a href=\"https:\/\/en.wikipedia.org\/wiki\/OwnCloud\" target=\"_blank\" rel=\"noopener\">ownCloud<\/a> 7 allows us to host the serving software on our own machines, taking the trust issues out of putting your personal data on someone else&#8217;s server.<\/p>\n\n\n\n<p>How to Install ownCloud on CentOS?<\/p>\n\n\n\n<p>Installing ownCloud on the server is very easy, we can do it with the help of yum after having the required rpm&#8217;s installed on the server.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"recommended-setup-for-running-owncloud\"><strong><strong>Recommended Setup for Running ownCloud<\/strong><\/strong><\/h4>\n\n\n<p>For the best performance, stability, support, and full functionality we recommend:<\/p>\n\n\n\n<p>1. Red Hat Enterprise Linux 7<br>2. MySQL\/MariaDB<br>3. PHP 5.4 +<br>4. Apache 2.4<br>The server should have at least 512 MB RAM for the smooth run of ownCloud.<\/p>\n\n\n\n<p>You can check the versions of the above-mentioned packages on the server and install\/update them if the server does not meet the requirement. You can install MySQL, PHP, and Apache by following the below methods.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-mysql\"><strong><strong>Installing MySQL:<\/strong><\/strong><\/h4>\n\n\n<p><code># yum install mysql-server<\/code><br>Then run the below command to set it alive during restarts:<br><code>chkconfig --levels 235 mysqld on<\/code><br>Start the service:<br><code>\/etc\/init.d\/mysqld start<\/code><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-apache\"><strong><strong>Installing Apache:<\/strong><\/strong><\/h4>\n\n\n<p>Below is the command for the installation:<br><code>yum install httpd<\/code><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-php\"><strong><strong>Installing PHP:<\/strong><\/strong><\/h4>\n\n\n<p><code>yum -y install php<\/code><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-owncloud\"><strong><strong>Installing ownCloud:<\/strong><\/strong><\/h4>\n\n\n<p>We will first download the release key associated with the ownCloud software:<br><code>cd \/etc\/yum.repos.d\/<\/code><br>Add the repo to the system:<br><code>wget http:\/\/download.opensuse.org\/repositories\/isv:ownCloud:community\/CentOS_CentOS-6\/isv:ownCloud:community.repo<\/code><br>Then we need to add epel repository too:<br><code>rpm -ivh http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/code><br>Finally, update the package database and install ownCloud:<br><code>yum install owncloud<\/code><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"configure-mysql-for-own-cloud\"><strong><strong>Configure MySQL for own cloud:<\/strong><\/strong><\/h4>\n\n\n<p>We should configure MySQL for using the ownCloud, please follow the below steps for this:<\/p>\n\n\n\n<p><code>mysql_secure_installation<\/code><br>Output:<br><code>[root@veeble ~]# mysql_secure_installation<\/code><\/p>\n\n\n\n<p>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL<br>SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<\/p>\n\n\n\n<p>In order to log into MySQL to secure it, we&#8217;ll need the current<br>password for the root user. If you&#8217;ve just installed MySQL, and<br>you haven&#8217;t set the root password yet, the password will be blank,<br>so you should just press enter here.<\/p>\n\n\n\n<p>Enter current password for root (enter for none):<br>OK, successfully used the password, moving on&#8230;<\/p>\n\n\n\n<p>Setting the root password ensures that nobody can log into the MySQL<br>root user without the proper authorization.<\/p>\n\n\n\n<p>Set root password? [Y\/n] &lt;&#8211; ENTER<br>New password: &lt;&#8211; yourrootsqlpassword<br>Re-enter new password: &lt;&#8211; yourrootsqlpassword<br>Password updated successfully!<br>Reloading privilege tables..<br>&#8230; Success!<\/p>\n\n\n\n<p>By default, a MySQL installation has an anonymous user, allowing anyone<br>to log into MySQL without having to have a user account created for<br>them. This is intended only for testing, and to make the installation<br>go a bit smoother. You should remove them before moving into a<br>production environment.<\/p>\n\n\n\n<p>Remove anonymous users? [Y\/n] &lt;&#8211; ENTER<br>&#8230; Success!<\/p>\n\n\n\n<p>Normally, root should only be allowed to connect from &#8216;localhost&#8217;. This<br>ensures that someone cannot guess the root password from the network.<\/p>\n\n\n\n<p>Disallow root login remotely? [Y\/n] &lt;&#8211; ENTER<br>&#8230; Success!<\/p>\n\n\n\n<p>By default, MySQL comes with a database named &#8216;test&#8217; that anyone can<br>access. This is also intended only for testing and should be removed<br>before moving into a production environment.<\/p>\n\n\n\n<p>Remove the test database and access it. [Y\/n] &lt;&#8211; ENTER<br>&#8211; Dropping test database&#8230;<br>&#8230; Success!<br>&#8211; Removing privileges on test database&#8230;<br>&#8230; Success!<\/p>\n\n\n\n<p>Reloading the privilege tables will ensure that all changes made so far<br>will take effect immediately.<\/p>\n\n\n\n<p>Reload privilege tables now? [Y\/n] &lt;&#8211; ENTER<br>&#8230; Success!<\/p>\n\n\n\n<p>Cleaning up&#8230;<\/p>\n\n\n\n<p>All done! If you&#8217;ve completed all of the above steps, your MySQL<br>installation should now be secure.<\/p>\n\n\n\n<p>Thanks for using MySQL!<\/p>\n\n\n\n<p>Now go to the MySQL prompt and do the below steps:<br><code>mysql -u root -p<\/code><br>Enter the password and move to the next prompt:<br><code>CREATE DATABASE owncloud;<\/code><br>Grant access:<br><code>GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'database_password';<\/code><br>Exit from the MySQL:<br><code>exit<\/code><\/p>\n\n\n\n<p>That&#8217;s all, now you will be able to access the ownCloud console using the below URL:<\/p>\n\n\n\n<p><strong>http:\/\/your_IP\/owncloud<\/strong><\/p>\n\n\n\n<p>You can check the below screenshot to see what it would look like:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"http:\/\/kb.veeble.org\/wp-content\/uploads\/2016\/03\/own-e1457000122700.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"679\" src=\"http:\/\/kb.veeble.org\/wp-content\/uploads\/2016\/03\/own-e1457000122700-1024x679.png\" alt=\"own\" class=\"wp-image-470\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/own-e1457000122700-1024x679.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/own-e1457000122700-300x199.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/own-e1457000122700.png 1046w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Please replace drive.veeblehosting.com in the screenshot with your server IP, thank you!<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-c5b4465d wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Scale Your Business with Ease<\/h3><p class=\"uagb-cta__desc\">Easily upgrade your resources as your business grows. Our KVM VPS is built for scalability.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/kvm-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">View Pricing<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hi all, Storing our data with a third-party server or storage place has been always a concern. We used to save our personal as [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-469","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2016\/03\/How-to-Install-ownCloud-on-CentOS.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":1,"uagb_excerpt":"Hi all, Storing our data with a third-party server or storage place has been always a concern. We used to save our personal as [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":13,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":8298,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/469\/revisions\/8298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8254"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}