{"id":113,"date":"2014-03-13T12:00:10","date_gmt":"2014-03-13T17:00:10","guid":{"rendered":"http:\/\/etapien.com\/guides\/?p=113"},"modified":"2020-08-24T14:22:36","modified_gmt":"2020-08-24T19:22:36","slug":"owncloud-auto-install-script-on-debian-7","status":"publish","type":"post","link":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/","title":{"rendered":"ownCloud Auto Install Script on Debian 7"},"content":{"rendered":"<p>Here is an easy way to install ownCloud on Debian 7 with a script, but first, for those who don&#8217;t know what ownCloud is:<\/p>\n<blockquote><p>ownCloud is a free and open-source web application for data synchronization, file sharing, and cloud storage. ownCloud is written in the PHP and JavaScript scripting languages. For change management, it employs SabreDAV, an open-source WebDAV server. &#8230;<a href=\"http:\/\/www.google.com\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=0CCsQkA4oADAA&amp;url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FOwncloud&amp;ei=QN8hU7RkisjIAaetgbgG&amp;usg=AFQjCNGz1ava7j_e48yW5iICWKsGpQcRkw&amp;sig2=WFzLMeWzW2_8eOf4p5ec7Q&amp;bvm=bv.62922401,d.aWc\" data-dobid=\"wd-src\">http:\/\/en.wikipedia.org\/wiki\/Owncloud<\/a><\/p><\/blockquote>\n<p>See it as your &#8220;own&#8221; private Dropbox, but much more secure as you&#8217;d be hosting it yourself.<\/p>\n<p>&nbsp;<\/p>\n<p>Alright, let&#8217;s get down to it:<\/p>\n<p>Make sure you&#8217;re running Debian 7<\/p>\n<p><strong>Keep in mind that this is a new installation so it will remove any existing MySQL, Nginx and Apache installation including any configuration you may have for these services.<\/strong><\/p>\n<p>Log into your Linux server\/VPS via ssh and run the following command in one single line:<\/p>\n<blockquote><p>wget http:\/\/etapien.com\/scripts\/owncloud\/owncloud.sh &amp;&amp; chmod +x owncloud.sh &amp;&amp; sh owncloud.sh<\/p><\/blockquote>\n<p>This script will download the script, make it executable and execute it.<\/p>\n<p>There are a few instructions to follow on screen and you should be set, you now have a working installation of ownCloud.<\/p>\n<p><em><strong>Where to install this? Well, you can easily use a low ram VPS, I recommend Owned-Networks VPS plans for this, check them out at<\/strong> <a href=\"http:\/\/www.owned-networks.net\" target=\"_blank\" rel=\"noopener noreferrer\">www.owned-networks.net<\/a><\/em><\/p>\n<p>Now, If you&#8217;re curious to know what the script contains, here it is:<\/p>\n<blockquote><p>#!\/bin\/bash<\/p>\n<p>clear<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;*****************************************************&#8221;<br \/>\necho &#8220;WELCOME TO THE OWNCLOUD INSTALLATION SCRIPT&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; This script will set up a ownCloud storage&#8221;<br \/>\necho &#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 server on your target server&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8220;*****************************************************&#8221;<\/p>\n<p>clear<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;****************************************************************&#8221;<br \/>\necho &#8220;Please enter the domain you would like to use to access ownCloud&#8221;<br \/>\necho &#8220;****************************************************************&#8221;<br \/>\nread d<\/p>\n<p>clear<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;*******************************************************************************************&#8221;<br \/>\necho &#8220;THIS SCRIPT WILL REMOVE MYSQL, APACHE AND NGINX ALONG WITH THIER CONFIG FILES AND DATABASES&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; If you do not want to continue with this script&#8221;<br \/>\necho &#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 you have 15 seconds to enter Ctrl + C to Cancel&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8220;*************************************************************&#8221;<\/p>\n<p>sleep 15<\/p>\n<p>clear<\/p>\n<p>apt-get update -y<br \/>\napt-get upgrade -y<br \/>\napt-get &#8211;purge remove apache2* php* mysql* -y<\/p>\n<p>cat &lt;&lt;EOF &gt;&gt; \/etc\/apt\/sources.list<br \/>\ndeb http:\/\/packages.dotdeb.org wheezy all<br \/>\ndeb-src http:\/\/packages.dotdeb.org wheezy all<br \/>\nEOF<\/p>\n<p>wget http:\/\/www.dotdeb.org\/dotdeb.gpg<br \/>\napt-key add dotdeb.gpg<\/p>\n<p>apt-get update<\/p>\n<p>apt-get install nginx php5 php5-fpm php5-gd php5-mysql -y<\/p>\n<p>clear<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;***************************************************************&#8221;<br \/>\necho &#8220;YOU WILL NOW BE ASKED TO ENTER A PASSWORD FOR YOUR MYSQL SERVER&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; Please enter a password when prompted, this needs to be remembered&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8220;********************************************************************&#8221;<\/p>\n<p>sleep 5<\/p>\n<p>clear<\/p>\n<p>apt-get install mysql-server -y<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;******************************************************************&#8221;<br \/>\necho &#8220;YOU WILL NOW BE ASKED TO ENTER A PASSWORD FOR YOUR MYSQL DATABASE&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; Please enter a password you entered above to create a database for ownCloud&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8220;*****************************************************************************&#8221;<\/p>\n<p>mysql -u root -p -e &#8220;create database ownCloud&#8221;;<\/p>\n<p>rm \/etc\/nginx\/sites-available\/default<\/p>\n<p>wget http:\/\/etapien.com\/scripts\/owncloud\/default.txt<\/p>\n<p>cp default.txt \/etc\/nginx\/sites-available\/default<\/p>\n<p>cat &lt;&lt;EOF &gt;&gt; \/etc\/nginx\/sites-available\/default<br \/>\nserver_name $d;<\/p>\n<p>}<br \/>\nEOF<\/p>\n<p>clear<\/p>\n<p>mkdir -p \/var\/www\/owncloud<\/p>\n<p>wget http:\/\/download.owncloud.org\/community\/owncloud-6.0.1.tar.bz2<\/p>\n<p>apt-get install bzip2 -y<\/p>\n<p>tar xvjf owncloud-6.0.1.tar.bz2<\/p>\n<p>mv owncloud\/* \/var\/www\/owncloud<\/p>\n<p>mkdir \/var\/www\/owncloud\/data<\/p>\n<p>chown -R www-data:www-data \/var\/www\/owncloud\/<\/p>\n<p>service nginx restart<\/p>\n<p>clear<\/p>\n<p>echo &#8221; &#8221;<br \/>\necho &#8220;*****************************************************&#8221;<br \/>\necho &#8220;THE INSTALLATION HAS FINSIHED&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; Please browse to $d or your IP in your browser to access ownCloud&#8221;<br \/>\necho &#8221; The Database User is root and the password is the same as the one you entered above&#8221;<br \/>\necho &#8221; the Database is ownCloud and the host is localhost&#8221;<br \/>\necho &#8221; Once you have entered those details along with your new username and password ownCloud should work correctly.&#8221;<br \/>\necho &#8221; &#8221;<br \/>\necho &#8220;**************************************************************************************************************&#8221;<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>Enjoy!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is an easy way to install ownCloud on Debian 7 with a script, but first, for those who don&#8217;t know what ownCloud is: ownCloud is a free and open-source web application for data synchronization, file sharing, and cloud storage. ownCloud is written in the PHP and JavaScript scripting languages. For change management, it employs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos<\/title>\n<meta name=\"description\" content=\"Here is an ownCloud auto install script for Debian 7.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos\" \/>\n<meta property=\"og:description\" content=\"Here is an ownCloud auto install script for Debian 7.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Howtos\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-13T17:00:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-24T19:22:36+00:00\" \/>\n<meta name=\"author\" content=\"Etapien\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etapien\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/\",\"url\":\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/\",\"name\":\"ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos\",\"isPartOf\":{\"@id\":\"https:\/\/etapien.com\/guides\/#website\"},\"datePublished\":\"2014-03-13T17:00:10+00:00\",\"dateModified\":\"2020-08-24T19:22:36+00:00\",\"author\":{\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\"},\"description\":\"Here is an ownCloud auto install script for Debian 7.\",\"breadcrumb\":{\"@id\":\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/etapien.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ownCloud Auto Install Script on Debian 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/etapien.com\/guides\/#website\",\"url\":\"https:\/\/etapien.com\/guides\/\",\"name\":\"Tech Howtos\",\"description\":\"Tech related useful howtos\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/etapien.com\/guides\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\",\"name\":\"Etapien\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"caption\":\"Etapien\"},\"url\":\"https:\/\/etapien.com\/guides\/author\/Etapien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos","description":"Here is an ownCloud auto install script for Debian 7.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/","og_locale":"en_US","og_type":"article","og_title":"ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos","og_description":"Here is an ownCloud auto install script for Debian 7.","og_url":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/","og_site_name":"Tech Howtos","article_published_time":"2014-03-13T17:00:10+00:00","article_modified_time":"2020-08-24T19:22:36+00:00","author":"Etapien","twitter_misc":{"Written by":"Etapien","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/","url":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/","name":"ownCloud Auto Install Script on Debian 7 - Etapien Tech Howtos","isPartOf":{"@id":"https:\/\/etapien.com\/guides\/#website"},"datePublished":"2014-03-13T17:00:10+00:00","dateModified":"2020-08-24T19:22:36+00:00","author":{"@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424"},"description":"Here is an ownCloud auto install script for Debian 7.","breadcrumb":{"@id":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/etapien.com\/guides\/owncloud-auto-install-script-on-debian-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/etapien.com\/guides\/"},{"@type":"ListItem","position":2,"name":"ownCloud Auto Install Script on Debian 7"}]},{"@type":"WebSite","@id":"https:\/\/etapien.com\/guides\/#website","url":"https:\/\/etapien.com\/guides\/","name":"Tech Howtos","description":"Tech related useful howtos","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/etapien.com\/guides\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424","name":"Etapien","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","caption":"Etapien"},"url":"https:\/\/etapien.com\/guides\/author\/Etapien\/"}]}},"_links":{"self":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/113"}],"collection":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":8,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/113\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}