Koozali.org: home of the SME Server

Uprading PHP 55 from Remi - Requires: libgd.so.3

Offline MarkR

  • **
  • 56
  • +0/-0
Uprading PHP 55 from Remi - Requires: libgd.so.3
« on: July 11, 2014, 12:17:13 AM »
Hi All,

I have just installed Contribs V9 (trouble free installation)

I am trying to upgrade php so for various php apps (owncloud, joomla, phplist) using the remi repo, unfortunately I receive the following error : -

Error: Package: php-gd-5.5.14-1.el6.remi.i686 (remi-php55)
           Requires: libgd.so.3

Any ideas?

Many thanks
Mark
...

Offline MarkR

  • **
  • 56
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #1 on: July 11, 2014, 04:43:48 PM »
I had not configured the Remi repository.

All is ok now.
...

Offline bclayton

  • *
  • 138
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #2 on: July 12, 2014, 09:22:48 PM »
I am very interested in hearing your results/progress.  Because my SME 9 server is hosting a Joomla site, I would like to upgrade my PHP to a later version.  However, I have seen posts here that caution that replacing the PHP version native to SME 9 might cause the server to break, maybe upon upgrades.  Any advice is appreciated.  Thanks!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #3 on: July 12, 2014, 10:01:30 PM »
Obviously a wiki page should be setup to follow any step on how upgrade php....please do it
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #4 on: July 12, 2014, 10:44:56 PM »
This is how i done

First enable repo

http://wiki.contribs.org/Remi

I used remi-php55 and epel

yum --enablerepo=remi-php55,remi,epel update php\*


The known issue is phpmyadmin which is tied with php53 but Remi provides a phpmyadmin version  usable with our contribs....i have done some works on IT......the Unknown issue is what we could break more on sme server....test zone
« Last Edit: July 12, 2014, 11:06:05 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline MarkR

  • **
  • 56
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #5 on: July 18, 2014, 05:11:26 PM »
Many thanks stephdl.

Did you get phpmyadmin working?

would i use "yum --enablerepo=remi update phpmyadmin" to install the remi version?

Thanks again
Mark
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #6 on: July 18, 2014, 09:32:54 PM »
I'm on holydays, a bit far from my build box, so I cannot work on it yet, but this is how you can update to PHP55

Code: [Select]
yum --enablerepo=remi-php55,remi,epel update php\* --exclude=php-horde-Horde\*
as you can see we must not update horde since remi provides some packages for it.

Of course it needs more Test before to be used in an environment of work.

I can provide a  version of smeserver-phpmyadmin for remi php version it is not a huge task, this one should work :  http://mirror.de-labrusse.fr/Sme-Server/phpmyadmin/
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline MarkR

  • **
  • 56
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #7 on: July 21, 2014, 10:30:30 PM »
Hi All,

I have updated to php 5.5.14 but when trying to update phpmyadmin i  received the following??

Error: Package: php-mcrypt-5.3.3-3.el6.i686 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.5.14-2.el6.remi.i686 (@remi-php55)
               php(api) = 20121113-32
           Available: php-common-5.3.3-26.el6.i686 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-27.el6_5.i686 (smeos)
               php(api) = 20090626
Error: Package: php-mcrypt-5.3.3-3.el6.i686 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.5.14-2.el6.remi.i686 (@remi-php55)
               php(zend-abi) = 20121212-32
           Available: php-common-5.3.3-26.el6.i686 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-27.el6_5.i686 (smeos)
               php(zend-abi) = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Any ideas would be appreciated.
Many thanks
Mark
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #8 on: July 23, 2014, 12:14:04 AM »
Once php55 is updated you could install smeserver-phpmyadmin

 wget http://mirror.de-labrusse.fr/Sme-Server/phpmyadmin/smeserver-phpmyadmin-4.1.14-9.el6.sme.noarch.rpm

Yum install smeserver-phpmyadmin-4.1.14-9.el6.sme.noarch.rpm --enablerepo=remi,remi-php55

See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline MarkR

  • **
  • 56
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #9 on: July 23, 2014, 08:00:10 PM »
Hi

Downloaded the phpmyadmin and ran yum install but received he following

Error: Package: php-mcrypt-5.5.14-2.el6.remi.i686 (remi-php55)
           Requires: libmcrypt.so.4
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Any ideas?
many thanks
mark
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #10 on: July 23, 2014, 11:35:31 PM »
Sorry but i'm answering with an android phone... :sad:

Try

Yum install smeserver-phpmyadmin-4.1.14-9.el6.sme.noarch.rpm --enablerepo=remi,remi-php55,epel
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline MarkR

  • **
  • 56
  • +0/-0
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #11 on: July 24, 2014, 12:08:33 AM »
Many thanks Stephdl,

Install via your last command worked fine......

now i get

You should upgrade to MySQL 5.5.0 or later.

Many thanks for your help....... did I spot somewhere you are on holiday??? enjoy :) (if so sorry, but thanks)

Mark
UK
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #12 on: July 24, 2014, 01:56:36 PM »
Yep i'm on holidays in spain but now it is the time to return to home so i will start some works the next week.

To be honest I don't try to much than upgrade php and install phpmyadmin from remi repository. The version proposed is really uptodate and maybe complains about mysql55. That should be required in the phpmyadmin website if you can verify that.
I'm not sure that upgrade mysql is a good idea since the mysql service refused to start when i tried the upgrade but it needs to be done again. I know that Jpp has done a contrib for Sme8 to install mysql5.5,  it ought be tested and if needed we could make a rpm for sme9

See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #13 on: August 04, 2014, 07:09:33 PM »
Well i have understood why the mysql server crash after an update to mysql 5.5. In fact by default we give an argument 'skip-innodb' and the problem for us is that now mysql5.5 is build with innodb. Therefore the solution is to enabled innodb in myqsld (see relevant db entries)

Then we can have PHP55 (only one warning in log : allow_call_time_pass_reference because deprecated) and mysql 5.5 from remi for sme9.

What could be the more interesting, only a tutorial on the howto section, or a rpm to upgrade all this software....included phpMyAdmin (version 4.2.7) ?

Edit : when i enable innodb i have these settings in /etc/my.cnf
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50


are they enough  ????
« Last Edit: August 04, 2014, 07:29:14 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Uprading PHP 55 from Remi - Requires: libgd.so.3
« Reply #14 on: August 04, 2014, 11:07:49 PM »
For those who want to upgrade to php55 and mysql5.5, this is how you can do

http://wiki.contribs.org/Upgrade_php/mysql

Of course that should be tried with real PHP application in order to validate it.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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