Installing owncloud in Debian is easy stuff. And hardly take a few minutes to install.I have posted some how to on installing owncloud in CentOS and Ubuntu as well.
The details of Debian server
IP Address: 10.0.0.24
OS info: Debian GNU/Linux 7 n l
arch: x86_64
To install owncloud in Debian Wheezy 7, follow the given below steps
Step 1 : Login into server and become super user (root)
sudo su - OR su -
Step 2: Run the below given command to add repo of owncloud and its repo key.
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list
wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key apt-key add - < Release.key
apt-get update
Step 3: Install owncloud,mysql-server,apache2 and php5
apt-get install owncloud mysql-server apache2 php5
Note: while installation you will get screen of setting mysql root password. Hence set the mysql root password
Step 4: Now enable apache rewrite module.
a2enmod rewrite
Step 5: Login into mysql with user root and create database for owncloud. Here we are also creating owncloud user in mysql and only giving privileges to owncloud database.
Database Name: owncloud
MySQL User name: ownclouduser
Password of MySQL user(ownclouduser): GivePassword
# mysql -u root -p (give mysql root password) mysql> create database owncloud; mysql> create user 'ownclouduser'@'localhost' IDENTIFIED BY 'GivePassword'; mysql> GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost'; mysql> flush privileges; mysql> exit;
Step 6: Now open the webbrowser and type http://localhost/owncloud OR if you have installed in remote server then http://ip-address/owncloud.
Here I have installed the owncloud in remote server hence I am using debian server ip address 10.0.0.24.
Find the ip address of your server by using ifconfig
command.
Set owncloud admin username and password. Here I am using username as admin,you can also use any other name and that username will be admin of owncloud web console.
After setting admin username and password, click on Advanced button and select MySQL
Step 8: Now give all information of mysql database which you have set. And then click on "Finish Setup"
After clicking Finish Setup,you will be redirected to Admin panel of owncloud. This is last step of owncloud server.
Enjoy uploading,downloading and sharing your stuffs.
Leave a Reply