Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: Tomagain 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?
-
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.
-
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
-
@Reetp
Can you give me some hint / script to bring horde back in function?
Thanks
-
@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
-
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
yum downgrade php
( you might need to add a few of the changed rpm there)
or
rpm -e allrpmshere --nodeps
then
yum install allrpmshere
-
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
-
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?
-
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.
-
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
-
For your information I am running a SME9 server with php56 activated on whole server with this contrib, and horde3 works.
-
@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.
-
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 :
rpm -qa |grep php56|sort
find rpm that provides the needed file:
yum whatprovides /opt/remi/php56/root/etc/php.d/20-bz2.ini --enablerepo=remi
-
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.
-
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
-
Hi!
Yes installed the scl-php.
Now i fixed it to php54:
config setprop php54 PhpModule enabled
signal-event php-update
I wet to http://rpms.famillecollet.com/enterprise/6/remi/x86_64/repoview/letter_p.group.html
I tried to install
php-ioncube-loader - Loader for ionCube Encoded Files with ionCube 24 support
But i can not the dependencies:
php(zend-abi) = 20100525-x86-64 wird benötigt von php-ioncube-loader-5.1.2-1.el6.remi.5.4.x86_64
php(api) = 20100412-x86-64 wird benötigt von php-ioncube-loader-5.1.2-1.el6.remi.5.4.x86_64
Any idea to get the ioncube loader working?
-
My guess is that you did
yum install php-ioncube-loader --enablerepo=remi
In place of
yum install php54-php-ioncube-loader --enablerepo=remi
The php version in remi is 5.4, while ours is 5.3. Only php packages starting with php??-php- are scl versions, the first one is to update the main php package which again you do not want to do.
Otherwise if you did the second remi has dependency issues in his repo pointing to the wrong php rpm.
If so you have to open a bug on his site, and or try php55
-
Thanx Jean-Philippe!
IONcube is now working. But no i detect that phpmyadmin (smeserver-phpmyadmin-4.0.10.2-3.el6.sme.noarch) is not working. Must be updated like
yum install --enablerepo=epel,remi,remi-php55,stephdl smeserver-phpMyAdmin_remi
signal-event console-save
or there are a better Way?
-
no idneed this is the right way currently, perhaps we will finish to merge the two versions, but currently you will have to thank you (again) Stephane for his great work ;)
JP
-
smeserver-phpMyAdmin_remi as for dependency a version of phpMyAdmin only compatible with php55 and mysql55 if I don't make a mistake.
So probably you have also upgraded mysql and it doesn't start anymore for a problem of innodb disabled by default in sme9.
The reinstallation of your server is close
-
Well wrong advice ( in other words do not install the phpmyadmin_remi version as it will require tu update mysql to 55, and we do not want this) after discussing with Stephane :
here what to do
when you tried to acess phpmyadmin you might have a white page and the log gives this :
# tail -f /var/log/messages
Jul 26 04:23:09 www httpd: PHP Fatal error: require(): Failed opening required '/usr/share/pear//Crypt/Random.php' (include_path='.:/opt/remi/php56/root/usr/share/pear:/opt/remi/php56/root/usr/share/php:/usr/share/pear') in /usr/share/phpMyAdmin/libraries/session.inc.php on line 17
yum install php54-php-mcrypt php55-php-mcrypt php56-php-mcrypt --enablerepo=remi -y
yum install php-phpseclib-crypt-random -y
signal-event phpmyadmin-update
https://wiki.contribs.org/PHP_Software_Collections#to_use_phpmyadmin