LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2019, 07:17 AM   #1
Linuxfan1978
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Rep: Reputation: Disabled
Installing mcrypt in Slackware 14.2


Hi all,

I have a question.
A friend of mine has installed a fresh installation of Slackware 14.2.
At the moment I was busy installing Magento 2 on it but I got the message I was missing Mcrypt. So.. I installed it via this link https://slackware.pkgs.org/14.2/slac...lonly.txz.html

Package was installed restarted Apache but still it wasn't showing any mcrypt extension in phpinfo.

What am I doing wrong?

Br,

Steve
 
Old 04-19-2019, 08:24 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,754

Rep: Reputation: Disabled
the mcrypt extension is already built-in in slackware 14.2's php via the provided libmcrypt package, you don't need an additional mcrypt one: just create an info.php file in your DocumentRoot, paste this content
Code:
<?php phpinfo(); ?>
and then load it in the browser (here I assume the address of the server is "localhost")
Code:
http://localhost/info.php
with the default /etc/php.ini you should see the mcrypt extension as enabled.

if you don't maybe you are missing some dependencies: is that a full installation of Slackware?
Attached Thumbnails
Click image for larger version

Name:	screen.png
Views:	13
Size:	29.6 KB
ID:	30382  

Last edited by ponce; 04-19-2019 at 08:35 AM.
 
Old 04-19-2019, 08:37 AM   #3
Linuxfan1978
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Ponce,

Thanks for the reply.

It's a full install of Slackware 14.2.
PHP 7.2

I checked the php info before I installed the package. It wasn't active so I assumed it wasn't installed.

Where can I check for the relevant dependencies?

Thanks in advance,

Br,

Stevan
 
Old 04-19-2019, 09:37 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,754

Rep: Reputation: Disabled
php 7.2 is not included in slackware 14.2: where have you installed it from?

try to build it from source using the script from current

ftp://ftp.slackware.com/pub/slackwar.../source/n/php/

Quote:
Originally Posted by Linuxfan1978 View Post
Where can I check for the relevant dependencies?
Slackware doesn't offer a way of resolving dependencies, it's basically up to you if you choose to do a partial installation.

Last edited by ponce; 04-19-2019 at 09:42 AM.
 
Old 04-20-2019, 11:25 AM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 928

Rep: Reputation: 172Reputation: 172
As far as I know the mcrypt support was removed by PHP 7 developers long time ago.

.
 
Old 04-20-2019, 05:03 PM   #6
Linuxfan1978
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi zk1234,

Yes, that's what I read on the internet too and that was my reason to install it.
The package has been installed but I don't see any Mcrypt values in php info.

After installing the package from https://slackware.pkgs.org/14.2/slac...lonly.txz.html what do I need to do
to activate the package?

Br,

Steve
 
Old 04-21-2019, 01:01 AM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,754

Rep: Reputation: Disabled
like zk1234 wrote, php devs removed mcrypt support from php-7.2 and substituted it with libsodium

https://wiki.php.net/rfc/mcrypt-viking-funeral
https://wiki.php.net/rfc/libsodium

if you really want it (read the first link above for why is not a good idea) you don't need mcrypt at all but libmcrypt already in Slackware and you can install via PECL with "pecl install mcrypt-1.0.2".

but consider that magento supports php-7.2 just fine from version 2.3.x, so it shouldn't need the mcrypt extension at all.

Last edited by ponce; 04-21-2019 at 01:20 AM.
 
Old 04-21-2019, 06:57 AM   #8
Linuxfan1978
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Ponce,

First of all, Happy Easter to all.

Thanks for the reply again.

At the moment I'm developing a Magento 2.2.7 webshop and it still needs Mcrypt.
I will look into the libsodium ;-)

You might amaze yourself when it comes to Magento 2.3.x and it's predecessors.
Everytime they tell you bugs will be fixed or is so and so compatible it's not.

The reason because I still work with M2 is because I hope they can get a good enough version on the market we all can work with.
Up until now I'm not impressed with it. My background is M1, Wordpress and Joomla.

Thank you so much for looking into this.

I'll let you know if it works.

Btw, how can I uninstall the other Mcrypt package?

Br,

Steve
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get install php5-mcrypt does not create php5/conf.d/mcrypt.ini: Can't continue Kgeil Linux - Server 5 09-04-2015 12:57 PM
[SOLVED] Linux Slackware + phpMyAdmin + mcrypt does'nt work! Shakin_Aleksey Slackware 13 02-14-2011 07:02 AM
mcrypt extension error while using phpMyAdmin on Slackware 12.2 dizzi Slackware 5 01-19-2009 05:41 PM
problem installing mcrypt marvelade Linux - General 3 03-30-2007 10:28 AM
Encounter problems when installing mcrypt chu2654 Linux - Server 1 11-19-2006 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration