Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-19, 01:55:11

Author Topic: Owncloud Install Transaction Check Error  (Read 7694 times)

0 Members and 1 Guest are viewing this topic.

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Owncloud Install Transaction Check Error
« on: 2015-08-13, 05:33:13 »
Hello All.

I'm attempting to install Owncloud (https://owncloud.org/) on my Dedicated server but am running into some conflicts with the transaction check part of the install. I'm not sure how to proceed.

It's a CentOS release 6.7, x64.

I've tried two different methods of installing:

FIRST - using mratwork-epel repo:
It runs good, then gets to the Transaction Test and fails with the following:
Code: [Select]
Transaction Check Error:
  file /etc/php.ini from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/lib64/php/modules/curl.so from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/lib64/php/modules/fileinfo.so from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/lib64/php/modules/json.so from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/lib64/php/modules/phar.so from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/lib64/php/modules/zip.so from install of php-common-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-common-5.3.29-1.ius.el6.x86_64
  file /usr/bin/phar.phar from install of php-cli-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-cli-5.3.29-1.ius.el6.x86_64
  file /usr/bin/php from install of php-cli-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-cli-5.3.29-1.ius.el6.x86_64
  file /usr/bin/php-cgi from install of php-cli-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-cli-5.3.29-1.ius.el6.x86_64
  file /usr/share/man/man1/php.1.gz from install of php-cli-5.3.3-46.el6_6.x86_64 conflicts with file from package php53u-cli-5.3.29-1.ius.el6.x86_64

I'm not sure how to proceed. Looks like the installer is trying to use the default php-common-5.3.3-46.el6_6 when I have the php53u-common-5.3.29-1.ius.el6.x86_64 package installed from the mratwork-epel repo.

Next I tried installing from the official repo:

SECOND - isv:ownCloud:community.repo
I setup the repo:
Code: [Select]
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_6/isv:ownCloud:community.repo
yum install owncloud
After running the command to install, it picked up the mratwork-epel package, so I added an exclude to there and ran it again. Now it grabs it from the official package but dies during the Resolving Dependencies step:
Code: [Select]
Error: php56u conflicts with php53u-5.3.29-1.ius.el6.x86_64
Error: php56u-common conflicts with php53u-common-5.3.29-1.ius.el6.x86_64
Error: php56u-cli conflicts with php53u-cli-5.3.29-1.ius.el6.x86_64
Error: php56u-xml conflicts with php53u-xml-5.3.29-1.ius.el6.x86_64

Similar error looks like.

Any advice?

Thanks so much.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Owncloud Install Transaction Check Error
« Reply #1 on: 2015-08-13, 08:23:58 »
It's because OwnCloud try to install their own php and web server and may conflict with Kloxo-MR.

Try install OwnCloud first (and save their web server configs) and then install Kloxo-MR.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Owncloud Install Transaction Check Error
« Reply #2 on: 2015-09-09, 05:51:34 »
EDIT: I am by no means a master at Kloxo, or servers for that matter. There might be better ways to do this, or I might have done something wrong. I'm just writing out here what worked for me. If there is a better, or more logical, way of doing something please let me know.

I finally had some time to reply to this thread with an outline of what I did to get ownCloud installed alongside Kloxo.

I didn't want to start my server over, as suggested and install ownCloud first - then install Kloxo. So I opted for the manual install. I'll outline the steps I took here, to get it working.

I wanted to install ownCloud alongside Kloxo (read: not under a user) and have it run from an unused port on the same domain the panel is on. You could very easily just install and run this from a user account or a subdomain created within the panel.

First up check dependencies:
  • PHP module ctype
  • PHP module dom
  • PHP module GD
  • PHP module iconv
  • PHP module JSON
  • PHP module libxml
  • PHP module mb multibyte
  • PHP module SimpleXML
  • PHP module zip
  • PHP module zlib
  • PHP module mysql (you could use a different database, but mysql is recommended and what I'll be covering here)
Recommended:
  • PHP module curl (highly recommended, some functionality, e.g. http user authentication, depends on this)
  • PHP module fileinfo (highly recommended, enhances file analysis performance)
  • PHP module bz2 (recommended, required for extraction of apps)
  • PHP module intl (increases language translation performance)
  • PHP module mcrypt (increases file encryption performance)
  • PHP module openssl (required for accessing HTTPS resources)
Required for specific apps:
  • PHP module ldap (for ldap integration)
  • smbclient (for SMB storage)
  • PHP module ftp (for FTP storage)
  • PHP module exif (for image rotation in pictures app)
For preview generation (optional):
  • PHP module imagick
  • avconv or ffmpeg
  • OpenOffice or libreOffice

You can check which php modules you have installed via command line (or checking the output of php_info page):
Code: [Select]
[root@dedicated tmp]# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
...
...
etc

If a module you need isn't installed, you can attempt to install it via package manager (I am assuming CentOS here):

Code: [Select]
[root@dedicated tmp]# yum install php53u-bz2
Obviously replace php53u with your php version from Kloxo. After you've installed all modules, restart php:

Code: [Select]
[root@dedicated ssl]# sh /script/restart-web
Then check php again with php -m.

Depending which php version you run will depend on which version of ownCloud you can run... ownCloud 8+ requires PHP 5.4+. So if you check your Kloxo settings under Admin > Web - Mail - Database > Webserver Config (or just enter Webserver Config into the search) you can see which PHP version you are running under "Php Branch". Everything under version 8 requires PHP 5.3.8+.

If you are running PHP 5.4+ then you can get the latest version of ownCloud, if you aren't get version 7.0.9:
Code: [Select]
[root@dedicated ~]# cd /tmp
[root@dedicated tmp]# wget https://download.owncloud.org/community/owncloud-7.0.9.tar.bz2
--2015-09-08 23:36:26--  https://download.owncloud.org/community/owncloud-7.0.9.tar.bz2
Resolving download.owncloud.org... 144.76.105.220, 209.126.100.233
Connecting to download.owncloud.org|144.76.105.220|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28635307 (27M) [application/x-bzip]
Saving to: “owncloud-7.0.9.tar.bz2”

100%[=======================================================================================================>] 28,635,307  8.14M/s   in 3.4s

2015-09-08 23:36:30 (8.14 MB/s) - “owncloud-7.0.9.tar.bz2” saved [28635307/28635307]

[root@dedicated tmp]#
If you are downloading the latest version because your PHP can run it, change the wget URL to https://download.owncloud.org/community/owncloud-8.1.1.tar.bz2 and then change the extract command below.

Once downloaded, extract it:
Code: [Select]
[root@dedicated tmp]# tar -xjf owncloud-7.0.9.tar.bz2
Next we want to move it to the correct location (that it will be served from). As I said I want it to run beside Kloxo on a different port, and not under a user, so I want to move it to the default folder that Kloxo is in (so it is organized and in a logical place on the server). If you are going to run it under a user/domain you've setup in the panel, move the extracted folder to that location instead:

Code: [Select]
[root@dedicated tmp]# mv owncloud /home/kloxo/httpd
Next, chown the files to the user that will be executing them (the php user, or account owner) and fix the directory and file permissions on the newly extracted and moved files:

Code: [Select]
[root@dedicated tmp]# cd /home/kloxo/httpd
[root@dedicated httpd]# chown -R apache:apache owncloud
[root@dedicated httpd]# find owncloud -type d -exec chmod 750 {} \;
[root@dedicated httpd]# find owncloud -type f -exec chmod 640 {} \;

Next we need to create a new webserver configuration. I'm using Apache, so I create a new .conf file. Again, because I am running it alongside Kloxo I'm going to do this in the default folder for webserver .conf files. If you are installing under a user, this step will probably already be completed.

Code: [Select]
[root@dedicated httpd]# vi /etc/httpd/conf.d/owncloud.conf
Paste the following into the above file:
Code: [Select]
Listen 9111
<VirtualHost *:9111>
        ServerName YOUR.PANEL.DOMAINNAME.COM
        DocumentRoot "/home/kloxo/httpd/owncloud"

        SSLEngine On
        SSLCertificateFile /home/kloxo/httpd/ssl/owncloud.crt
        SSLCertificateKeyFile /home/kloxo/httpd/ssl/owncloud.key
        SuexecUserGroup apache apache
        SuPhp_UserGroup apache apache

        <Directory /home/kloxo/httpd/owncloud>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
                # add any possibly required additional directives here
                # e.g. the Satisfy directive (see below for details):
                Satisfy Any
        </Directory>

        CustomLog "/home/kloxo/httpd/owncloud/owncloud-custom_log" combined
        ErrorLog "/home/kloxo/httpd/owncloud/owncloud-error_log"
</VirtualHost>

As you can see from this conf file, we set a few options. Most importantly, the port to listen on 9111 in this case and the ServerName, which is the domain name of the panel. Lastly, because we want this to be secure, we set the SSLCert paths to self-signed certs. We'll generate them next and make sure they are owned by the apache user:

Code: [Select]
[root@dedicated httpd]# cd /home/kloxo/httpd/ssl/
[root@dedicated ssl]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout owncloud.key -out owncloud.crt
[root@dedicated ssl]# chown apache:apache owncloud.*

After running the first command, you'll have to enter a few options. The defaults will work, except for Common Name enter your servers (panels) domain name.

Lastly we restart apache and webservices:
Code: [Select]
[root@dedicated ssl]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@dedicated oc]#

If you don't get any errors after restarting you should be ready to access ownCloud from the port you entered in the .conf file.

If you do get errors, I guess retrace your steps and see what it wrong/different. The install may change slightly if your server is configured differently (ie. Nginx, etc.). You can always just delete all the folders/files you've created here to revert back.
« Last Edit: 2015-09-09, 05:54:28 by StarScream159 »

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Owncloud Install Transaction Check Error
« Reply #3 on: 2015-09-09, 06:04:47 »
Once you can get to the homepage of your ownCloud install, it'll ask you to create a user account and setup a database to use. I highly recommend changing the default database to MySQL, if you don't want to then you can skip the steps below and just create an account and start using it.

I followed the instructions here, more or less unmodified:

First up, get to the mysql command prompt (as root). You'll need your root password, if you don't know it you can reset it in the panel.
Code: [Select]
[root@dedicated tmp]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 66489
Server version: 5.5.45 Distributed by The IUS Community Project

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

Once at the prompt we need to first create the user:
Code: [Select]
mysql> CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'YOURPASSWORDHERE';
Next create the database:
Code: [Select]
mysql> CREATE DATABASE IF NOT EXISTS owncloud;
Lastly grant permissions to the database for the new user you created, you'll need the password you entered above:
Code: [Select]
mysql> GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'YOURPASSWORDHERE';
If everything ran without errors, you can quit now:
Code: [Select]
mysql> quit
Now that you've created the database, go back to the ownCloud setup page. Enter the username and password of the administrator account you want to create. Then click on mysql database and enter the values you created above.

DB User: owncloud
DB Pass: YOURPASSWORDHERE (or whatever you entered in the commands above)
DB Name: owncloud
DB Host: localhost

Click finish setup. You should then be in!

You can then go ahead and setup your local clients and apps, entering in your panel address (with https://) and the port you setup in the first steps. Of course since the SSL Cert is self signed, you'll have to accept the warning. But that's ok.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.071 seconds with 22 queries.

web stats analysis