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 12-21-2008, 06:56 PM   #1
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Slackware, Mepis LiveCD
Posts: 146

Rep: Reputation: 15
mcrypt extension error while using phpMyAdmin on Slackware 12.2


I have just installed phpMyAdmin 3.1.1 on Slackware 12.2 and noticed this error message when it is started:

"Cannot load mcrypt extension. Please check your PHP configuration"

Evidently, The the extension was not compiled in the PHP version used on Slack.

1. Is there a version available for download with the extension built-in?
2. Is there a way to supress the error message?
3. Can the required extensions(s) be built separately and configured for
use with the current php version? If so I would appreciate a
guide.

Regards
 
Old 12-22-2008, 07:52 AM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
there is a slackbuild for mcrypt at slackbuilds.org http://slackbuilds.org/repository/12...ies/libmcrypt/ build that and install it then you will likely have to rebuild php.
 
Old 12-22-2008, 11:44 AM   #3
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Slackware, Mepis LiveCD
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks mRgOBLIN. I have already done so along with building and installing mcrypt. However errors are being generated while attempting to re-build PHP. I have created a thread relating to this issue which can be found there http://www.linuxquestions.org/questi...k-12.2-692250/.

Regards
 
Old 12-23-2008, 09:46 AM   #4
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Slackware, Mepis LiveCD
Posts: 146

Original Poster
Rep: Reputation: 15
Ok I have managed to solve this issue have presented the methodology below:

1. Download libmcrypt-2.5.8.tar.bz2 and mcrypt-2.6.8.tar.gz from http://sourceforge.net/project/showf...group_id=87941

2. Download SlackBuilds for these sources at http://slackbuilds.org/repository/12...ies/libmcrypt/ &
http://www.mnspace.net/slackbuilds/slack12.1/ respectively. The Slack 12.1 edition of the second Slackbuild works fine but
it needs to be updated to reflect the new mcrypt version as follwows: "VERSION=2.6.8".

Note: The latter SlackBuild site above can be a bit slow and even fails to load at times. Another one can be
found there http://repository.slacky.eu/slackwar...ypt/2.6.7/src/. However, I did not test this SlackBuild.


3. Build libmcrypt-2.5.8.tar.bz2 (./libmcrypt.SlackBuild) and install the resultant package then do the same for mcrypt-2.6.8.tar.gz.

4. Copy the "php" and "alpine" source directories from the Slackware installation media and place them in the "/tmp"
directory. I placed the contents of my "php" source directory in "/tmp/build", however the "alpine" directory needs to be in placed directly in temp "/tmp" (giving /tmp/alpine).

5. Edit "php.SlackBuild" (located in the "php" sources) by adding "--with-mcrypt=shared,/usr/bin \" (without the quotes)
in the list of "configure" prefixes. I placed mine just before before "--build=$ARCH-slackware-linux".

6. Open a virtual terminal, change directory to your php sources "/tmp/build/" in my case, change to root and run
"./php.SlackBuild". At some point during the initial alpine build, you may be asked to whether you wish to continue.
Select "y" to proceed. On a 1.83 Centrino Duo, the duration of the build was about 20 minutes. At the end of a
successful process, there should be "alpine-2", "imapd-2" and "php-5.2.8" packages in the "/tmp" directory.
Confirm that there is a "mcrypt.so" module in "/tmp/package-php/usr/lib/php/extensions"

7. Stop the Apache server (apachectl stop) remove your previous php package and install the newly built version.

8. Edit "/etc/httpd/php.ini" by adding "extension=mcrypt.so" in the list of "Dynamic Extensions".

9. Restart the Apache server (apachectl start).

10. Open phpMyAdmin. The "Cannot load mcrypt extension. Please check your PHP configuration" error message should no
longer be displayed.

Regards

Last edited by dizzi; 12-23-2008 at 06:18 PM.
 
Old 12-27-2008, 07:20 AM   #5
TCke
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
It seems there is a link somewhere to Xorg packages while building php,
if you get an error about libXpm(.a|.so) you need to install the packages in the x folder of your slackware media.

After that you can start php.SlackBuild again.

Regards,

TCke
 
Old 01-19-2009, 06:41 PM   #6
ibacsoft
LQ Newbie
 
Registered: Jan 2009
Posts: 1
Blog Entries: 2

Rep: Reputation: 0
I recompiled php without alpine, it complained with an error and couldn`t make the package, but I went to the php-5.2.5 source tree, cd to ext/mcrypt and compiled it, and then copied the mcrypt.so file to /usr/lib/php/extensions, and the error message in phpMyAdmin disappeared. My question is: why canīt you use on Slackware a simple solution like Ubuntu, Red Hat or Debian Linux, where you can install only the php5-mcrypt extension or an rpm package, restart apache and that's all?
 
  


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
Cannot load mcrypt extension. Please check your PHP configuration. RMLinux Red Hat 6 07-29-2010 04:18 PM
phpMyAdmin complaining about mbstring and mcrypt sneakyimp Linux - Software 4 10-18-2007 11:30 AM
phpMyAdmin - Cannot load mySQL extension blizunt7 Linux - Software 3 10-09-2007 10:32 AM
PhpMyAdmin can't load mysql extension? stermarc Linux - Server 7 10-18-2006 03:43 PM
phpmyadmin cannot load mysql extension mandrake 10.1 oneride21 Linux - Newbie 1 10-08-2004 10:40 AM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration