install own cloud setup on centos 7 - zeeshan bhatti€¦ · installing: httpd x86_64...

33
Alternate Titles: “Install OWN Cloud SETUP on CENTOS 7” Author: Muhammad Zeeshan Bhatti [LPIC-1, VCP-DCV5, OCP (DBA), MCSA, SUSE CLA, RHCSA-EL7] (http://www.zeeshanbhatti.com/about) ([email protected]) INSTALL OWN CLOUD SETUP ON CENTOS 7 Install Apache httpd [root@owncloud ~]# yum -y install httpd Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/2): updates/7/x86_64/primary_db | 9.1 MB 00:00:22 (2/2): base/7/x86_64/primary_db | 5.3 MB 00:02:06 Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-40.el7.centos.4 will be installed --> Processing Dependency: httpd-tools = 2.4.6-40.el7.centos.4 for package: httpd-2.4.6- 40.el7.centos.4.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-40.el7.centos.4.x86_64 --> Running transaction check ---> Package httpd-tools.x86_64 0:2.4.6-40.el7.centos.4 will be installed ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================ ============================================================================ ======================================= Package Arch Version Repository Size ============================================================================ ============================================================================ =======================================

Upload: truongkhuong

Post on 12-Aug-2019

241 views

Category:

Documents


0 download

TRANSCRIPT

Alternate Titles: “Install OWN Cloud SETUP on CENTOS 7” Author: Muhammad Zeeshan Bhatti [LPIC-1, VCP-DCV5, OCP (DBA), MCSA, SUSE CLA, RHCSA-EL7] (http://www.zeeshanbhatti.com/about) ([email protected])

INSTALL OWN CLOUD SETUP ON CENTOS 7 Install Apache httpd [root@owncloud ~]# yum -y install httpd Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/2): updates/7/x86_64/primary_db | 9.1 MB 00:00:22 (2/2): base/7/x86_64/primary_db | 5.3 MB 00:02:06 Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-40.el7.centos.4 will be installed --> Processing Dependency: httpd-tools = 2.4.6-40.el7.centos.4 for package: httpd-2.4.6-40.el7.centos.4.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-40.el7.centos.4.x86_64 --> Running transaction check ---> Package httpd-tools.x86_64 0:2.4.6-40.el7.centos.4 will be installed ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size ===============================================================================================================================================================================================

Installing: httpd x86_64 2.4.6-40.el7.centos.4 updates 2.7 M Installing for dependencies: httpd-tools x86_64 2.4.6-40.el7.centos.4 updates 83 k mailcap noarch 2.1.41-2.el7 base 31 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package (+2 Dependent packages) Total download size: 2.8 M Installed size: 9.6 M Downloading packages: warning: /var/cache/yum/x86_64/7/base/packages/mailcap-2.1.41-2.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY ] 19 kB/s | 55 kB 00:02:26 ETA Public key for mailcap-2.1.41-2.el7.noarch.rpm is not installed (1/3): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:03 Public key for httpd-tools-2.4.6-40.el7.centos.4.x86_64.rpm is not installed 14% [========== ] 63 kB/s | 406 kB 00:00:38 ETA (2/3): httpd-tools-2.4.6-40.el7.centos.4.x86_64.rpm | 83 kB 00:00:07 (3/3): httpd-2.4.6-40.el7.centos.4.x86_64.rpm | 2.7 MB 00:00:13 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 206 kB/s | 2.8 MB 00:00:13 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-0.1406.el7.centos.2.3.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : mailcap-2.1.41-2.el7.noarch 1/3 Installing : httpd-tools-2.4.6-40.el7.centos.4.x86_64 2/3 Installing : httpd-2.4.6-40.el7.centos.4.x86_64 3/3

Verifying : httpd-tools-2.4.6-40.el7.centos.4.x86_64 1/3 Verifying : mailcap-2.1.41-2.el7.noarch 2/3 Verifying : httpd-2.4.6-40.el7.centos.4.x86_64 3/3 Installed: httpd.x86_64 0:2.4.6-40.el7.centos.4 Dependency Installed: httpd-tools.x86_64 0:2.4.6-40.el7.centos.4 mailcap.noarch 0:2.1.41-2.el7 Complete! [root@owncloud ~]# vi /etc/httpd/conf/httpd.conf ServerAdmin [email protected] ServerName www.owncloud.homeserver.local:80 Line 151# AllowOverride All Line 164# DirectoryIndex index.html index.cgi index.php End of Line# ServerTokens Prod KeepAlive On :wq! [root@owncloud ~]# systemctl start httpd [root@owncloud ~]# systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled) Active: active (running) since Tue 2016-10-25 11:53:38 GMT-5; 9s ago Docs: man:httpd(8) man:apachectl(8) Main PID: 15224 (httpd) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service ├─15224 /usr/sbin/httpd -DFOREGROUND ├─15225 /usr/sbin/httpd -DFOREGROUND ├─15226 /usr/sbin/httpd -DFOREGROUND ├─15227 /usr/sbin/httpd -DFOREGROUND ├─15228 /usr/sbin/httpd -DFOREGROUND └─15229 /usr/sbin/httpd -DFOREGROUND Oct 25 11:53:38 owncloud.homeserver.local systemd[1]: Starting The Apache HTTP Server... Oct 25 11:53:38 owncloud.homeserver.local systemd[1]: Started The Apache HTTP Server. [root@owncloud ~]# systemctl enable httpd ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'

[root@owncloud ~]# vi /var/www/html/index.html <html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> Test Page </div> </body> </html> :wq! Install and Configure httpd to use PHP scripts. [root@owncloud ~]# yum -y install php php-mbstring php-pear Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Processing Dependency: php-common(x86-64) = 5.4.16-36.3.el7_2 for package: php-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: php-cli(x86-64) = 5.4.16-36.3.el7_2 for package: php-5.4.16-36.3.el7_2.x86_64 ---> Package php-mbstring.x86_64 0:5.4.16-36.3.el7_2 will be installed ---> Package php-pear.noarch 1:1.9.4-21.el7 will be installed --> Processing Dependency: php-xml for package: 1:php-pear-1.9.4-21.el7.noarch --> Processing Dependency: php-posix for package: 1:php-pear-1.9.4-21.el7.noarch --> Running transaction check ---> Package php-cli.x86_64 0:5.4.16-36.3.el7_2 will be installed ---> Package php-common.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-36.3.el7_2.x86_64 ---> Package php-process.x86_64 0:5.4.16-36.3.el7_2 will be installed ---> Package php-xml.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.4.16-36.3.el7_2.x86_64

--> Running transaction check ---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: php x86_64 5.4.16-36.3.el7_2 updates 1.4 M php-mbstring x86_64 5.4.16-36.3.el7_2 updates 504 k php-pear noarch 1:1.9.4-21.el7 base 357 k Installing for dependencies: libxslt x86_64 1.1.28-5.el7 base 242 k libzip x86_64 0.10.1-8.el7 base 48 k php-cli x86_64 5.4.16-36.3.el7_2 updates 2.7 M php-common x86_64 5.4.16-36.3.el7_2 updates 563 k php-process x86_64 5.4.16-36.3.el7_2 updates 55 k php-xml x86_64 5.4.16-36.3.el7_2 updates 124 k Transaction Summary =============================================================================================================================================================================================== Install 3 Packages (+6 Dependent packages) Total download size: 5.9 M Installed size: 21 M Downloading packages: (1/9): php-common-5.4.16-36.3.el7_2.x86_64.rpm | 563 kB 00:00:07 (2/9): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:08

(3/9): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:08 (4/9): php-mbstring-5.4.16-36.3.el7_2.x86_64.rpm | 504 kB 00:00:05 (5/9): php-pear-1.9.4-21.el7.noarch.rpm | 357 kB 00:00:05 (6/9): php-xml-5.4.16-36.3.el7_2.x86_64.rpm | 124 kB 00:00:03 (7/9): php-5.4.16-36.3.el7_2.x86_64.rpm | 1.4 MB 00:00:16 (8/9): php-cli-5.4.16-36.3.el7_2.x86_64.rpm | 2.7 MB 00:00:18 (9/9): php-process-5.4.16-36.3.el7_2.x86_64.rpm | 55 kB 00:00:27 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 166 kB/s | 5.9 MB 00:00:36 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libxslt-1.1.28-5.el7.x86_64 1/9 Installing : libzip-0.10.1-8.el7.x86_64 2/9 Installing : php-common-5.4.16-36.3.el7_2.x86_64 3/9 Installing : php-cli-5.4.16-36.3.el7_2.x86_64 4/9 Installing : php-xml-5.4.16-36.3.el7_2.x86_64 5/9 Installing : php-process-5.4.16-36.3.el7_2.x86_64 6/9 Installing : 1:php-pear-1.9.4-21.el7.noarch 7/9 Installing : php-5.4.16-36.3.el7_2.x86_64 8/9 Installing : php-mbstring-5.4.16-36.3.el7_2.x86_64 9/9 Verifying : php-xml-5.4.16-36.3.el7_2.x86_64 1/9 Verifying : php-common-5.4.16-36.3.el7_2.x86_64 2/9 Verifying : php-5.4.16-36.3.el7_2.x86_64 3/9 Verifying : php-cli-5.4.16-36.3.el7_2.x86_64 4/9 Verifying : php-process-5.4.16-36.3.el7_2.x86_64 5/9

Verifying : php-mbstring-5.4.16-36.3.el7_2.x86_64 6/9 Verifying : libzip-0.10.1-8.el7.x86_64 7/9 Verifying : libxslt-1.1.28-5.el7.x86_64 8/9 Verifying : 1:php-pear-1.9.4-21.el7.noarch 9/9 Installed: php.x86_64 0:5.4.16-36.3.el7_2 php-mbstring.x86_64 0:5.4.16-36.3.el7_2 php-pear.noarch 1:1.9.4-21.el7 Dependency Installed: libxslt.x86_64 0:1.1.28-5.el7 libzip.x86_64 0:0.10.1-8.el7 php-cli.x86_64 0:5.4.16-36.3.el7_2 php-common.x86_64 0:5.4.16-36.3.el7_2 php-process.x86_64 0:5.4.16-36.3.el7_2 php-xml.x86_64 0:5.4.16-36.3.el7_2 Complete! [root@owncloud ~]# vi /etc/php.ini date.timezone = GMT-5 :wq! [root@owncloud ~]# systemctl restart httpd [root@owncloud ~]# vi /var/www/html/index.php <html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> <?php print Date("Y/m/d"); ?> </div> </body> </html> :wq! [root@owncloud ~]# systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Tue 2016-10-25 12:01:22 GMT-5; 10s ago Docs: man:httpd(8) man:apachectl(8) Process: 15310 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Main PID: 15315 (httpd)

Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service ├─15315 /usr/sbin/httpd -DFOREGROUND ├─15316 /usr/sbin/httpd -DFOREGROUND ├─15317 /usr/sbin/httpd -DFOREGROUND ├─15318 /usr/sbin/httpd -DFOREGROUND ├─15319 /usr/sbin/httpd -DFOREGROUND └─15320 /usr/sbin/httpd -DFOREGROUND Oct 25 12:01:22 owncloud.homeserver.local systemd[1]: Starting The Apache HTTP Server... Oct 25 12:01:22 owncloud.homeserver.local systemd[1]: Started The Apache HTTP Server. Install MariaDB 5.5 Install MariaDB 5.5 which is CentOS 7 default version to configure Database server. [root@owncloud ~]# yum -y install mariadb-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Resolving Dependencies --> Running transaction check ---> Package mariadb-server.x86_64 1:5.5.50-1.el7_2 will be installed --> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.50-1.el7_2 for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: mariadb(x86-64) = 1:5.5.50-1.el7_2 for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: perl-DBI for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: perl(DBI) for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Processing Dependency: libaio.so.1()(64bit) for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64 --> Running transaction check ---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed ---> Package mariadb.x86_64 1:5.5.50-1.el7_2 will be installed ---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be updated ---> Package mariadb-libs.x86_64 1:5.5.50-1.el7_2 will be an update ---> Package perl-DBD-MySQL.x86_64 0:4.023-5.el7 will be installed ---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed --> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64 --> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64 --> Running transaction check

---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed --> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch --> Running transaction check ---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed --> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch --> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch ---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed --> Running transaction check ---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: mariadb-server x86_64 1:5.5.50-1.el7_2 updates 11 M Installing for dependencies: libaio x86_64 0.3.109-13.el7 base 24 k mariadb x86_64 1:5.5.50-1.el7_2 updates 8.9 M perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBD-MySQL x86_64 4.023-5.el7 base 140 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k

Updating for dependencies: mariadb-libs x86_64 1:5.5.50-1.el7_2 updates 755 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package (+9 Dependent packages) Upgrade ( 1 Dependent package) Total download size: 22 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/11): libaio-0.3.109-13.el7.x86_64.rpm | 24 kB 00:00:04 (2/11): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:02 (3/11): perl-DBD-MySQL-4.023-5.el7.x86_64.rpm | 140 kB 00:00:04 (4/11): mariadb-libs-5.5.50-1.el7_2.x86_64.rpm | 755 kB 00:00:16 (5/11): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:08 (6/11): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:02 (7/11): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:05 (8/11): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:02 (9/11): mariadb-5.5.50-1.el7_2.x86_64.rpm | 8.9 MB 00:00:24 (10/11): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:27 (11/11): mariadb-server-5.5.50-1.el7_2.x86_64.rpm | 11 MB 00:03:12 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 116 kB/s | 22 MB 00:03:12 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 1:mariadb-libs-5.5.50-1.el7_2.x86_64 1/12 Installing : 1:mariadb-5.5.50-1.el7_2.x86_64 2/12 Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 3/12

Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 4/12 Installing : perl-IO-Compress-2.061-2.el7.noarch 5/12 Installing : perl-Net-Daemon-0.48-5.el7.noarch 6/12 Installing : perl-PlRPC-0.2020-14.el7.noarch 7/12 Installing : perl-DBI-1.627-4.el7.x86_64 8/12 Installing : perl-DBD-MySQL-4.023-5.el7.x86_64 9/12 Installing : libaio-0.3.109-13.el7.x86_64 10/12 Installing : 1:mariadb-server-5.5.50-1.el7_2.x86_64 11/12 Cleanup : 1:mariadb-libs-5.5.35-3.el7.x86_64 12/12 Verifying : libaio-0.3.109-13.el7.x86_64 1/12 Verifying : perl-Net-Daemon-0.48-5.el7.noarch 2/12 Verifying : 1:mariadb-server-5.5.50-1.el7_2.x86_64 3/12 Verifying : 1:mariadb-libs-5.5.50-1.el7_2.x86_64 4/12 Verifying : perl-PlRPC-0.2020-14.el7.noarch 5/12 Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 6/12 Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 7/12 Verifying : perl-DBI-1.627-4.el7.x86_64 8/12 Verifying : 1:mariadb-5.5.50-1.el7_2.x86_64 9/12 Verifying : perl-DBD-MySQL-4.023-5.el7.x86_64 10/12 Verifying : perl-IO-Compress-2.061-2.el7.noarch 11/12 Verifying : 1:mariadb-libs-5.5.35-3.el7.x86_64 12/12 Installed: mariadb-server.x86_64 1:5.5.50-1.el7_2 Dependency Installed: libaio.x86_64 0:0.3.109-13.el7 mariadb.x86_64 1:5.5.50-1.el7_2 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7

perl-DBD-MySQL.x86_64 0:4.023-5.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 Dependency Updated: mariadb-libs.x86_64 1:5.5.50-1.el7_2 Complete! [root@owncloud ~]# vi /etc/my.cnf [mysqld] character-set-server=utf8 :wq! [root@owncloud ~]# systemctl start mariadb [root@owncloud ~]# systemctl status mariadb mariadb.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled) Active: active (running) since Tue 2016-10-25 12:12:32 GMT-5; 5s ago Process: 15467 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS) Process: 15387 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS) Main PID: 15466 (mysqld_safe) CGroup: /system.slice/mariadb.service ├─15466 /bin/sh /usr/bin/mysqld_safe --basedir=/usr └─15636 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mar... Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: The latest information about MariaDB is available at http://mariadb.org/. Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: You can find additional information about the MySQL part at: Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: http://dev.mysql.com Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: Support MariaDB development by buying support/new features from MariaDB Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: Corporation Ab. You can contact us about this at [email protected]. Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: Alternatively consider joining our community based development effort: Oct 25 12:12:30 owncloud.homeserver.local mariadb-prepare-db-dir[15387]: http://mariadb.com/kb/en/contributing-to-the-mariadb-project/ Oct 25 12:12:30 owncloud.homeserver.local mysqld_safe[15466]: 161025 12:12:30 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'. Oct 25 12:12:30 owncloud.homeserver.local mysqld_safe[15466]: 161025 12:12:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql Oct 25 12:12:32 owncloud.homeserver.local systemd[1]: Started MariaDB database server.

[root@owncloud ~]# systemctl enable mariadb ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service' [root@owncloud ~]# 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): ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Enter current password for root (enter for none): ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Enter current password for root (enter for none): ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 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! [root@owncloud ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 13 Server version: 5.5.50-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> select user,host,password from mysql.user; +------+-----------+-------------------------------------------+ | user | host | password | +------+-----------+-------------------------------------------+ | root | localhost | *84BB5DF4823DA319BBF86C99624479A198E6EEE9 | | root | 127.0.0.1 | *84BB5DF4823DA319BBF86C99624479A198E6EEE9 | | root | ::1 | *84BB5DF4823DA319BBF86C99624479A198E6EEE9 | +------+-----------+-------------------------------------------+ 3 rows in set (0.00 sec) MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema |

| mysql | | performance_schema | +--------------------+ 3 rows in set (0.00 sec) MariaDB [(none)]> exit Bye [root@owncloud ~]# systemctl stop firewalld [root@owncloud ~]# systemctl disable firewalld INSTALL YUM REPOSITORY PLUGINS [root@owncloud ~]# yum -y install yum-plugin-priorities Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Resolving Dependencies --> Running transaction check ---> Package yum-plugin-priorities.noarch 0:1.1.31-34.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: yum-plugin-priorities noarch 1.1.31-34.el7 base 25 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package Total download size: 25 k Installed size: 28 k Downloading packages:

yum-plugin-priorities-1.1.31-34.el7.noarch.rpm | 25 kB 00:00:25 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : yum-plugin-priorities-1.1.31-34.el7.noarch 1/1 Verifying : yum-plugin-priorities-1.1.31-34.el7.noarch 1/1 Installed: yum-plugin-priorities.noarch 0:1.1.31-34.el7 Complete! [root@owncloud ~]# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo [root@owncloud ~]# yum -y install epel-release Loaded plugins: fastestmirror, priorities http://centosmirror.go4hosting.in/7.2.1511/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: centosmirror.go4hosting.in; Name or service not known" Trying other mirror. base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): base/7/x86_64/primary_db | 5.3 MB 00:00:11 (2/4): base/7/x86_64/group_gz | 155 kB 00:00:17 (3/4): extras/7/x86_64/primary_db | 166 kB 00:00:17 (4/4): updates/7/x86_64/primary_db | 9.1 MB 00:00:30 Determining fastest mirrors * base: mirror.nbrc.ac.in * extras: mirror.nbrc.ac.in * updates: mirror.nbrc.ac.in Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-6 will be installed --> Finished Dependency Resolution Dependencies Resolved

=============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: epel-release noarch 7-6 extras 14 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package Total download size: 14 k Installed size: 24 k Downloading packages: epel-release-7-6.noarch.rpm | 14 kB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-6.noarch 1/1 Verifying : epel-release-7-6.noarch 1/1 Installed: epel-release.noarch 0:7-6 Complete! [root@owncloud ~]# yum -y install centos-release-scl-rh centos-release-scl Loaded plugins: fastestmirror, priorities epel/x86_64/metalink | 5.4 kB 00:00:00 epel | 4.3 kB 00:00:00 (1/3): epel/x86_64/group_gz | 170 kB 00:00:03 (2/3): epel/x86_64/primary_db | 4.3 MB 00:00:10 (3/3): epel/x86_64/updateinfo | 669 kB 00:00:11

Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: ftp.jaist.ac.jp * extras: mirror.nbrc.ac.in * updates: mirror.nbrc.ac.in 125 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package centos-release-scl.noarch 0:2-2.el7.centos will be installed ---> Package centos-release-scl-rh.noarch 0:2-2.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: centos-release-scl noarch 2-2.el7.centos extras 12 k centos-release-scl-rh noarch 2-2.el7.centos extras 12 k Transaction Summary =============================================================================================================================================================================================== Install 2 Packages Total download size: 24 k Installed size: 39 k Downloading packages: (1/2): centos-release-scl-2-2.el7.centos.noarch.rpm | 12 kB 00:00:01 (2/2): centos-release-scl-rh-2-2.el7.centos.noarch.rpm | 12 kB 00:00:02 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 9.6 kB/s | 24 kB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction

Installing : centos-release-scl-rh-2-2.el7.centos.noarch 1/2 Installing : centos-release-scl-2-2.el7.centos.noarch 2/2 Verifying : centos-release-scl-rh-2-2.el7.centos.noarch 1/2 Verifying : centos-release-scl-2-2.el7.centos.noarch 2/2 Installed: centos-release-scl.noarch 0:2-2.el7.centos centos-release-scl-rh.noarch 0:2-2.el7.centos Complete! [root@owncloud ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl.repo [root@owncloud ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo [root@owncloud ~]# yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm Loaded plugins: fastestmirror, priorities remi-release-7.rpm | 8.0 kB 00:00:00 Examining /var/tmp/yum-root-qc6wBF/remi-release-7.rpm: remi-release-7.2-1.el7.remi.noarch Marking /var/tmp/yum-root-qc6wBF/remi-release-7.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package remi-release.noarch 0:7.2-1.el7.remi will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: remi-release noarch 7.2-1.el7.remi /remi-release-7 6.3 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package

Total size: 6.3 k Installed size: 6.3 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : remi-release-7.2-1.el7.remi.noarch 1/1 Verifying : remi-release-7.2-1.el7.remi.noarch 1/1 Installed: remi-release.noarch 0:7.2-1.el7.remi Complete! [root@owncloud ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/remi-safe.repo Install ownCloud. [root@owncloud ~]# yum --enablerepo=remi-safe install [Package] Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirror.nbrc.ac.in * remi-safe: mirrors.neterra.net * updates: mirror.nbrc.ac.in 139 packages excluded due to repository priority protections No package [Package] available. Error: Nothing to do [root@owncloud ~]# yum --enablerepo=epel -y install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirror.nbrc.ac.in * remi-safe: mirror5.layerjet.com * updates: mirror.nbrc.ac.in 139 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package php-pear-MDB2-Driver-mysqli.noarch 0:1.5.0-0.8.b4.el7 will be installed --> Processing Dependency: php-pear(MDB2) >= 2.5.0b4 for package: php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch

--> Processing Dependency: php-mysqli for package: php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch ---> Package php-pear-Net-Curl.noarch 0:1.2.5-10.el7 will be installed --> Running transaction check ---> Package php-mysql.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Processing Dependency: php-pdo(x86-64) = 5.4.16-36.3.el7_2 for package: php-mysql-5.4.16-36.3.el7_2.x86_64 ---> Package php-pear-MDB2.noarch 0:2.5.0-0.9.b5.el7 will be installed --> Running transaction check ---> Package php-pdo.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: php-pear-MDB2-Driver-mysqli noarch 1.5.0-0.8.b4.el7 epel 43 k php-pear-Net-Curl noarch 1.2.5-10.el7 epel 13 k Installing for dependencies: php-mysql x86_64 5.4.16-36.3.el7_2 updates 100 k php-pdo x86_64 5.4.16-36.3.el7_2 updates 97 k php-pear-MDB2 noarch 2.5.0-0.9.b5.el7 epel 125 k Transaction Summary =============================================================================================================================================================================================== Install 2 Packages (+3 Dependent packages) Total download size: 379 k Installed size: 1.5 M Downloading packages: warning: /var/cache/yum/x86_64/7/epel/packages/php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY 35 kB/s | 43 kB 00:00:09 ETA Public key for php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch.rpm is not installed (1/5): php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch.rpm | 43 kB 00:00:02

(2/5): php-pear-MDB2-2.5.0-0.9.b5.el7.noarch.rpm | 125 kB 00:00:04 (3/5): php-pear-Net-Curl-1.2.5-10.el7.noarch.rpm | 13 kB 00:00:05 (4/5): php-mysql-5.4.16-36.3.el7_2.x86_64.rpm | 100 kB 00:00:07 (5/5): php-pdo-5.4.16-36.3.el7_2.x86_64.rpm | 97 kB 00:00:43 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 8.6 kB/s | 379 kB 00:00:43 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <[email protected]>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-6.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php-pear-MDB2-2.5.0-0.9.b5.el7.noarch 1/5 Installing : php-pdo-5.4.16-36.3.el7_2.x86_64 2/5 Installing : php-mysql-5.4.16-36.3.el7_2.x86_64 3/5 Installing : php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch 4/5 Installing : php-pear-Net-Curl-1.2.5-10.el7.noarch 5/5 Verifying : php-pdo-5.4.16-36.3.el7_2.x86_64 1/5 Verifying : php-pear-Net-Curl-1.2.5-10.el7.noarch 2/5 Verifying : php-pear-MDB2-2.5.0-0.9.b5.el7.noarch 3/5 Verifying : php-mysql-5.4.16-36.3.el7_2.x86_64 4/5 Verifying : php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch 5/5 Installed: php-pear-MDB2-Driver-mysqli.noarch 0:1.5.0-0.8.b4.el7 php-pear-Net-Curl.noarch 0:1.2.5-10.el7 Dependency Installed: php-mysql.x86_64 0:5.4.16-36.3.el7_2 php-pdo.x86_64 0:5.4.16-36.3.el7_2 php-pear-MDB2.noarch 0:2.5.0-0.9.b5.el7

Complete! [root@owncloud tmp]# cd / [root@owncloud /]# mkdir download [root@owncloud /]# cd download/ [root@owncloud download]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d -bash: wget: command not found [root@owncloud download]# yum install wget Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: epel.scopesky.iq * extras: mirror.nbrc.ac.in * remi-safe: mirrors.neterra.net * updates: mirror.nbrc.ac.in 139 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-10.el7_0.1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: wget x86_64 1.14-10.el7_0.1 base 545 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package Total download size: 545 k Installed size: 2.0 M Is this ok [y/d/N]: y Downloading packages:

wget-1.14-10.el7_0.1.x86_64.rpm | 545 kB 00:00:04 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wget-1.14-10.el7_0.1.x86_64 1/1 Verifying : wget-1.14-10.el7_0.1.x86_64 1/1 Installed: wget.x86_64 0:1.14-10.el7_0.1 Complete! [root@owncloud download]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d --2016-10-25 12:28:22-- http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo Resolving download.owncloud.org (download.owncloud.org)... 144.76.105.220, 136.243.124.46, 148.251.209.106, ... Connecting to download.owncloud.org (download.owncloud.org)|144.76.105.220|: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-10-25 12:28:25 (50.2 MB/s) - ‘/etc/yum.repos.d/ce:stable.repo’ saved [265/265] [root@owncloud download]# yum -y install owncloud Loaded plugins: fastestmirror, priorities ce_stable | 1.2 kB 00:00:00 ce_stable/primary | 2.4 kB 00:00:00 Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: epel.scopesky.iq * extras: mirror.nbrc.ac.in * remi-safe: remi.mirrors.cu.be * updates: mirror.nbrc.ac.in ce_stable 5/5 139 packages excluded due to repository priority protections

Resolving Dependencies --> Running transaction check ---> Package owncloud.noarch 0:9.1.1-1.2 will be installed --> Processing Dependency: owncloud-files >= 9.1.1 for package: owncloud-9.1.1-1.2.noarch --> Processing Dependency: owncloud-deps >= 9.1.1 for package: owncloud-9.1.1-1.2.noarch --> Running transaction check ---> Package owncloud-deps-php5.noarch 0:9.1.1-1.2 will be installed --> Processing Dependency: php-gd for package: owncloud-deps-php5-9.1.1-1.2.noarch --> Processing Dependency: policycoreutils-python for package: owncloud-deps-php5-9.1.1-1.2.noarch --> Processing Dependency: php-ldap for package: owncloud-deps-php5-9.1.1-1.2.noarch ---> Package owncloud-files.noarch 0:9.1.1-1.2 will be installed --> Running transaction check ---> Package php-gd.x86_64 0:5.4.16-36.3.el7_2 will be installed --> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: php-gd-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libpng15.so.15()(64bit) for package: php-gd-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.4.16-36.3.el7_2.x86_64 --> Processing Dependency: libX11.so.6()(64bit) for package: php-gd-5.4.16-36.3.el7_2.x86_64 ---> Package php-ldap.x86_64 0:5.4.16-36.3.el7_2 will be installed ---> Package policycoreutils-python.x86_64 0:2.2.5-20.el7 will be installed --> Processing Dependency: policycoreutils = 2.2.5-20.el7 for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libsemanage-python >= 2.1.10-1 for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: python-IPy for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libcgroup for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: checkpolicy for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.2.5-20.el7.x86_64 --> Running transaction check ---> Package audit-libs-python.x86_64 0:2.4.1-5.el7 will be installed --> Processing Dependency: audit-libs = 2.4.1-5.el7 for package: audit-libs-python-2.4.1-5.el7.x86_64 ---> Package checkpolicy.x86_64 0:2.1.12-6.el7 will be installed ---> Package libX11.x86_64 0:1.6.3-2.el7 will be installed --> Processing Dependency: libX11-common >= 1.6.3-2.el7 for package: libX11-1.6.3-2.el7.x86_64 --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.3-2.el7.x86_64 ---> Package libXpm.x86_64 0:3.5.11-3.el7 will be installed

---> Package libcgroup.x86_64 0:0.41-8.el7 will be installed ---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed ---> Package libsemanage-python.x86_64 0:2.1.10-18.el7 will be installed --> Processing Dependency: libsemanage = 2.1.10-18.el7 for package: libsemanage-python-2.1.10-18.el7.x86_64 ---> Package policycoreutils.x86_64 0:2.2.5-11.el7 will be updated ---> Package policycoreutils.x86_64 0:2.2.5-20.el7 will be an update ---> Package python-IPy.noarch 0:0.75-6.el7 will be installed ---> Package setools-libs.x86_64 0:3.3.7-46.el7 will be installed ---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed --> Running transaction check ---> Package audit-libs.x86_64 0:2.3.3-4.el7 will be updated --> Processing Dependency: audit-libs = 2.3.3-4.el7 for package: audit-2.3.3-4.el7.x86_64 ---> Package audit-libs.x86_64 0:2.4.1-5.el7 will be an update ---> Package libX11-common.noarch 0:1.6.3-2.el7 will be installed ---> Package libsemanage.x86_64 0:2.1.10-16.el7 will be updated ---> Package libsemanage.x86_64 0:2.1.10-18.el7 will be an update ---> Package libxcb.x86_64 0:1.11-4.el7 will be installed --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.11-4.el7.x86_64 --> Running transaction check ---> Package audit.x86_64 0:2.3.3-4.el7 will be updated ---> Package audit.x86_64 0:2.4.1-5.el7 will be an update ---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: owncloud noarch 9.1.1-1.2 ce_stable 4.6 k Installing for dependencies: audit-libs-python x86_64 2.4.1-5.el7 base 69 k checkpolicy x86_64 2.1.12-6.el7 base 247 k libX11 x86_64 1.6.3-2.el7 base 605 k libX11-common noarch 1.6.3-2.el7 base 162 k libXau x86_64 1.0.8-2.1.el7 base 29 k

libXpm x86_64 3.5.11-3.el7 base 54 k libcgroup x86_64 0.41-8.el7 base 64 k libpng x86_64 2:1.5.13-7.el7_2 updates 213 k libsemanage-python x86_64 2.1.10-18.el7 base 94 k libxcb x86_64 1.11-4.el7 base 189 k owncloud-deps-php5 noarch 9.1.1-1.2 ce_stable 7.8 k owncloud-files noarch 9.1.1-1.2 ce_stable 27 M php-gd x86_64 5.4.16-36.3.el7_2 updates 126 k php-ldap x86_64 5.4.16-36.3.el7_2 updates 51 k policycoreutils-python x86_64 2.2.5-20.el7 base 435 k python-IPy noarch 0.75-6.el7 base 32 k setools-libs x86_64 3.3.7-46.el7 base 485 k t1lib x86_64 5.1.2-14.el7 base 166 k Updating for dependencies: audit x86_64 2.4.1-5.el7 base 234 k audit-libs x86_64 2.4.1-5.el7 base 80 k libsemanage x86_64 2.1.10-18.el7 base 123 k policycoreutils x86_64 2.2.5-20.el7 base 803 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package (+18 Dependent packages) Upgrade ( 4 Dependent packages) Total download size: 31 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/23): audit-libs-2.4.1-5.el7.x86_64.rpm | 80 kB 00:00:02 (2/23): libX11-1.6.3-2.el7.x86_64.rpm | 605 kB 00:00:02

(3/23): libX11-common-1.6.3-2.el7.noarch.rpm | 162 kB 00:00:00 (4/23): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:01 (5/23): libXpm-3.5.11-3.el7.x86_64.rpm | 54 kB 00:00:01 (6/23): libcgroup-0.41-8.el7.x86_64.rpm | 64 kB 00:00:02 (7/23): libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00:02 (8/23): audit-2.4.1-5.el7.x86_64.rpm | 234 kB 00:00:07 (9/23): libsemanage-2.1.10-18.el7.x86_64.rpm | 123 kB 00:00:02 (10/23): checkpolicy-2.1.12-6.el7.x86_64.rpm | 247 kB 00:00:09 (11/23): libxcb-1.11-4.el7.x86_64.rpm | 189 kB 00:00:01 warning: /var/cache/yum/x86_64/7/ce_stable/packages/owncloud-9.1.1-1.2.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 479bc94b: NOKEY Public key for owncloud-9.1.1-1.2.noarch.rpm is not installed (12/23): owncloud-9.1.1-1.2.noarch.rpm | 4.6 kB 00:00:00 (13/23): owncloud-deps-php5-9.1.1-1.2.noarch.rpm | 7.8 kB 00:00:00 (14/23): libsemanage-python-2.1.10-18.el7.x86_64.rpm | 94 kB 00:00:02 (15/23): policycoreutils-2.2.5-20.el7.x86_64.rpm | 803 kB 00:00:02 (16/23): php-gd-5.4.16-36.3.el7_2.x86_64.rpm | 126 kB 00:00:03 (17/23): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:01 (18/23): policycoreutils-python-2.2.5-20.el7.x86_64.rpm | 435 kB 00:00:05 (19/23): setools-libs-3.3.7-46.el7.x86_64.rpm | 485 kB 00:00:06 (20/23): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:03 (21/23): audit-libs-python-2.4.1-5.el7.x86_64.rpm | 69 kB 00:00:25 (22/23): php-ldap-5.4.16-36.3.el7_2.x86_64.rpm | 51 kB 00:00:28 (23/23): owncloud-files-9.1.1-1.2.noarch.rpm | 27 MB 00:15:22 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 34 kB/s | 31 MB 00:15:31

Retrieving key from http://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key Importing GPG key 0x479BC94B: Userid : "ownCloud build service <obsrun@localhost>" Fingerprint: dda2 c105 c4b7 3a66 49ad 2bbd 47ae 7f72 479b c94b From : http://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : audit-libs-2.4.1-5.el7.x86_64 1/27 Updating : libsemanage-2.1.10-18.el7.x86_64 2/27 Installing : libsemanage-python-2.1.10-18.el7.x86_64 3/27 Updating : policycoreutils-2.2.5-20.el7.x86_64 4/27 Installing : audit-libs-python-2.4.1-5.el7.x86_64 5/27 Installing : checkpolicy-2.1.12-6.el7.x86_64 6/27 Installing : libXau-1.0.8-2.1.el7.x86_64 7/27 Installing : libxcb-1.11-4.el7.x86_64 8/27 Installing : libcgroup-0.41-8.el7.x86_64 9/27 Installing : libX11-common-1.6.3-2.el7.noarch 10/27 Installing : libX11-1.6.3-2.el7.x86_64 11/27 Installing : t1lib-5.1.2-14.el7.x86_64 12/27 Installing : libXpm-3.5.11-3.el7.x86_64 13/27 Installing : python-IPy-0.75-6.el7.noarch 14/27 Installing : setools-libs-3.3.7-46.el7.x86_64 15/27 Installing : policycoreutils-python-2.2.5-20.el7.x86_64 16/27 Installing : php-ldap-5.4.16-36.3.el7_2.x86_64 17/27 Installing : 2:libpng-1.5.13-7.el7_2.x86_64 18/27

Installing : php-gd-5.4.16-36.3.el7_2.x86_64 19/27 owncloud pre-install: First install starting Installing : owncloud-deps-php5-9.1.1-1.2.noarch 20/27 Redirecting to /bin/systemctl status httpd.service owncloud post-install: apache: Reloading Redirecting to /bin/systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Tue 2016-10-25 12:05:15 GMT-5; 39min ago Docs: man:httpd(8) man:apachectl(8) Main PID: 15333 (httpd) Status: "Total requests: 2; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service ├─15333 /usr/sbin/httpd -DFOREGROUND ├─15334 /usr/sbin/httpd -DFOREGROUND ├─15335 /usr/sbin/httpd -DFOREGROUND ├─15336 /usr/sbin/httpd -DFOREGROUND ├─15337 /usr/sbin/httpd -DFOREGROUND ├─15338 /usr/sbin/httpd -DFOREGROUND └─15341 /usr/sbin/httpd -DFOREGROUND Oct 25 12:05:15 owncloud.homeserver.local systemd[1]: Starting The Apache HTTP Server... Oct 25 12:05:15 owncloud.homeserver.local systemd[1]: Started The Apache HTTP Server. Redirecting to /bin/systemctl reload httpd.service Asserting file permission during first install chown: cannot access ‘/var/www/html/owncloud/config’: No such file or directory chown: cannot access ‘/var/www/html/owncloud/data’: No such file or directory chown: cannot access ‘/var/www/html/owncloud/apps’: No such file or directory Installing : owncloud-files-9.1.1-1.2.noarch 21/27 Installing : owncloud-9.1.1-1.2.noarch 22/27 Updating : audit-2.4.1-5.el7.x86_64 23/27 Cleanup : policycoreutils-2.2.5-11.el7.x86_64 24/27 Cleanup : libsemanage-2.1.10-16.el7.x86_64 25/27 Cleanup : audit-2.3.3-4.el7.x86_64 26/27 Cleanup : audit-libs-2.3.3-4.el7.x86_64 27/27 Verifying : owncloud-files-9.1.1-1.2.noarch 1/27 Verifying : php-gd-5.4.16-36.3.el7_2.x86_64 2/27

Verifying : libsemanage-python-2.1.10-18.el7.x86_64 3/27 Verifying : 2:libpng-1.5.13-7.el7_2.x86_64 4/27 Verifying : php-ldap-5.4.16-36.3.el7_2.x86_64 5/27 Verifying : setools-libs-3.3.7-46.el7.x86_64 6/27 Verifying : libsemanage-2.1.10-18.el7.x86_64 7/27 Verifying : libX11-1.6.3-2.el7.x86_64 8/27 Verifying : python-IPy-0.75-6.el7.noarch 9/27 Verifying : libX11-common-1.6.3-2.el7.noarch 10/27 Verifying : libcgroup-0.41-8.el7.x86_64 11/27 Verifying : t1lib-5.1.2-14.el7.x86_64 12/27 Verifying : libXpm-3.5.11-3.el7.x86_64 13/27 Verifying : audit-libs-python-2.4.1-5.el7.x86_64 14/27 Verifying : audit-libs-2.4.1-5.el7.x86_64 15/27 Verifying : libXau-1.0.8-2.1.el7.x86_64 16/27 Verifying : owncloud-deps-php5-9.1.1-1.2.noarch 17/27 Verifying : checkpolicy-2.1.12-6.el7.x86_64 18/27 Verifying : policycoreutils-2.2.5-20.el7.x86_64 19/27 Verifying : owncloud-9.1.1-1.2.noarch 20/27 Verifying : audit-2.4.1-5.el7.x86_64 21/27 Verifying : policycoreutils-python-2.2.5-20.el7.x86_64 22/27 Verifying : libxcb-1.11-4.el7.x86_64 23/27 Verifying : audit-libs-2.3.3-4.el7.x86_64 24/27 Verifying : audit-2.3.3-4.el7.x86_64 25/27 Verifying : libsemanage-2.1.10-16.el7.x86_64 26/27 Verifying : policycoreutils-2.2.5-11.el7.x86_64 27/27

Installed: owncloud.noarch 0:9.1.1-1.2 Dependency Installed: audit-libs-python.x86_64 0:2.4.1-5.el7 checkpolicy.x86_64 0:2.1.12-6.el7 libX11.x86_64 0:1.6.3-2.el7 libX11-common.noarch 0:1.6.3-2.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.11-3.el7 libcgroup.x86_64 0:0.41-8.el7 libpng.x86_64 2:1.5.13-7.el7_2 libsemanage-python.x86_64 0:2.1.10-18.el7 libxcb.x86_64 0:1.11-4.el7 owncloud-deps-php5.noarch 0:9.1.1-1.2 owncloud-files.noarch 0:9.1.1-1.2 php-gd.x86_64 0:5.4.16-36.3.el7_2 php-ldap.x86_64 0:5.4.16-36.3.el7_2 policycoreutils-python.x86_64 0:2.2.5-20.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.7-46.el7 t1lib.x86_64 0:5.1.2-14.el7 Dependency Updated: audit.x86_64 0:2.4.1-5.el7 audit-libs.x86_64 0:2.4.1-5.el7 libsemanage.x86_64 0:2.1.10-18.el7 policycoreutils.x86_64 0:2.2.5-20.el7 Complete! [root@owncloud download]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) [root@owncloud download]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 15 Server version: 5.5.50-MariaDB MariaDB Server Copyright (c) 2000, 2016, 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.00 sec) MariaDB [(none)]> grant all privileges on owncloud.* to owncloud@'localhost' identified by 'redhat'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye

http://192.168.8.102/owncloud User Name = owncloud Password = redhat