Koozali.org: home of the SME Server

Installing php-mcrypt

Offline brianr

  • *
  • 988
  • +2/-0
Installing php-mcrypt
« on: August 11, 2011, 04:47:47 PM »
Hi

I need to install php-mcrypt for some website/sagepay integration php code.

I've done some searching, but have been unable to find anything specific.

this does not work: http://wiki.contribs.org/PHP#PHP_5_with_php-mcrypt

(the rpms are no longer there).

Anyone done it?
« Last Edit: August 11, 2011, 05:14:45 PM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Installing php-mcrypt
« Reply #1 on: August 11, 2011, 06:46:57 PM »
configure the Epel repo (adjust the sintax for el5) and then

Code: [Select]
yum --enablerepo=epel install php-mcrypt

not tested, should work
HTH

Offline mdo

  • *
  • 355
  • +0/-0
Re: Installing php-mcrypt
« Reply #2 on: August 11, 2011, 08:23:42 PM »
...

Offline brianr

  • *
  • 988
  • +2/-0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #4 on: September 01, 2011, 03:19:07 PM »
sme 8b6
[root@server8 php5]# yum update
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: centos.syn.co.il
 * smeaddons: smemirror.fullnet.co.uk
 * smeextras: smemirror.fullnet.co.uk
 * smeos: smemirror.fullnet.co.uk
 * smeupdates: smemirror.fullnet.co.uk
 * updates: centos.syn.co.il
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: php-common = 5.2.10-1.el5.remi for package: php-mcrypt
---> Package php-common.i386 0:5.2.10-1.el5.sme set to be updated
--> Finished Dependency Resolution
php-mcrypt-5.2.10-1.el5.remi.i386 from installed has depsolving problems
  --> Missing Dependency: php-common = 5.2.10-1.el5.remi is needed by package php-mcrypt-5.2.10-1.el5.remi.i386 (installed)
Error: Missing Dependency: php-common = 5.2.10-1.el5.remi is needed by package php-mcrypt-5.2.10-1.el5.remi.i386 (installed)
 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-clean
Thanks all for helping
Skype yosii2009

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Re: Installing php-mcrypt
« Reply #5 on: September 02, 2011, 01:30:31 PM »
Just a guess, but maybe:
Code: [Select]
yum --enablerepo=remi update
« Last Edit: September 03, 2011, 01:57:43 PM by mmccarn »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Installing php-mcrypt
« Reply #6 on: September 02, 2011, 02:04:47 PM »
Just a guess, but maybe:
Code: [Select]
yum --enablerepo=remi update
(since

never, NEVER do an update with external repo enabled.. it could break your server (think about perl)

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Re: Installing php-mcrypt
« Reply #7 on: September 03, 2011, 02:20:14 PM »
never, NEVER do an update with external repo enabled.. it could break your server (think about perl)

Right you are; very careless of me.

To restrict the update to php-mcrypt:
Code: [Select]
yum --enablerepo=remi update php-mcrypt

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #8 on: September 04, 2011, 11:21:02 AM »
  yum --enablerepo=remi update
Loaded plugins: fastestmirror, protect-packages, smeserver

Error getting repository data for remi, repository not found




command  http://bugs.contribs.org/show_bug.cgi?id=6468
yum list --enablerepo="*" php-mcrypt
--
Available Packages
php-mcrypt.i386                   5.1.6-15.el5.centos.1                   extras
command
 rpm -q --whatrequires php-mcrypt
no package requires php-mcrypt
command
yum list php-mcrypt --showduplicates
Error: No matching Packages to list
Thanks all for helping
Skype yosii2009

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #9 on: September 04, 2011, 02:08:56 PM »

 I tried to install   http://forums.famillecollet.com/viewtopic.php?id=490
 I hope you will not damage
 This result
yum --enablerepo=remi update php-mcrypt
Package(s) php-mcrypt available, but not installed.
No Packages marked for Update




rhe
 yum --enablerepo=remi update
...Error
Error: Missing Dependency: libedit.so.0 is needed by package php-5.3.8-1.el5.remi.i386 (remi)
 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
Thanks all for helping
Skype yosii2009

Offline johnp

  • ****
  • 312
  • +0/-0
Re: Installing php-mcrypt
« Reply #10 on: September 04, 2011, 03:28:38 PM »
@mbg

It looks to me that step 3 and half of step 4 weren't done as mentioned in

http://wiki.contribs.org/PHP#PHP_5_with_php-mcrypt

If that's the case, you could follow step 1 using

wget http://files.pcplus.ge/Public/Linux/RPM/php-5.2.10-1.el5/php-common-5.2.10-1.el5.remi.i386.rpm

do step 2 and 3

for step 4 yum localinstall php-common-5.2.10-1.el5.remi.i386.rpm

then do the remaining steps.

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #11 on: September 04, 2011, 06:35:29 PM »
 ok is work  ?
 tmp]# yum --enablerepo=centosplus install php.i386 php-pear-Net-Socket php-pear-Auth-SASL php-pear-DB php-pear-HTTP php-pear-Mail php-pear-XML-Parser

WARNING : This php-* RPM are not official Fedora build and
overrides the official ones. Don't file bugs on Fedora Project.

Use dedicated forums http://forums.famillecollet.com/

  Installing     : php-common                                                                                             1/2
  Installing     : php-mcrypt                                                                                             2/2

Installed:
  php-common.i386 0:5.2.10-1.el5.remi                           php-mcrypt.i386 0:5.2.10-1.el5.remi

Complete!
 server php]# mv /etc/php.ini /etc/php.ini.old
server php]# mv /etc/php.ini.org /etc/php.ini
 server php]# svc -t /service/httpd-e-smith
 server php]# httpd -t
Syntax OK

  yum update     (Error: Missing)

Loaded plugins: fastestmirror, priorities, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: centos.syn.co.il
 * smeaddons: ftp.surfnet.nl
 * smeextras: ftp.surfnet.nl
 * smeos: ftp.surfnet.nl
 * smeupdates: ftp.surfnet.nl
 * updates: centos.syn.co.il
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: php-common = 5.2.10-1.el5.remi for package: php-mcrypt
---> Package php-common.i386 0:5.2.10-1.el5.sme set to be updated
--> Finished Dependency Resolution
php-mcrypt-5.2.10-1.el5.remi.i386 from installed has depsolving problems
  --> Missing Dependency: php-common = 5.2.10-1.el5.remi is needed by package php-mcrypt-5.2.10-1.el5.remi.i386 (installed)
Error: Missing Dependency: php-common = 5.2.10-1.el5.remi is needed by package php-mcrypt-5.2.10-1.el5.remi.i386 (installed)
 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
Thanks all for helping
Skype yosii2009

Offline johnp

  • ****
  • 312
  • +0/-0
Re: Installing php-mcrypt
« Reply #12 on: September 05, 2011, 12:05:33 AM »
Please show a

Code: [Select]
yum list installed php*

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #13 on: September 05, 2011, 09:08:54 AM »
With all the problems   (php-mcrypt)
 PHP system works without messages ERROR
 There was a problem at the entrance to manage MYADMIN
 The system does not support large logarithms
 Set CONFIG MYADMIN
 Little of logarithms
 Row 64 and the system works correctly

yum list php

Installed Packages
php.i386                       5.2.10-1.el5.sme                        installed

 The problem with YUM
yum list installed php*
Loaded plugins: fastestmirror, priorities, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.isoc.org.il
 * smeaddons: ftp.nluug.nl
 * smeextras: ftp.nluug.nl
 * smeos: ftp.nluug.nl
 * smeupdates: ftp.nluug.nl
 * updates: mirror.isoc.org.il
base                                                     | 1.1 kB     00:00
smeaddons                                                | 1.9 kB     00:00
smeextras                                                | 2.3 kB     00:00
smeos                                                    | 2.1 kB     00:00
smeupdates                                               | 1.9 kB     00:00
updates                                                  | 1.9 kB     00:00
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Error: No matching Packages to list
« Last Edit: September 05, 2011, 09:16:08 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline mgb

  • ****
  • 558
  • +0/-0
Re: Installing php-mcrypt
« Reply #14 on: September 05, 2011, 09:20:36 AM »
yum list installed php\*
Excluding Packages from CentOS - updates
Finished
Installed Packages
php.i386                                 5.2.10-1.el5.sme              installed
php-bcmath.i386                          5.2.10-1.el5.sme              installed
php-cli.i386                             5.2.10-1.el5.sme              installed
php-common.i386                          5.2.10-1.el5.remi             installed
php-devel.i386                           5.2.10-1.el5.sme              installed
php-gd.i386                              5.2.10-1.el5.sme              installed
php-imap.i386                            5.2.10-1.el5.sme              installed
php-ldap.i386                            5.2.10-1.el5.sme              installed
php-mbstring.i386                        5.2.10-1.el5.sme              installed
php-mcrypt.i386                          5.2.10-1.el5.remi             installed
php-mhash.i386                           5.1.6-15.el5.centos.1         installed
php-mysql.i386                           5.2.10-1.el5.sme              installed
php-pdo.i386                             5.2.10-1.el5.sme              installed
php-pear.noarch                          1:1.4.9-6.el5                 installed
php-pear-Auth-SASL.noarch                1.0.2-4.el5.centos            installed
php-pear-Cache.noarch                    1.5.5-0.1.RC4.fc6.1           installed
php-pear-DB.noarch                       1.7.13-1.el5.centos           installed
php-pear-Date.noarch                     1.4.7-2.el5.centos            installed
php-pear-File.noarch                     1.2.2-1.el5.centos            installed
php-pear-HTTP.noarch                     1.4.0-7.el5                   installed
php-pear-HTTP-Request.noarch             1.4.2-1.el5.centos            installed
php-pear-Log.noarch                      1.9.13-1.el5.centos           installed
php-pear-MDB2.noarch                     2.4.1-2.el5.centos            installed
php-pear-Mail.noarch                     1.1.14-1.el5.centos           installed
php-pear-Mail-Mime.noarch                1.4.0-1.el5.centos            installed
php-pear-Net-DIME.noarch                 1.0.1-1.el5                   installed
php-pear-Net-FTP.noarch                  1.3.4-1.el5                   installed
php-pear-Net-SMTP.noarch                 1.2.10-1.el5.centos           installed
php-pear-Net-Socket.noarch               1.0.8-1.el5.centos            installed
php-pear-Net-URL.noarch                  1.0.15-1.el5.centos           installed
php-pear-SOAP.noarch                     0.11.0-2.el5                  installed
php-pear-Services-Weather.noarch         1.4.2-1.fc6                   installed
php-pear-XML-Parser.noarch               1.2.8-1.el5                   installed
php-pear-XML-Serializer.noarch           0.20.0-1.el5                  installed
php-pear-XML-Util.noarch                 1.1.4-3.el5                   installed
php-pecl-Fileinfo.i386                   1.0.4-3.el5.sme               installed
php-xml.i386                             5.2.10-1.el5.sme              installed
Thanks all for helping
Skype yosii2009