Find the answer to your Linux question:
Results 1 to 9 of 9
I am running PHP version 5.3.3 on CentOS 64bit running Plesk 10.3.1. I am trying to install Mcrypt but i am having troubles doing so. I tried to do the ...
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5

    Installing MCrypt

    I am running PHP version 5.3.3 on CentOS 64bit running Plesk 10.3.1. I am trying to install Mcrypt but i am having troubles doing so. I tried to do the following and this is what i got.


    Code:
    [root(at)u15812553 etc]# yum install php-mcrypt.x86_64
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 s                                                                        et to be updated
    --> Processing Dependency: php-api = 20041225 for packag                                                                        e: php-mcrypt
    --> Processing Dependency: php >= 5.1.6 for package: php                                                                        -mcrypt
    --> Running transaction check
    ---> Package php.x86_64 0:5.1.6-27.el5_5.3 set to be upd                                                                        ated
    --> Processing Dependency: php-cli = 5.1.6-27.el5_5.3 fo                                                                        r package: php
    ---> Package php-common.x86_64 0:5.1.6-27.el5_5.3 set to                                                                         be updated
    --> Running transaction check
    ---> Package php-cli.x86_64 0:5.1.6-27.el5_5.3 set to be                                                                         updated
    --> Processing Conflict: php53-common conflicts php-comm                                                                        on
    --> Finished Dependency Resolution
    php53-common-5.3.3-1.el5_6.1.x86_64 from installed has d                                                                        epsolving problems
      --> php53-common conflicts with php-common
    Error: php53-common conflicts with php-common
     You could try using --skip-broken to work around the pr                                                                        oblem
     You could try running: package-cleanup --problems
                            package-cleanup --dupes
                            rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils pa                                                                        ckage.

    Can anyone tell me what i am doing wrong?

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    I assume by your package versions that you're running CentOS 5.7 - can you confirm?

    Taking a quick look at the 5.7 repo, it appears that there are two versions of PHP packages, those based upon 5.1.6 and those based upon 5.3.3. All the packages based upon the latter start with php53-, and those based upon the former start with php-. I don't know this for sure, but perhaps the two cannot coexist? Can you remove the 5.1.6-based PHP packages? You can always reinstall them if you need them.

    To get a list of 5.1.6 packages, you can do:
    Code:
    rpm -qa|grep ^php-
    To test removing them:
    Code:
    rpm -e --test `rpm -qa|grep  ^php-`
    To remove them, obviously take out the --test flag. You might need to add the --nodeps flag, too. You could always use the --justdb flag too, which would only remove them from the RPM database, and would leave the actual files in place, but that might spell trouble with php53, don't know...

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    I am runing CentOS 5 with Parallels Plesk Panel 10.3.1 (64-bit). When i run the rpm -qa|grep ^php- command, it takes 1 second and then returns me to the same command prompt

    [root(at)u15812553 etc]#

  4. #4
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Do this to show your exact CentOS version:
    Code:
    cat /etc/redhat-release
    I don't see the package php-mcrypt in the official CentOS repos - ah, i see it in "Extras" - is that where you are getting it? There is a 5.1.6 version in there (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), but not a 5.3.3 version, which is the version of php that you have installed.

    The php-mcrypt package is built from the php-extras SRPM, but again, I don't see such a source RPM for php 5.3.3.

  5. #5
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    Ok i am currently re-imaging my server which should be done shortly. Thought i would start from scratch again. So the mcrypt version must be the exact version as the php version installed ie: in my case the mcrypt should be version 5.3.3?

  6. #6
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Yes, but if you are starting from scratch, and you don't *need* to use version 5.3.3 of PHP, then I would stick with the default version, 5.1.6, since that is the only version that includes the php-mcrypt package (in the Extras repo) that you appear to need.

    EDIT: so as for yum commands, something like this oughta (not tested!) work:
    Code:
    yum --enablerepo=centos-extras install php-*
    Last edited by atreyu; 09-22-2011 at 04:54 PM. Reason: yum commands

  7. #7
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    I see what you are saying but i need at least 5.2 or higher for my store magento software to run

  8. #8
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    You can use the packages from the EPEL repo. It is trustworthy (run by the RH/Fedora folks). See the package list here (php53-mcrypt is in there):

    Index of /pub/epel/5Server/i386

    See how to enable the repo here

    EDIT: fixed URL typo
    Last edited by atreyu; 09-22-2011 at 05:07 PM. Reason: fixed typo

  9. #9
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    Not Found

    The requested URL /pub/epel5/5Server/i386/ was not found on this server. on that link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...