First create a virtual host, and go to that directory.
Install dependencies:
sudo apt-get install libapache2-mod-php5 php5-gd php5-json php5-mysql php5-curl php5-intl php5-mcrypt php5-imagick
Download and extract owncloud package (Find latest version here:
wget https://download.owncloud.org/community/owncloud-9.1.3.tar.bz2 tar xf owncloud-9.1.3.tar.bz2 && rm owncloud-9.1.3.tar.bz2 cd owncloud mv * ../ mv .* ../
Now create a new database, a new user for that database and grant privileges for that user on that database. This can be done manually on the mysql command line or via phpmyadmin.
Go to the publicly accessible url and input these settings for a wizard install of owncloud.
If you want an ssl-only access to owncloud, first setup certificates on the server, and after verifying that the https:// url works fine, enter the following at the start of .htaccess file in the root of public web directory:
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://cloud.yoursite.com/$1 [R,L]
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.