I would have thought that the installation of a node containing would include mcrypt. Not the case. It seems that so much is missing when loading a Virtuozzo container and then Plesk actually installs most of the modules.
What is a foolproof way of loading mycrypt. It always seems problematic.
Linux clss06.controlservers.net 2.6.32-042stab065.3 #1 SMP Mon Nov 12 21:59:14 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.3 (Final)
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd.
Loading Mcrypt
Re: Loading Mcrypt
It shouldn't be problematic. And it shouldn't be installed by default, as it is not needed in a minimal installation. Various option exists to install php-mcrypt from a supported yum repository. I recommend adding the EPEL repo and installing it from there, it's a very simple operation. Please read below for more details.
The EPEL yum repository for RHEL/CentOS 6 provides packages of php-mcrypt that work perfectly together with the stock RHEL/CentOS PHP packages.
1. Install the EPEL yum repository on your server: http://fedoraproject.org/wiki/EPEL
2. Install the php-mcrypt package:
Please note that if you have configured the Atomic yum repository, you have to make sure to exclude the php* packages if you want to keep using the PHP packages from the official CentOS channel.
Alternatively you can use the Atomic Rocket Turtle PHP packages, Atomic also provides the php-mcrypt packages in their yum channel. When you don't have a specific reason to switch to Atomic's packages, I recommend to stick with the stock RHEL/CentOS PHP packages. Although Atomic provides great packages and very frequent releases, it's nearly impossible to beat the QA of Red Hat.
Using Atomic (alternative option, only do this when you know what this means: you will be upgrading all PHP packages from the stock CentOS versions to the ART versions):
1. Configure the Atomic yum channel: https://www.atomicorp.com/channels/atomic/
2. Install the php-mcrypt package:.
The EPEL yum repository for RHEL/CentOS 6 provides packages of php-mcrypt that work perfectly together with the stock RHEL/CentOS PHP packages.
1. Install the EPEL yum repository on your server: http://fedoraproject.org/wiki/EPEL
2. Install the php-mcrypt package:
Code: Select all
yum install php-mcrypt
Alternatively you can use the Atomic Rocket Turtle PHP packages, Atomic also provides the php-mcrypt packages in their yum channel. When you don't have a specific reason to switch to Atomic's packages, I recommend to stick with the stock RHEL/CentOS PHP packages. Although Atomic provides great packages and very frequent releases, it's nearly impossible to beat the QA of Red Hat.
Using Atomic (alternative option, only do this when you know what this means: you will be upgrading all PHP packages from the stock CentOS versions to the ART versions):
1. Configure the Atomic yum channel: https://www.atomicorp.com/channels/atomic/
2. Install the php-mcrypt package:
Code: Select all
yum install php-mcrypt
Lemonbit Internet Dedicated Server Management
Re: Loading Mcrypt
Thank you for your help. Is this the output I should expect and should I rename php.rpmnew to php.ini?
Code: Select all
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.23-16.el6.art will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.23-16.el6.art for package: php-mcrypt-5.3.23-16.el6.art.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-22.el6 will be updated
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-xml-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-pdo-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-mbstring-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-imap-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-mysql-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-cli-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-gd-5.3.3-22.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-5.3.3-22.el6.x86_64
---> Package php-common.x86_64 0:5.3.23-16.el6.art will be an update
--> Running transaction check
---> Package php.x86_64 0:5.3.3-22.el6 will be updated
---> Package php.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-cli.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-cli.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-gd.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-gd.x86_64 0:5.3.23-16.el6.art will be an update
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.3.23-16.el6.art.x86_64
---> Package php-imap.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-imap.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-mbstring.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-mbstring.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-mysql.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-mysql.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-pdo.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-pdo.x86_64 0:5.3.23-16.el6.art will be an update
---> Package php-xml.x86_64 0:5.3.3-22.el6 will be updated
---> Package php-xml.x86_64 0:5.3.23-16.el6.art will be an update
--> Running transaction check
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================
Package Arch Version Repository Size
=================================================================================================================
Installing:
php-mcrypt x86_64 5.3.23-16.el6.art atomic 39 k
Installing for dependencies:
t1lib x86_64 5.1.2-6.el6_2.1 base 160 k
Updating for dependencies:
php x86_64 5.3.23-16.el6.art atomic 2.4 M
php-cli x86_64 5.3.23-16.el6.art atomic 2.3 M
php-common x86_64 5.3.23-16.el6.art atomic 900 k
php-gd x86_64 5.3.23-16.el6.art atomic 132 k
php-imap x86_64 5.3.23-16.el6.art atomic 68 k
php-mbstring x86_64 5.3.23-16.el6.art atomic 895 k
php-mysql x86_64 5.3.23-16.el6.art atomic 81 k
php-pdo x86_64 5.3.23-16.el6.art atomic 108 k
php-xml x86_64 5.3.23-16.el6.art atomic 159 k
Transaction Summary
=================================================================================================================
Install 2 Package(s)
Upgrade 9 Package(s)
Total download size: 7.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): php-5.3.23-16.el6.art.x86_64.rpm | 2.4 MB 00:00
(2/11): php-cli-5.3.23-16.el6.art.x86_64.rpm | 2.3 MB 00:00
(3/11): php-common-5.3.23-16.el6.art.x86_64.rpm | 900 kB 00:00
(4/11): php-gd-5.3.23-16.el6.art.x86_64.rpm | 132 kB 00:00
(5/11): php-imap-5.3.23-16.el6.art.x86_64.rpm | 68 kB 00:00
(6/11): php-mbstring-5.3.23-16.el6.art.x86_64.rpm | 895 kB 00:00
(7/11): php-mcrypt-5.3.23-16.el6.art.x86_64.rpm | 39 kB 00:00
(8/11): php-mysql-5.3.23-16.el6.art.x86_64.rpm | 81 kB 00:00
(9/11): php-pdo-5.3.23-16.el6.art.x86_64.rpm | 108 kB 00:00
(10/11): php-xml-5.3.23-16.el6.art.x86_64.rpm | 159 kB 00:00
(11/11): t1lib-5.1.2-6.el6_2.1.x86_64.rpm | 160 kB 00:00
-----------------------------------------------------------------------------------------------------------------
Total 1.0 MB/s | 7.2 MB 00:07
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 5ebd2744: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
Importing GPG key 0x5EBD2744:
Userid : Atomic Rocket Turtle <admin@atomicrocketturtle.com>
Package: atomic-release-1.0-16.el6.art.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : php-common-5.3.23-16.el6.art.x86_64 1/20
warning: /etc/php.ini created as /etc/php.ini.rpmnew
Updating : php-cli-5.3.23-16.el6.art.x86_64 2/20
Updating : php-pdo-5.3.23-16.el6.art.x86_64 3/20
Installing : t1lib-5.1.2-6.el6_2.1.x86_64 4/20
Updating : php-gd-5.3.23-16.el6.art.x86_64 5/20
Updating : php-mysql-5.3.23-16.el6.art.x86_64 6/20
Updating : php-5.3.23-16.el6.art.x86_64 7/20
Moving Zend extensions from php.ini to conf.d/zend_extensions_psa.ini and disabling custom ionCube if any... Removing php.ini backup files... done
Trying to register the ionCube loader... done
Updating : php-imap-5.3.23-16.el6.art.x86_64 8/20
Installing : php-mcrypt-5.3.23-16.el6.art.x86_64 9/20
Updating : php-xml-5.3.23-16.el6.art.x86_64 10/20
Updating : php-mbstring-5.3.23-16.el6.art.x86_64 11/20
Cleanup : php-mysql-5.3.3-22.el6.x86_64 12/20
Cleanup : php-5.3.3-22.el6.x86_64 13/20
Cleanup : php-cli-5.3.3-22.el6.x86_64 14/20
Cleanup : php-pdo-5.3.3-22.el6.x86_64 15/20
Cleanup : php-gd-5.3.3-22.el6.x86_64 16/20
Cleanup : php-mbstring-5.3.3-22.el6.x86_64 17/20
Cleanup : php-xml-5.3.3-22.el6.x86_64 18/20
Cleanup : php-imap-5.3.3-22.el6.x86_64 19/20
Cleanup : php-common-5.3.3-22.el6.x86_64 20/20
Verifying : php-cli-5.3.23-16.el6.art.x86_64 1/20
Verifying : php-imap-5.3.23-16.el6.art.x86_64 2/20
Verifying : php-mcrypt-5.3.23-16.el6.art.x86_64 3/20
Verifying : php-pdo-5.3.23-16.el6.art.x86_64 4/20
Verifying : t1lib-5.1.2-6.el6_2.1.x86_64 5/20
Verifying : php-5.3.23-16.el6.art.x86_64 6/20
Verifying : php-xml-5.3.23-16.el6.art.x86_64 7/20
Verifying : php-mysql-5.3.23-16.el6.art.x86_64 8/20
Verifying : php-mbstring-5.3.23-16.el6.art.x86_64 9/20
Verifying : php-common-5.3.23-16.el6.art.x86_64 10/20
Verifying : php-gd-5.3.23-16.el6.art.x86_64 11/20
Verifying : php-cli-5.3.3-22.el6.x86_64 12/20
Verifying : php-xml-5.3.3-22.el6.x86_64 13/20
Verifying : php-imap-5.3.3-22.el6.x86_64 14/20
Verifying : php-common-5.3.3-22.el6.x86_64 15/20
Verifying : php-5.3.3-22.el6.x86_64 16/20
Verifying : php-mysql-5.3.3-22.el6.x86_64 17/20
Verifying : php-pdo-5.3.3-22.el6.x86_64 18/20
Verifying : php-gd-5.3.3-22.el6.x86_64 19/20
Verifying : php-mbstring-5.3.3-22.el6.x86_64 20/20
Installed:
php-mcrypt.x86_64 0:5.3.23-16.el6.art
Dependency Installed:
t1lib.x86_64 0:5.1.2-6.el6_2.1
Dependency Updated:
php.x86_64 0:5.3.23-16.el6.art php-cli.x86_64 0:5.3.23-16.el6.art
php-common.x86_64 0:5.3.23-16.el6.art php-gd.x86_64 0:5.3.23-16.el6.art
php-imap.x86_64 0:5.3.23-16.el6.art php-mbstring.x86_64 0:5.3.23-16.el6.art
php-mysql.x86_64 0:5.3.23-16.el6.art php-pdo.x86_64 0:5.3.23-16.el6.art
php-xml.x86_64 0:5.3.23-16.el6.art
Complete!
Re: Loading Mcrypt
Do I need to restart the server inside of Virtuozzo? The PHP version numbers don't match. Parallels regularly cautions about using the Atomic repo (without giving a reason) and it scares me. PHP says that I am running 5.3.23 while Plesk says I am running 5.3.3-22.el6. I pray that I haven't made the matter worse.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Loading Mcrypt
You always have to restart a daemon when you change it in order for it to take effect.
PS- Every time parallels says something about not using the atomic repo I vote against increasing their stock option pool.
PS- Every time parallels says something about not using the atomic repo I vote against increasing their stock option pool.
Re: Loading Mcrypt
Thank you again! Is there a particular daemon that should be restarted, and if not done using "service xyz restart" how?
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Loading Mcrypt
The apache daemon: service httpd restart