How to install OwnCloud 7 on Ubuntu 14.04

Posted On // Leave a Comment

ownCloud is a free and open-source web application (Dropbox like solution) for data synchronization that: provides universal access to your files via the web, your computer, or your mobile devices — wherever you are.


In this tutorial I will describe how to install ownCloud on Ubuntu 14.04.


To be able to run OwnCloud 7 you need to have Apache web server, MySQL database server and PHP installed on your Ubuntu 14.04.


First of all log in to your server as root and make sure that all packages are up to date:



apt-get update
apt-get upgrade

If you already did not install the Apache web server on your Ubuntu 14.04 it is the right time to do that now:



apt-get install apache2

Next, install PHP on your server:



apt-get install php5 php5-mysql

and once the installation is done add the following PHP modules required by OwnCloud:



apt-get install php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick

Restart apache for the changes to take effecrs:



/etc/init.d/apache2 restart

Install MySQL database server:



apt-get install mysql-server

and once the installation is done run the ‘mysql_secure_installation‘ command and use the following settings:



Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

Now everything is ready so we can begin with the installation. First we will need to download the latest stable release of OwnCloud on your server (at the time version 7.0.0).



wget http://ift.tt/XbrIg7

Extract the downloaded archive to the Apache’s document root directory. You can do that with:



tar -xvf owncloud-7.0.0.tar.bz2 -C /var/www/html/

Since the user running the web server have to be the ownner of the OwnCloud files, we will need to change the ownership too:



chown www-data:www-data -R /var/www/html/owncloud/

We will need to create a MySQL user and database for OwnCloudGive and also give a full privileges to the MySQL user on the database.



mysql -u root -p
Enter password:

And once you are inside the MySQL console type the following commands:



mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'SOMEPASSWORD';
mysql> CREATE DATABASE ownclouddb;
mysql> GRANT ALL ON ownclouddb.* TO 'ownclouduser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

Don't forget to change "SOMEPASSWORD" with your own password.


Once this is done you can open http://ift.tt/1s6bIql in your browser where you will be presented with the configuration screen of ownClod and be able to create a new administrator user and enter the information of the MySQL database we created earlier in this tutorial.



That's it. Once you click on "Finish setup" you will be presented with the ownCloud welcome screen.



http://ift.tt/1dvHQ0Z

0 comments:

Post a Comment