Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: brianr on August 11, 2011, 04:47:47 PM

Title: Installing php-mcrypt
Post by: brianr 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?
Title: Re: Installing php-mcrypt
Post by: Stefano on August 11, 2011, 06:46:57 PM
configure the Epel (http://wiki.contribs.org/epel) repo (adjust the sintax for el5) and then

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

not tested, should work
HTH
Title: Re: Installing php-mcrypt
Post by: mdo on August 11, 2011, 08:23:42 PM
I use this:
http://bugs.contribs.org/show_bug.cgi?id=6468
Title: Re: Installing php-mcrypt
Post by: brianr on August 12, 2011, 01:26:27 PM
I use this:
http://bugs.contribs.org/show_bug.cgi?id=6468

thanks to all, the info in here:

http://bugs.contribs.org/show_bug.cgi?id=6468#c14

worked a treat.
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: mmccarn on September 02, 2011, 01:30:31 PM
Just a guess, but maybe:
Code: [Select]
yum --enablerepo=remi update
Title: Re: Installing php-mcrypt
Post by: Stefano 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)
Title: Re: Installing php-mcrypt
Post by: mmccarn 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
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: johnp 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.
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: johnp on September 05, 2011, 12:05:33 AM
Please show a

Code: [Select]
yum list installed php*
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: mgb 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
Title: Re: Installing php-mcrypt
Post by: johnp on September 06, 2011, 08:00:46 AM
Since you have the 2 remi files, the repo wants you to have the .sme version on the php-common.

You could exclude that file or try using --skip-broken to work around the problem
Title: Re: Installing php-mcrypt
Post by: mgb on September 06, 2011, 01:45:01 PM
I'm not interested
 Derange
 It works php
 Good hope?
 If you think that I must
 Make the change
 I'd like more detailed help
 She meant to remove the php-command
 And install the package of SME
Title: Re: Installing php-mcrypt
Post by: mgb on September 07, 2011, 01:54:47 PM
  [root@server8b6 ~]# yum --enablerepo=remi update php-mcrypt
Loaded plugins: fastestmirror, priorities, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: ftp.cc.uoc.gr
 * smeaddons: mirror.chiropratique.org
 * smeextras: mirror.chiropratique.org
 * smeos: mirror.chiropratique.org
 * smeupdates: mirror.chiropratique.org
 * updates: ftp.cc.uoc.gr
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i386 0:5.3.8-1.el5.remi set to be updated
--> Processing Dependency: php-common = 5.3.8-1.el5.remi for package: php-mcrypt
--> Running transaction check
---> Package php-common.i386 0:5.3.8-1.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version                     Repository    Size
================================================================================
Installing:
 php-common         i386         5.3.8-1.el5.remi            remi         980 k
     replacing  php-pecl-Fileinfo.i386 1.0.4-3.el5.sme

Updating:
 php-mcrypt         i386         5.3.8-1.el5.remi            remi          45 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
php-common is needed by (installed) php-mysql-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-imap-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-xml-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-pdo-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-gd-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-ldap-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-bcmath-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-mbstring-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-cli-5.2.10-1.el5.sme.i386
php-common is needed by (installed) php-5.2.10-1.el5.sme.i386
Complete!
(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'])
Title: Re: Installing php-mcrypt
Post by: johnp on September 08, 2011, 12:08:41 AM
You need to tell us what you are trying to accomplish and/or what is not working. It appeared that you had a working mcrypt setup but that my not be the case.
Title: Re: Installing php-mcrypt
Post by: mgb on September 08, 2011, 09:38:57 AM
  Thank you for your attention and patience

 I'm using a server
 Use
 joomla multiple
 myadmin
 Mail Volume
 And multiple domain names
 I need the site server will work optimally
 Due to large load
 So I need that php would work with full support
 I'd love any recommendations on
 Translated hope this course