LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Linux Slackware + phpMyAdmin + mcrypt does'nt work! (https://www.linuxquestions.org/questions/slackware-14/linux-slackware-phpmyadmin-mcrypt-doesnt-work-862008/)

Shakin_Aleksey 02-11-2011 04:49 AM

Linux Slackware + phpMyAdmin + mcrypt does'nt work!
 
Hello All!

There was a thread about this problem in this forum but it has not helped me.
PhpMyAdmin gives the message: "Cannot load mcrypt extension. Please check your PHP configuration."
I compiled libmcrypt, mcrypt and php with appropriate SlackBuilds, and, when it did not help, tried varios variants of the set. All the same it does not work.
May be somebody knows what exactly must be done? A key, that must go with a configure script, or something like that.

Thanks in advance.

ponce 02-11-2011 05:18 AM

works fine here with the defaults (but I'm on current), maybe it depends on your setup:
- which version of slackware are you using?
- have you installed phpmyadmin from slackbuilds.org? maybe you need also the mcrypt package from there (no libmcrypt).
- why are you rebuilding php?

Shakin_Aleksey 02-11-2011 07:23 AM

I've tried distributiv versions 11.1 and 12.2, with the same result.
No, from phpMyAdmin official web site. That may be an idea!
That was the method:
http://www.linuxquestions.org/questi...12-2-a-692117/

ponce 02-11-2011 07:33 AM

you don't have to follow that thread, it's old.

if you are starting from scratch install latest stable slackware and then mcrypt and phpmyadmin from slackbuilds.org (read notes in their README).
not really sure if mcrypt is needed, on -current it works fine without it.

mRgOBLIN 02-11-2011 02:25 PM

I think you'll find that mcrypt has been included since 13.0

ponce 02-11-2011 10:43 PM

oops :)

ponce 02-13-2011 01:30 AM

tried to put down some small suggestions on a basic LAMP setup.

mRgOBLIN 02-13-2011 02:05 AM

I've had this up for a while.
http://connie.slackware.com/~mrgobli...kware-lamp.php

Not a big fan of phpmyadmin myself but each to their own I guess.

ponce 02-13-2011 02:26 AM

thanks mrgoblin, much more exhaustive than my notes: I linked it in the post. :)

Shakin_Aleksey 02-14-2011 04:30 AM

I've got a server working under Slackware 11.1, but the oldest version of phpMyAdmin on slackbuilds.org is for Slackware 12.2. I've tried it on my server (along with mcrypt for the same 12.2 version) and it still doesn't work.
What exactly I did:
Downloaded the latest phpMyAdmin(followed the link for 12.2 version) and appropriate slackbuild script from slackbuilds.org, compiled it and copied to the apropriate directory;
Did the same for the appropriate mcrypt;
Compiled and installed mcrypt.so module for php (By the way, does anybody know how to see if a module really is loaded?).
There are many running services on my server and I do not want to try to upgrade it to a latter version.
If somebody has any farther suggestions how to get it working, I'd be very grateful!

ponce 02-14-2011 04:37 AM

shakin, please can you clarify which slackware version your server is running? I'm asking because slackware 11.1 has never been released. ;)

Code:

cat /etc/slackware-version

Shakin_Aleksey 02-14-2011 05:14 AM

Quote:

Originally Posted by ponce (Post 4257735)
shakin, please can you clarify which slackware version your server is running? I'm asking because slackware 11.1 has never been released. ;)

Code:

cat /etc/slackware-version

Exactly from there:

Slackware 11.1.0

ponce 02-14-2011 05:23 AM

Code:

php -i |grep "Stream Filters"
should show something like
Code:

Registered Stream Filters => mcrypt.*, mdecrypt.*, bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, zlib.*

Shakin_Aleksey 02-14-2011 07:02 AM

I've resolved it. The problem was - php did not read php.ini, and a few last changes just did not take efect. A little extra work has been done too. :)
Thanks too all!


All times are GMT -5. The time now is 09:44 AM.