• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install ownCloud 9.0 in CentOS 7

384

To Install ownCloud 9.0 on CentOS 7

OwnCloud is a free software to set up our private ‘ file-hosting’ cloud. It can be accessed through a web browsers or desktop client. Installation of ownCloud 9.0 on CentOS 7 is explained in this article.


To install Owncloud

Install php and webserver

[root@linuxhelp1 ~]# yum install httpd php php-mysql php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd php-curl php-pear -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.webwerks.com
 * extras: centos.webwerks.com
 * updates: centos.webwerks.com
Resolving Dependencies
-->  Running transaction check
--->  Package httpd.x86_64 0:2.4.6-40.el7.centos.1 will be installed
--->  Package php.x86_64 0:5.4.16-36.1.el7_2.1 will be installed
-->  Processing Dependency: php-cli(x86-64) = 5.4.16-36.1.el7_2.1 for package: php-5.4.16-36.1.el7_2.1.x86_64
--->  Package php-common.x86_64 0:5.4.16-36.1.el7_2.1 will be installed
.
.
.
Installed:
  httpd.x86_64 0:2.4.6-40.el7.centos.1                       php.x86_64 0:5.4.16-36.1.el7_2.1                       
  php-common.x86_64 0:5.4.16-36.1.el7_2.1                    php-gd.x86_64 0:5.4.16-36.1.el7_2.1                    
  php-mbstring.x86_64 0:5.4.16-36.1.el7_2.1                  php-mysql.x86_64 0:5.4.16-36.1.el7_2.1                 
  php-pdo.x86_64 0:5.4.16-36.1.el7_2.1                       php-pear.noarch 1:1.9.4-21.el7                         
  php-xml.x86_64 0:5.4.16-36.1.el7_2.1                      

Dependency Installed:
  php-cli.x86_64 0:5.4.16-36.1.el7_2.1                   php-process.x86_64 0:5.4.16-36.1.el7_2.1                  

Complete!

Install mariadb

[root@linuxhelp1 ~]# yum install mariadb mariadb-server -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.webwerks.com
 * extras: centos.webwerks.com
 * updates: centos.webwerks.com
Resolving Dependencies
-->  Running transaction check
--->  Package mariadb.x86_64 1:5.5.47-1.el7_2 will be installed
.
.
.
Installed:
  mariadb.x86_64 1:5.5.47-1.el7_2                       mariadb-server.x86_64 1:5.5.47-1.el7_2                      

Complete!

Start and enable http, mariadb service

[root@linuxhelp1 ~]# systemctl start httpd.service
[root@linuxhelp1 ~]# systemctl enable httpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@linuxhelp1 ~]# systemctl start mariadb.service
[root@linuxhelp1 ~]# systemctl enable mariadb.service
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

Set the Root password and other database parameters

[root@linuxhelp1 ~]# mysql_secure_installation
/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we' ll need the current
password for the root user.  If you' ve just installed MariaDB, and
you haven' t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
 ... Success!
Normally, root should only be allowed to connect from ' localhost' .  This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
 ... Success!
By default, MariaDB comes with a database named ' test'  that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
 ... Success!
Cleaning up...
All done!  If you' ve completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!

Create database and user for owncloud

[root@linuxhelp1 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 11
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.
MariaDB [(none)]>  create database owncloud 
Query OK, 1 row affected (0.02 sec)
MariaDB [(none)]>  grant all on owncloud.* to user1@localhost identified by ' linuxc'  
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>  flush privileges 
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>  exit 
Bye

Now install epel repository

[root@linuxhelp1 ~]# yum install epel-release -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.webwerks.com
 * extras: centos.webwerks.com
 * updates: centos.webwerks.com
Resolving Dependencies
-->  Running transaction check
--->  Package epel-release.noarch 0:7-6 will be installed
.
.
.
Installed:
  epel-release.noarch 0:7-6                                                                                         

Complete!

Install the repo for downloading own cloud

[root@linuxhelp1 ~]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo
--2016-07-11 16:52:40--  http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo
Resolving download.owncloud.org (download.owncloud.org)... 188.40.68.177, 148.251.209.106, 144.76.105.220, ...
Connecting to download.owncloud.org (download.owncloud.org)|188.40.68.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 265
Saving to: ‘ /etc/yum.repos.d/ce:stable.repo’ 

100%[==========================================================================> ] 265         --.-K/s   in 0s      

2016-07-11 16:52:40 (21.4 MB/s) - ‘ /etc/yum.repos.d/ce:stable.repo’  saved [265/265]

Install the owncloud, by running the following command.

[root@linuxhelp1 ~]# yum install owncloud -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.webwerks.com
 * epel: ftp.yzu.edu.tw
 * extras: centos.webwerks.com
 * updates: centos.webwerks.com
ce_stable                                                                                                       5/5
Resolving Dependencies
-->  Running transaction check
--->  Package owncloud.noarch 0:9.0.3-2.1 will be installed
-->  Processing Dependency: owncloud-deps > = 9.0.3 for package: owncloud-9.0.3-2.1.noarch
-->  Processing Dependency: owncloud-files > = 9.0.3 for package: owncloud-9.0.3-2.1.noarch
.
.
.
Installed:
  owncloud.noarch 0:9.0.3-2.1                                                                                       

Dependency Installed:
  owncloud-deps-php5.noarch 0:9.0.3-2.1  owncloud-files.noarch 0:9.0.3-3.1  php-ldap.x86_64 0:5.4.16-36.1.el7_2.1

Complete!

Allow the web server port in the firewall

[root@linuxhelp1 ~]# firewall-cmd --permanent --zone=public --add-service=http
success
[root@linuxhelp1 ~]# firewall-cmd --permanent --zone=public --add-service=https
success
[root@linuxhelp1 ~]# firewall-cmd --reload
Success

Set the permissions on owncloud folder.

[root@linuxhelp1 ~]# chown -R apache.apache /var/www/html/owncloud/

Set the semanage for the own cloud directory.

[root@linuxhelp1 ~]# semanage fcontext -a -t httpd_sys_rw_content_t ' /var/www/html/owncloud/data' 
[root@linuxhelp1 ~]# semanage fcontext -a -t httpd_sys_rw_content_t ' /var/www/html/owncloud/config' 
[root@linuxhelp1 ~]# semanage fcontext -a -t httpd_sys_rw_content_t ' /var/www/html/owncloud/apps' 
 [root@linuxhelp1 ~]# restorecon ' /var/www/html/owncloud/data' 
[root@linuxhelp1 ~]# restorecon ' /var/www/html/owncloud/config' 
[root@linuxhelp1 ~]# restorecon ' /var/www/html/owncloud/apps' 


To Start own cloud installation in web browser

Open the web browser and navigate to http://IP_address/owncloud/">http://< ip_address> /owncloud/
Installation-ownCloud9.0-private-file-hosting-cloud-accessed-through-web-browsers-or-desktop-client-CentOS-7-Open-web-browser
Enter the details for creating the admin account. Click on ‘ Finish setup’ .
Installation-ownCloud9.0-private-file-hosting-cloud-accessed-through-web-browsers-or-desktop-client-CentOS-7-admin-account

Get ownCloud Clients and apps to sync your data.
Installation-ownCloud9.0-private-file-hosting-cloud-accessed-through-web-browsers-or-desktop-client-CentOS-7-sync-data

Home Page of Our ownCloud appears as follows.
Installation-ownCloud9.0-private-file-hosting-cloud-accessed-through-web-browsers-or-desktop-client-CentOS-7-Home-Page

Tags:
elijah
Author: 

Comments ( 1 )

cero
Thanks
Add a comment

Frequently asked questions ( 5 )

Q

What version of php is used here?

A

Here the default version is installed

"Default version php 5.3.4"

Q

Why does ownCloud use csync rather than rsync?

A

To ensure old files get removed but new files added, and updated files overwritten, you need a N-to-N sync solution. ownCloud uses csync for syncing, which also deals with conflicts in a smart way.

Q

While accessing the web interface I am getting 403 Forbidden error?

A

Make sure the Apache document root is owned by apache user and group and also 775 permission.

Q

Where database connected to be made in Owncloud?

A

The database can be stored under this path
"/var/www/html/owncloud"

Q

Why do you use HTTP and not another protocol in Owncloud?

A

Because HTTP goes through every firewall and proxy in Owncloud.

Related Tutorials in How to Install ownCloud 9.0 in CentOS 7

Related Tutorials in How to Install ownCloud 9.0 in CentOS 7

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to Install ownCloud 9.0 in CentOS 7

Related Forums in How to Install ownCloud 9.0 in CentOS 7

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018

Related News in How to Install ownCloud 9.0 in CentOS 7

Related News in How to Install ownCloud 9.0 in CentOS 7

Cisco and Google collaborate on new hybrid-cloud approach named Goodzilla
Cisco and Google collaborate on new hybrid-cloud approach named Goodzilla
Oct 26, 2017
Scammers Use Legitimate Cloud Services to Trick Victims
Scammers Use Legitimate Cloud Services to Trick Victims
May 15, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Lucas ?
Various options in Top command

Am using Top command only to view the load average, what are the various options in Top command..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.