This tutorial will help you to install ownCloud 9 on Ubuntu, Debian and LinuxMint systems.
Step 1 – Install LAMP Server
To start setup with ownCloud, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system.Install PHP 5
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php5.6 php5.6-gd php5.6-curl php5.6-zip php5.6-dom php5.6-xml php5.6-simplexml
Install Apache2
$ apt-get install -y apache2 libapache2-mod-php5.6
Install MySQL
$ apt-get install -y mysql-server php5.6-mysql
Step 2 – Download ownCloud Source
After successfully configuring lamp server on your system, Let’s download latest ownCloud from its official website.$ cd /opt $ wget https://download.owncloud.org/community/owncloud-9.1.3.tar.bz2Now extract downloaded archive under website document root and setup appropriate permissions on files and directories.
$ cd /var/www/html $ sudo tar xjf /opt/owncloud-9.1.3.tar.bz2 $ sudo chown -R www-data:www-data owncloud $ sudo chmod -R 755 owncloud
Step 3 – Create MySQL Database and User
After extracting code, let’s create a MySQL database and user account for configuring ownCloud. Use following set of command to login to MySQL server and create database and user.$ mysql -u root -p Enter password: mysql> CREATE DATABASE owncloud; mysql> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY '_password_'; mysql> FLUSH PRIVILEGES; mysql> quit
Step 4 – Start ownCloud Web Installer
Now access ownCloud directory on web browser as below. Change localhost with your server ip address or fqdn.http://localhost/owncloud/Enter new admin credentials to create admin account and provide location of data folder.

Now slide your page down and input the database credentials and click on Finish Setup.

After completing setup you will get admin dashboard. Where you can create user, groups, assigned them permissions etc.

Comments
Post a Comment