Koozali.org: home of the SME Server

No webmail / horde after php update

Offline Tomagain

  • *
  • 6
  • +0/-0
No webmail / horde after php update
« on: July 15, 2016, 12:37:38 AM »
Hi!

I needed an update to php 5.5.37. I followed the instructions by the topic:
https://wiki.contribs.org/Upgrade_php/mysql

I must do an  yum-complete-transaction (yum-utils, installed) to do the phpmyadmin aupdated.

Horde was excludes in (https://wiki.contribs.org/Upgrade_php/mysql) but after that horde / webmail is not running.

I installed Horde by the shell command:

yum install --enablerepo=epel,remi,remi-php55,stephdl sme-horde-horde

The installation went complete but horde doesnt run

Any idea?

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: No webmail / horde after php update
« Reply #1 on: July 15, 2016, 01:53:40 AM »
Any idea?

you should use smeserver-php-scl instead of upgrading the php version. Moreover I hope that you didn't played with your real Server but firstable with a VM.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: No webmail / horde after php update
« Reply #2 on: July 15, 2016, 11:15:08 AM »
I have updated the wiki page here https://wiki.contribs.org/Upgrade_php/mysql to add additional warnings and encourage use of Software Collections instead of direct upgrade to PHP

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Tomagain

  • *
  • 6
  • +0/-0
Re: No webmail / horde after php update
« Reply #3 on: July 15, 2016, 08:37:56 PM »
@Reetp
Can you give me some hint / script to bring horde back in function?

Thanks

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: No webmail / horde after php update
« Reply #4 on: July 15, 2016, 08:57:31 PM »
@Reetp
Can you give me some hint / script to bring horde back in function?

I'm afraid that as much as I would like to, I have no idea.

To be honest I think your best course of action is a reinstall from backup and start again (you DID take a backup, didn't you ??)

And as per the wiki this needs testing on a VM before trying on a production server.

Wish I could be of more assistance. If you post some log errors you may get some help....

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: No webmail / horde after php update
« Reply #5 on: July 16, 2016, 05:33:34 PM »
first you should check the following while trying to access horde :
/var/log/messages
/var/log/httpd/error_log

I am pretty sure you will see a lot of deprecated php warnings and errors.


then check the rpm that have been updated /removed in
/var/log/yum/yum.log

finally you can try
Code: [Select]
yum downgrade php( you might need to add a few of the changed rpm there)

or

rpm -e allrpmshere --nodeps

then

yum install allrpmshere


« Last Edit: July 16, 2016, 05:37:59 PM by Jean-Philippe Pialasse »

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: No webmail / horde after php update
« Reply #6 on: July 16, 2016, 09:57:06 PM »
A couple of years ago, I realized my upgraded (from REMI) versions of PHP were causing problems in various areas and needed to revert to the stock versions.  Here's the thread I started about it:
https://forums.contribs.org/index.php/topic,51299.msg260349.html#msg260349
......

Offline Tomagain

  • *
  • 6
  • +0/-0
Re: No webmail / horde after php update
« Reply #7 on: July 17, 2016, 04:54:00 PM »
I went back to my Snaphot on the vitual machine. I executed the updates wiki:  https://wiki.contribs.org/Upgrade_php/mysql with the horde exclute commands.
php working 5.5.x but webmail doesn´t run. It seems now the horde configuration is now not clean under  /home/httpd/html/horde/config.
Now it is in /usr/share/horde/config.

messages log:
Jul 17 16:43:00 sme04 httpd: PHP Warning:  require_once(/home/httpd/html/horde/imp/lib/../../lib/core.php): failed to open stream: No such file or directory in /home/httpd/html/horde/imp/lib/base.php on line 32
Jul 17 16:43:00 sme04 httpd: PHP Fatal error:  require_once(): Failed opening required '/home/httpd/html/horde/imp/lib/../../lib/core.php' (include_path='/usr/share/pear-addons:/usr/share/pear') in /home/httpd/html/horde/imp/lib/base.ph$




Has somebody any idea?

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: No webmail / horde after php update
« Reply #8 on: July 17, 2016, 07:55:16 PM »
Has somebody any idea?
Yes, and it's already been posted in this thread:  Don't upgrade PHP.  Doing so will break things.  If you need an upgraded version of PHP for some web app, use Software Collections instead.
......

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: No webmail / horde after php update
« Reply #9 on: July 17, 2016, 08:20:47 PM »

Has somebody any idea?

yes as already pointed, and added in warning of the cited wiki page , do not update php but use php scl contrib :


https://wiki.contribs.org/PHP_Software_Collections

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: No webmail / horde after php update
« Reply #10 on: July 17, 2016, 08:28:37 PM »
For your information I am running a SME9 server with php56 activated on whole server with this contrib, and horde3 works.

Offline Tomagain

  • *
  • 6
  • +0/-0
Re: No webmail / horde after php update
« Reply #11 on: July 23, 2016, 01:20:26 AM »
@Jean-Philippe
php56 seems to working but i need for the shop the ioncubeloader.
I installed : ftp://195.220.108.108/linux/remi/fedora/24/remi/x86_64/php56-php-ioncube-loader-5.1.2-1.fc24.remi.x86_64.rpm

But the loader-wizard replies:

Please note that the following problems currently exist with the ionCube Loader installation:
The following ini files could not be found by the Wizard: /opt/remi/php56/root/etc/php.ini,/opt/remi/php56/root/etc/php.d/20-bcmath.ini,/opt/remi/php56/root/etc/php.d/20-bz2.ini,/opt/remi/php56/root/etc/php.d/20-calendar.ini,/opt/remi/php56/root/etc/php.d/20-ctype.ini,/opt/remi/php56/root/etc/php.d/20-curl.ini,/opt/remi/php56/root/etc/php.d/20-dom.ini,/opt/remi/php56/root/etc/php.d/20-enchant.ini,/opt/remi/php56/root/etc/php.d/20-exif.ini,/opt/remi/php56/root/etc/php.d/20-fileinfo.ini,/opt/remi/php56/root/etc/php.d/20-ftp.ini,/opt/remi/php56/root/etc/php.d/20-gd.ini,/opt/remi/php56/root/etc/php.d/20-gettext.ini,/opt/remi/php56/root/etc/php.d/20-iconv.ini,/opt/remi/php56/root/etc/php.d/20-imap.ini,/opt/remi/php56/root/etc/php.d/20-ldap.ini,/opt/remi/php56/root/etc/php.d/20-mbstring.ini,/opt/remi/php56/root/etc/php.d/20-mysqlnd.ini,/opt/remi/php56/root/etc/php.d/20-pdo.ini,/opt/remi/php56/root/etc/php.d/20-phar.ini,/opt/remi/php56/root/etc/php.d/20-posix.ini,/opt/remi/php56/root/etc/php.d/20-shmop.ini,/opt/remi/php56/root/etc/php.d/20-simplexml.ini,/opt/remi/php56/root/etc/php.d/20-soap.ini,/opt/remi/php56/root/etc/php.d/20-sockets.ini,/opt/remi/php56/root/etc/php.d/20-sqlite3.ini,/opt/remi/php56/root/etc/php.d/20-sysvmsg.ini,/opt/remi/php56/root/etc/php.d/20-sysvsem.ini,/opt/remi/php56/root/etc/php.d/20-sysvshm.ini,/opt/remi/php56/root/etc/php.d/20-tidy.ini,/opt/remi/php56/root/etc/php.d/20-tokenizer.ini,/opt/remi/php56/root/etc/php.d/20-xml.ini,/opt/remi/php56/root/etc/php.d/20-xmlwriter.ini,/opt/remi/php56/root/etc/php.d/20-xsl.ini,/opt/remi/php56/root/etc/php.d/30-mysql.ini,/opt/remi/php56/root/etc/php.d/30-mysqli.ini,/opt/remi/php56/root/etc/php.d/30-pdo_mysql.ini,/opt/remi/php56/root/etc/php.d/30-pdo_sqlite.ini,/opt/remi/php56/root/etc/php.d/30-wddx.ini,/opt/remi/php56/root/etc/php.d/30-xmlreader.ini,/opt/remi/php56/root/etc/php.d/40-json.ini,/opt/remi/php56/root/etc/php.d/40-zip.ini
This may be due to server restrictions in place.
The necessary zend_extension line could not be found in the configuration.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: No webmail / horde after php update
« Reply #12 on: July 23, 2016, 09:29:00 AM »
have you used the scl as said ?

if the base horde 3 works with php56 it can also with php55 ;) so if you do not need php56 stop with php55, but this is just a suggestion.

However, I think of two potential problems :

1- you need to allow access to /opt/remi/php56/root/etc/php.d and so on ( i am not familiar with ioncube, I have no idea how and when you get these warning, hence can not help more). Where have you installed it and how aside to the loader ?

2-the php-scl contrib will only install base php-packages; You seems to need more, for this follow the instruction :
https://wiki.contribs.org/PHP_Software_Collections#Find_other_RPMS
you can check what rpm is missing, but here I feel this is not the problem  as most of the file I see are provided by php-common.


list installed rpm :
Code: [Select]
rpm -qa |grep php56|sortfind rpm that provides the needed file:
Code: [Select]
yum whatprovides /opt/remi/php56/root/etc/php.d/20-bz2.ini --enablerepo=remi

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: No webmail / horde after php update
« Reply #13 on: July 23, 2016, 09:38:47 AM »
oh important thing,

if you have installed the contrib phpscl, then you have to select what default php you want to use, then you can also set a specific php for an ibay. I f you call the ioncube php script from am ibay not set to php56, or if you did not set globally to php56, then you might experience an error maybe this is this.

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: No webmail / horde after php update
« Reply #14 on: July 23, 2016, 11:37:52 AM »

The necessary zend_extension line could not be found in the configuration.
try to install php56-php-xcache

Each php5X rpm must be installed one per one, following your need, I just propose some of them.
Maybe a better note could be added.

here all the rpm available : http://rpms.famillecollet.com/enterprise/6/remi/x86_64/repoview/letter_p.group.html
« Last Edit: July 23, 2016, 11:42:30 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!