Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-06-2007, 01:11 PM
|
#1
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Rep:
|
php and mycrypt extension
slack12 is up and working and i just have to sort out the webserver, after installing phpmyadmin i notice at the bottom of the page it keeps saying it cant load mycrypt extension - after checking its because the php on slack12 wasnt compiled with support for it, main question is, is it required or it safe to ignore, webserver only going to be on lan and not public so will only be me and a few other people
|
|
|
|
07-06-2007, 01:57 PM
|
#2
|
|
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Arch64,Slackware64 -current
Posts: 1,134
Rep:
|
Quote:
|
Originally Posted by Carpo
slack12 is up and working and i just have to sort out the webserver, after installing phpmyadmin i notice at the bottom of the page it keeps saying it cant load mycrypt extension - after checking its because the php on slack12 wasnt compiled with support for it, main question is, is it required or it safe to ignore, webserver only going to be on lan and not public so will only be me and a few other people
|
I had the same error when I compiled php-5.2.3 for slack 11. phpmyadmin probably gives that error because of ciphers used in account authentication during login (BlowFish and/or DES) and those are supported by php via mcrypt. But I am no expert so I may be totally wrong on this one.
The errors that I got seemed harmless but I just went ahead and compiled mcypt and libmcrypt for slack 11. I have a slackbuild for it ready, if you want to use it. I'll post it somewhere and provide a link to it later...i'm at work right now  . As far as I remember, you need to sligthly modify's Pat's php.SlackBuild to make php aware of mcrypt.
More info at http://php.net/mcrypt
Last edited by tuxrules; 07-06-2007 at 02:00 PM.
|
|
|
|
07-06-2007, 02:38 PM
|
#3
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
thanks should make things easier 
|
|
|
|
04-23-2008, 06:09 AM
|
#4
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
a bump and a half on this one, but seeing as i have some free time and that slackware 12.1 is around the corner i thought i would see if i can get it working on slack12 so my upgrade (or reinstall because i never yet managed to do an upgrade without cocking it up  ) to slack12.1 should be a breeze, but every site, wiki, and build script i have tried to get this to work just wont, if i recompile php as many sites say mysql wont load (and yes i have checked the file is there and is uncommented in php.ini).
So is there some kind and brainy person out there that can show me the right way to get this working ?
Thanks
|
|
|
|
04-23-2008, 10:34 PM
|
#5
|
|
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Arch64,Slackware64 -current
Posts: 1,134
Rep:
|
Quote:
Originally Posted by Carpo
So is there some kind and brainy person out there that can show me the right way to get this working ?
|
Typically you install libmcrypt first then install mcrypt and then modify php build script so php configure script can find it and then build and reinstall php.
I've tested the build script for both libmcrypt and mcrypt a few minutes back and they compiled without glitches. I'm running -current right now so I tested on that but I also run 12.0 on server and no problems there too. If you want you can use my slackbuilds at the url below:
http://www.mnspace.net/slackbuilds/slack12.0/
For php, i'm using the following configure option
Code:
--with-mcrypt=shared,/usr/bin
Hope it works for you.
|
|
|
|
04-24-2008, 02:49 AM
|
#6
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
ah - that looks a bit of a different way to add mcrypt to php build script, think i was using /usr/lib
thanks will try it later 
|
|
|
|
04-24-2008, 04:13 AM
|
#7
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
i have done exactly as you said, and i have noticed that the php i have built using pats php slack build differs from the one that comes with slackware - there are more .so files in the extensions dir than the php i have built, and still i get the error about not being able to load mcrypt extension
edit: and other pages wont load :/ - wonder if its because i commented out one line due to an error in configure stage
Last edited by Carpo; 04-24-2008 at 04:24 AM.
|
|
|
|
04-24-2008, 05:03 AM
|
#8
|
|
Member
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 214
Rep:
|
Before I got through rebuilding php, just how important is mcrypt for phpmyadmin? I like being able to use phpmyadmin, but 99% of my work will be done sitting next to the computer. The other 1% will be done via vnc.
-JJ
Last edited by jjthomas; 04-24-2008 at 05:04 AM.
|
|
|
|
04-24-2008, 07:32 AM
|
#9
|
|
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
|
Then you could just change the .htaccess file for phpmyadmin and only allow people on localhost to connect with password . That should make it pretty safe .. even without mcrypt.
I don't remember how to do this with .htaccess ( I think I had read it somewhere, but google is your friend).
|
|
|
|
04-24-2008, 07:57 AM
|
#10
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
AuthType Basic
AuthName "Area 51a"
AuthUserFile /etc/apache/paswd/paswd
<Limit GET PUT POST>
require user xxxx
</Limit>
something along those lines
|
|
|
|
04-24-2008, 09:37 AM
|
#11
|
|
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Arch64,Slackware64 -current
Posts: 1,134
Rep:
|
Quote:
Originally Posted by Carpo
i have done exactly as you said, and i have noticed that the php i have built using pats php slack build differs from the one that comes with slackware - there are more .so files in the extensions dir than the php i have built, and still i get the error about not being able to load mcrypt extension 
|
since you are now compiling with mcrypt, there is will a mcrypt.so file. I believe you still get errors (if you are following my script) because the script doesn't include support for dynamic module loading. I had to actually restart apache to get rid of errors even after I installed mcrypt and php (oh BTW there's option in php.ini to enable mcrypt extension).
|
|
|
|
04-24-2008, 11:45 AM
|
#12
|
|
Member
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364
Original Poster
Rep:
|
i am using pat v's script for php so i would assume all the modules that ship with slackwares version of php should be compiled when i use his script with the change for mcrypt
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|