Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: Drifting on November 08, 2013, 05:31:17 PM
-
Hi Chaps.
I am trying to find a replacement for Windows Sharepoint, in essence web file sharing, calendar, and notice board for multi users.
Did quite like the look of Owncloud, but was bothered about the PHP bug with the version required. That and I did not quite understand what the workaround was telling me to do. Very confusing.
Would prefer something that just installs without messing with my very stable and secure SME server.
Regards
-
Drifting
.......Did quite like the look of Owncloud, but was bothered about the PHP bug with the version required. That and I did not quite understand what the workaround was telling me to do. Very confusing.
Every piece of software has its requirements, & Owncloud 5 requires php 5.3.4 or greater. That is not a big issue as such.
The bug report referred to in the Owncloud wiki Howto article, advises how to upgrade your php version, & my reading indicates it may now upgrade to php 5.3.27 which is greater than the required 5.3.4.
So follow the instructions & you should be able to install & run Owncloud 5 without errors or problems, see:
http://bugs.contribs.org/show_bug.cgi?id=7613#c3
Be careful as some of the commands have wrapped to the next line, so enter them correctly (on the same line).
It is also instructing you to configure a repo from which you can download the newer version of php using yum.
Ask again if you are unsure of any specifics.
This upgrade should not disrupt your stable server, but if you are concerned then it is always wise to test first on a non production or test server. I have a test server setup at home for exactly that purpose.
-
Drifting
I had a look at the webtatic.com site. You can do this to setup their repo on sme server 8.0 & install php 5.3.27 (& update dependencies) directly
/sbin/e-smith/db yum_repositories set webtatic-el5 repository \
Name 'webtatic - EL5' \
MirrorList 'http://mirror.webtatic.com/yum/centos/5/$basearch/mirrorlist' \
EnableGroups no \
GPGCheck yes \
GPGKey http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy \
Visible no \
status disabled
rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
signal-event yum-modify
db yum_repositories show webtatic-el5
webtatic-el5=repository
EnableGroups=no
GPGCheck=yes
GPGKey=http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
MirrorList=http://mirror.webtatic.com/yum/centos/5/$basearch/mirrorlist
Name=webtatic - EL5
Visible=no
status=disabled
Check version currently installed on sme8.0
rpm -q php
php-5.3.3-13.el5.sme.2
Then run the php 5.3.27 yum update
yum update --enablerepo=webtatic-el5 php
after a lot of wheels churning ......
Updated:
php.i386 0:5.3.27-2.w5
Dependency Updated:
php-cli.i386 0:5.3.27-2.w5 php-common.i386 0:5.3.27-2.w5 php-devel.i386 0:5.3.27-2.w5
php-gd.i386 0:5.3.27-2.w5 php-imap.i386 0:5.3.27-2.w5 php-ldap.i386 0:5.3.27-2.w5
php-mbstring.i386 0:5.3.27-2.w5 php-mysql.i386 0:5.3.27-2.w5 php-pdo.i386 0:5.3.27-2.w5
php-xml.i386 0:5.3.27-2.w5
rpm -q php
php-5.3.27-2.w5
signal-event post-upgrade
signal-event reboot
After restart, I then followed the instructions at
http://wiki.contribs.org/OwnCloud
and installed owncloud,
which worked OK the first time.
I uploaded files from a remote location & all worked fine.
Owncloud looks good !
All the above done remotely using putty ssh on a Windows 7 standalone workstation at one location, to the sme "web" server at another location.
-
thanks janet, your work is here, maybe we can refer to your explanation on the owncloud page, you should write it please.
http://bugs.contribs.org/show_bug.cgi?id=7613#c8
-
Janet.
Thank you so much for taking the time to reply, and actually giving me a solution. Will give this a try tomorrow.
Regards Paul.
Quick Modify of Message.
You are spot on Janet, thank you so much for those instructions, worked like a dream, thank you again for giving up your time.
Paul.
-
well i have tested a bit more, and i'm not sure that the solution of upgrading php is better than to keep the php issue. Indeed after the upgrade you will not be able to install phpmyadmin which needs php53 as dependencies.
see http://bugs.contribs.org/show_bug.cgi?id=7613#c12
-
well i have tested a bit more, and i'm not sure that the solution of upgrading php is better than to keep the php issue. Indeed after the upgrade you will not be able to install phpmyadmin which needs php53 as dependencies.
see http://bugs.contribs.org/show_bug.cgi?id=7613#c12
Well that saved me the effort, tend to install that when I mess up MYSQL.
-
stephdl
Indeed after the upgrade you will not be able to install phpmyadmin which needs php53 as dependencies.
see http://bugs.contribs.org/show_bug.cgi?id=7613#c12
I am puzzled, comment 12 of that bug implies you did install phpmyadmin OK without errors.
It installed various dependencies OK.
It appears that php is a different package than php53, so what problem or error messages are you actually seeing ?
Does owncloud still run without php warnings or errors ?
After installing phpmyadmin (on a system with php upgraded to 5.3.27 from webtatic repo), what do you get with
rpm -q php
-
stephdl
....after the upgrade you will not be able to install phpmyadmin which needs php53 as dependencies.
The actual issue when installing phpmyadmin to a system with php 5.3.27 is
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-21.el5.i386 from base has depsolving problems
--> php53-common conflicts with php-common
Maybe force the install with rpm -Uvh --nodeps phpmydmin ???
Will try & see what happens.
-
Hi janet
On my working sme (not a vm) I use owncloud since few months with the version 4.4, yes i'm not hurry about version :), but lately i have upgraded to owncloud5 and i have had the need to upgrade myphp version, because like everyone i saw the php warning. However with my real sme, phpmyadmin was installed before owncloud, so when i've wanted to upgrade php i have had the dependencies errors. Like you i have tested your solution, and without phpmyadmin there are no problems.
The problem exists only if you need the phpmyadmin which comes from epel with its dependencies php53. The other solution in comment http://bugs.contribs.org/show_bug.cgi?id=7613#c3 is not good too as it is all the php version which is replaced by php53...not really good at all.
You can perform further tests on this behaviour, please report them in the right bugzilla (bug 7613)
-
It appears that php is a different package than php53, so what problem or error messages are you actually seeing ?
Does owncloud still run without php warnings or errors ?
as i said above, like everyone owncloud complains about phpwarning, but i have just tried to upgrade php version with webtatic and errors dependencies stopped me.
After installing phpmyadmin (on a system with php upgraded to 5.3.27 from webtatic repo), what do you get with
rpm -q php
php version installed (upgraded with webtatic), phpmyadmin is not installed.
[root@sme8dev-2 ~]# rpm -q php
php-5.3.27-2.w5
but if i want to install phpmyadmin after the php upgrade, i have these returns.
[root@sme8dev-2 ~]# yum --enablerepo=smecontribs install smeserver-phpmyadmin
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
* base: ftp.rezopole.net
* smeaddons: mirror.hakkers.com
* smecontribs: mirror.hakkers.com
* smeextras: mirror.hakkers.com
* smeos: mirror.hakkers.com
* smeupdates: mirror.hakkers.com
* updates: ftp.rezopole.net
base | 1.1 kB 00:00
smeaddons | 2.5 kB 00:00
smecontribs | 2.5 kB 00:00
smeextras | 2.5 kB 00:00
smeos | 2.7 kB 00:00
smeupdates | 2.5 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package smeserver-phpmyadmin.noarch 0:3.5.2.2-6.el5.sme set to be updated
--> Processing Dependency: phpMyAdmin3 >= 3.5.2.2 for package: smeserver-phpmyadmin
--> Running transaction check
---> Package phpMyAdmin3.noarch 0:3.5.8.1-1.el5 set to be updated
--> Processing Dependency: php53-php-gettext for package: phpMyAdmin3
--> Processing Dependency: php53-mysql for package: phpMyAdmin3
--> Processing Dependency: php53-mcrypt for package: phpMyAdmin3
--> Processing Dependency: php53-mbstring for package: phpMyAdmin3
--> Processing Dependency: php53-gd for package: phpMyAdmin3
--> Processing Dependency: php53 for package: phpMyAdmin3
--> Running transaction check
---> Package php53.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-cli = 5.3.3-21.el5 for package: php53
--> Processing Dependency: php53-common = 5.3.3-21.el5 for package: php53
---> Package php53-gd.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-mbstring.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-mcrypt.i386 0:5.3.3-1.el5 set to be updated
--> Processing Dependency: libmcrypt.so.4 for package: php53-mcrypt
---> Package php53-mysql.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-pdo for package: php53-mysql
---> Package php53-php-gettext.noarch 0:1.0.11-3.el5 set to be updated
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated
---> Package php53-cli.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-common.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-pdo.i386 0:5.3.3-21.el5 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-21.el5.i386 from base has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
-
stephdl
I think the real "issue" here , is that phpMyAdmin3 requires the php53 modules, & forces the install of those.
These are based on php 5.3.3 so as the error message suggests,
php53-common-5.3.3-21.el5.i386 conflicts with php-common
One older net post
http://www.linuxquestions.org/questions/linux-newbie-8/error-php53-common-conflicts-with-php-common-884462/
suggests to uninstall all php-xxxx modules & install php53-xxxx modules, but that just goes back to square one, as we end up with a install based on php 5.3.3, which does not satisfy the owncloud requirements.
This generically appears to be an upstream issue, in that the newer (latest) php packages are not being released (in the Centos version that sme 8 uses), and that then leads to the issue of sme server 8 being based on an older centos version which has older php packages, catch 22.
This is not an issue for me personally as I prefer NOT to use phpmyadmin, I use the mysql command line
I did try this
rpm -e --nodeps php-common
service httpd-e-smith restart
then
yum install php53-common --enablerepo=smecontribs
service httpd-e-smith restart
It installed OK
Then I ran the phpMyAdmin install as per wiki
yum --enablerepo=smecontribs install smeserver-phpmyadmin
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
* base: mirror.rackcentral.com.au
* smeaddons: smeserver.mirror.garr.it
* smecontribs: mirror.chmuri.net
* smeextras: smeserver.mirror.garr.it
* smeos: smeserver.mirror.garr.it
* smeupdates: smeserver.mirror.garr.it
* updates: mirror.overthewire.com.au
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package smeserver-phpmyadmin.noarch 0:3.5.2.2-6.el5.sme set to be updated
--> Processing Dependency: phpMyAdmin3 >= 3.5.2.2 for package: smeserver-phpmyadmin
--> Running transaction check
---> Package phpMyAdmin3.noarch 0:3.5.8.1-1.el5 set to be updated
--> Processing Dependency: php53-php-gettext for package: phpMyAdmin3
--> Processing Dependency: php53-mysql for package: phpMyAdmin3
--> Processing Dependency: php53-mcrypt for package: phpMyAdmin3
--> Processing Dependency: php53-mbstring for package: phpMyAdmin3
--> Processing Dependency: php53-gd for package: phpMyAdmin3
--> Processing Dependency: php53 for package: phpMyAdmin3
--> Running transaction check
---> Package php53.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-cli = 5.3.3-21.el5 for package: php53
---> Package php53-gd.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-mbstring.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-mcrypt.i386 0:5.3.3-1.el5 set to be updated
---> Package php53-mysql.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-pdo for package: php53-mysql
---> Package php53-php-gettext.noarch 0:1.0.11-3.el5 set to be updated
--> Running transaction check
---> Package php53-cli.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-pdo.i386 0:5.3.3-21.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================
Installing:
smeserver-phpmyadmin noarch 3.5.2.2-6.el5.sme smecontribs 11 k
Installing for dependencies:
php53 i386 5.3.3-21.el5 base 1.3 M
php53-cli i386 5.3.3-21.el5 base 2.5 M
php53-gd i386 5.3.3-21.el5 base 110 k
php53-mbstring i386 5.3.3-21.el5 base 1.2 M
php53-mcrypt i386 5.3.3-1.el5 smecontribs 16 k
php53-mysql i386 5.3.3-21.el5 base 89 k
php53-pdo i386 5.3.3-21.el5 base 68 k
php53-php-gettext noarch 1.0.11-3.el5 smecontribs 20 k
phpMyAdmin3 noarch 3.5.8.1-1.el5 smecontribs 6.1 M
Transaction Summary
===============================================================================================================================================================================
Install 10 Package(s)
Upgrade 0 Package(s)
Total size: 11 M
Total download size: 5.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): php53-pdo-5.3.3-21.el5.i386.rpm | 68 kB 00:00
(2/6): php53-mysql-5.3.3-21.el5.i386.rpm | 89 kB 00:00
(3/6): php53-gd-5.3.3-21.el5.i386.rpm | 110 kB 00:00
(4/6): php53-mbstring-5.3.3-21.el5.i386.rpm | 1.2 MB 00:01
(5/6): php53-5.3.3-21.el5.i386.rpm | 1.3 MB 00:02
(6/6): php53-cli-5.3.3-21.el5.i386.rpm | 2.5 MB 00:03
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 512 kB/s | 5.2 MB 00:10
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /etc/httpd/conf.d/php.conf from install of php53-5.3.3-21.el5.i386 conflicts with file from package php-5.3.27-2.w5.i386
file /usr/lib/httpd/modules/libphp5.so from install of php53-5.3.3-21.el5.i386 conflicts with file from package php-5.3.27-2.w5.i386
file /usr/lib/php/modules/gd.so from install of php53-gd-5.3.3-21.el5.i386 conflicts with file from package php-gd-5.3.27-2.w5.i386
file /usr/lib/php/modules/mysql.so from install of php53-mysql-5.3.3-21.el5.i386 conflicts with file from package php-mysql-5.3.27-2.w5.i386
file /usr/lib/php/modules/mysqli.so from install of php53-mysql-5.3.3-21.el5.i386 conflicts with file from package php-mysql-5.3.27-2.w5.i386
file /usr/lib/php/modules/pdo_mysql.so from install of php53-mysql-5.3.3-21.el5.i386 conflicts with file from package php-mysql-5.3.27-2.w5.i386
file /usr/lib/php/modules/pdo.so from install of php53-pdo-5.3.3-21.el5.i386 conflicts with file from package php-pdo-5.3.27-2.w5.i386
file /usr/lib/php/modules/pdo_sqlite.so from install of php53-pdo-5.3.3-21.el5.i386 conflicts with file from package php-pdo-5.3.27-2.w5.i386
file /usr/lib/php/modules/mbstring.so from install of php53-mbstring-5.3.3-21.el5.i386 conflicts with file from package php-mbstring-5.3.27-2.w5.i386
file /usr/bin/phar.phar from install of php53-cli-5.3.3-21.el5.i386 conflicts with file from package php-cli-5.3.27-2.w5.i386
file /usr/bin/php from install of php53-cli-5.3.3-21.el5.i386 conflicts with file from package php-cli-5.3.27-2.w5.i386
file /usr/bin/php-cgi from install of php53-cli-5.3.3-21.el5.i386 conflicts with file from package php-cli-5.3.27-2.w5.i386
file /usr/share/man/man1/php.1.gz from install of php53-cli-5.3.3-21.el5.i386 conflicts with file from package php-cli-5.3.27-2.w5.i386
Error Summary
-------------
The packages did not install.
Clearly all the php modules for 5.3.27 need to be removed & php53 5.3.3 versions installed, & I assume phpMyAdmin would then install OK, but that does not suit Owncloud requirements, so as I said earlier, this appears to be a catch 22 issue. The joys of Linux !
I am not prepared to upset the integrity of my sme server with that big a tweak, as there are many php-xxx modules involved.
Personally as a newer version of php 5.3.27 is available from webtatic repo, then I think phpMyAdmin should be rewritten to use the newer version, rather than using the special php53 version.
Anyone have any better ideas or comments.
....and yes this could all go into the bugtracker, but I'm really still playing with it & trying to sort out what is actually going on & what is the best approach to take etc. I do not really know the answer as yet, & I'm not even sure of exactly what or where the problem really lies. I was just experimenting to see if I could get Owncloud running OK, & the issue grew bigger.
-
....and yes this could all go into the bugtracker, but I'm really still playing with it & trying to sort out what is actually going on & what is the best approach to take etc. I do not really know the answer as yet, & I'm not even sure of exactly what or where the problem really lies. I was just experimenting to see if I could get Owncloud running OK, & the issue grew bigger.
Indeed Janet you should go more often on the bugzilla side, we lack people which want to test or to play with bugs...if you want that we speak about tools which you need to follows easily bugs, we can talk about that.
in concerning phpmyadmin3 we are not able to rewrite anything because the package comes from epel, effectively certain EPEL packages are imported to smetest before they go to smecontribs. It is an easy way to maintain much packages with few people.
the step of smetest is only here to avoid problems before the release in smecontribs (i think that it is the same process with centos repo)
-
If anyone is experimenting with the installation of the webtactic php packages & you want to remove them & reinstate your server to the standard php packages, then do the following.
Check versions installed, they should all be the .w5 variant
rpm -q php-cli php-common php-devel php-gd php-imap php-ldap php-mbstring php-mysql php-pdo php-xml php
Remove the php rpms using the --nodeps option to force removal despite other packages being dependent upon them, use this switch wisely & carefully otherwise you may remove something you don't want to
rpm -e --nodeps php-cli php-common php-devel php-gd php-imap php-ldap php-mbstring php-mysql php-pdo php-xml php
Check that the .w5 rpms are NO LONGER installed
rpm -q php-cli php-common php-devel php-gd php-imap php-ldap php-mbstring php-mysql php-pdo php-xml php
Install php from standard repos (use install rather than upgrade)
yum install php-cli php-common php-devel php-gd php-imap php-ldap php-mbstring php-mysql php-pdo php-xml php
Check that the standard php rpms are now installed
rpm -q php-cli php-common php-devel php-gd php-imap php-ldap php-mbstring php-mysql php-pdo php-xml php
Follow by:
signal-event post-upgrade
signal-event reboot
-
I removed the webtactic PHP pkgs, but left Owncloud installed. After reinstalling the standard PHP pkgs, Owncloud still appears to work OK without errors.
Upload & download & deletion of files works OK, calender works, photo viewing works etc. Not extensively tested but Owncloud generally appears to function OK with the sme server standard PHP version pkgs. No errors displayed during basic use (edit - see below).
So here is another potential workaround, upgrade the php version from webtactic, install owncloud, downgrade php, keep using owncloud.
Edit: Actually after a bit more looking, there are many php errors showing up in the admin panel of owncloud, so running the lower sme/centos standard version of php does not satisfy owncloud requirements for newer php calls etc.