Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: mophilly on September 13, 2018, 07:08:17 AM
-
Hi,
Saw this when I attempted to update the PHP collections. Koozali 9 with all updates applied, except these.
Error Downloading Packages:
php56-php-mysqlnd-5.6.38-1.el6.remi.x86_64: failure: php56-php-mysqlnd-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
php70-php-process-7.0.32-1.el6.remi.x86_64: failure: php70-php-process-7.0.32-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
php56-php-imap-5.6.38-1.el6.remi.x86_64: failure: php56-php-imap-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
php70-php-gd-7.0.32-1.el6.remi.x86_64: failure: php70-php-gd-7.0.32-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
php56-php-soap-5.6.38-1.el6.remi.x86_64: failure: php56-php-soap-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
Thoughts from the forum most welcome.
-
Which URL/Mirror was it using?
-
Hi Mophilly,
PHP-5.6 is end of live but I found another URL wich might be the solution for this version: https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/.
If you have a test site, try changing the yum repository to:
/sbin/e-smith/db yum_repositories set rh-php56 \
repository Name 'Software collections - php56' \
BaseURL 'https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/' \
EnableGroups no Visible yes status disabled
I think that the rh-collection does not show in Server Manager. If needed by an i-bay then try to add it by modifying the i-bay accounts.
If this works, maybe somebody can add this to the Software Collections Repositories at: https://wiki.contribs.org/index.php?title=Software_Collections_Repositories&oldid=28179#tab=PHP55.
Let me know what is the result,
Michel-André
-
Hi Mophilly,
I tried rh-php56 on an virtual machine.
If you use php-56 on all i-bays because there is no line for SCL Version in Server Manager.
/sbin/e-smith/db yum_repositories set rh-php56 \
repository Name 'Software collections - php56' \
BaseURL 'https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/' \
EnableGroups no Visible yes status disabled
yum install -y --enablerepo=rh-php56 rh-php56
signal-event yum-modify
cat > /etc/profile.d/activer-rh-php56.sh <<'EOT'
#!/bin/bash
source /opt/rh/rh-php56/enable
#
if [[ "$X_SCLS" != *rh-php56* ]]; then
src="`scl enable rh-php56 'echo $X_SCLS'`"
pkgs=(${src// / })
uniq=($(printf "%s\n" "${pkgs[@]}" | sort -u));
export X_SCLS="${uniq[@]}"
fi
EOT
##### exit the ssh console
##### login again
php --version
##### Should display
PHP 5.6.5 (cli) (built: Jun 29 2015 08:20:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
Maybe someone knows how to enable it per i-bay?
Michel-André
-
Maybe someone knows how to enable it per i-bay?
Easier just to use:
https://wiki.contribs.org/PHP_Software_Collections
-
Thank you for the posts. I appreciate the help.
I apologize for not posting enough information. We are using PHP software collections. We are maintaining one site (one of the iBays) on PHP 5.6 until a third party sorts out an incompatibility with PHP 7.x. We haven't changed the PHP included in the SME distro.
The repo we are reading is remi-safe.
The system has been and still is working fine. It is a production site. I update the system regularly. The PHP update was attempted in response to an alert of updates available.
As an aside, I just watched, again, the ever entertaining "The Web Site Is Down" video from BOFH, so I am suffering temptations. I will refrain from any shenanigans. :-P
I will try the update once more, just in case something has changed at the repo.
-
Check the repo contents
Mirrorlist here:
https://rpms.remirepo.net/
Typical contents here:
https://mirror.netweaver.uk/remi/enterprise/6/
Seems 5.6 is still there.
I'd guess you had a mirror issue.
Clean your yum repos and try again
-
We ran the update again a day or two later, and the mirrors were found. All's well that ends well.
-
Good news !!
Glad it is all sorted.
Time for a :pint:
:-)