Author Topic: mcrypt  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

« on: March 06, 2018, 10:17:34 PM »
Ok , so i tray to install mcrypt. neeed for some frameworks.

I do with centos 7

1. SSH to VPS as the root user.

Install the the latest "EPEL" repo:

Code: [Select]
yum install epel-release
Install "php-mcrypt":

yum install php-mcrypt Here's an output:

Code: [Select]
[root@ws1 ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package      Arch      Version        Repository  Size
 php-mcrypt   x86_64    5.4.16-3.el7   epel        20 k

Transaction Summary
Install  1 Package

Total download size: 20 k
Installed size: 48 k
Is this ok [y/d/N]: y
Downloading packages:
php-mcrypt-5.4.16-3.el7.x86_64.rpm     |  20 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php-mcrypt-5.4.16-3.el7.x86_64         1/1
  Verifying  : php-mcrypt-5.4.16-3.el7.x86_64         1/1

  php-mcrypt.x86_64 0:5.4.16-3.el7                                                                                                                                       


Restart Apache to apply the changes:
Code: [Select]
systemctl restart httpd
added to php.ini file
Code: [Select]
And wont work.
« Last Edit: March 06, 2018, 10:19:25 PM by neoart »

Re: mcrypt
« Reply #1 on: March 06, 2018, 10:34:41 PM »
You need to goto:
PHP Version Switcher

Select PHP 7.1

and add the tick for mycrypt and rebuild PHP 7.1 it can take up to 15 min

Re: mcrypt
« Reply #2 on: March 08, 2018, 01:19:45 PM »
Configure Command:
Code: [Select]
./configure' '--with-config-file-path=/usr/local/php' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-fpm' '--enable-mbstring' '--enable-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-tidy' '--with-curl' '--with-mcrypt' '--with-iconv' '--with-gmp' '--with-pspell' '--with-gd' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-pdo-mysql=/usr' '--with-gettext=/usr' '--with-bz2=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-pcre-regex' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-imap' '--with-imap-ssl' '--with-pgsql=/usr/lib64/pgsql'

So with --with-mcrypt

And i rebuild PHP Version 7.2.1
After 30+ min. when rebuild is done restart server.

On phpinfo i see just command for rebuild.

On my other VPS (php 5.6.24) Centos 6 with centos web panel server i install mcrypt like i describe on first post.
and in phpinfo i see
So there must be some errors

Re: mcrypt
« Reply #3 on: March 12, 2018, 10:46:28 PM »
I say again use 7.1.29

Not 7.2