LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-06-2007, 02:11 PM   #1
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
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
 
Old 07-06-2007, 02:57 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
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 03:00 PM.
 
Old 07-06-2007, 03:38 PM   #3
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
thanks should make things easier
 
Old 04-23-2008, 07:09 AM   #4
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
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
 
Old 04-23-2008, 11:34 PM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Quote:
Originally Posted by Carpo View Post
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.
 
Old 04-24-2008, 03:49 AM   #6
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
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
 
Old 04-24-2008, 05:13 AM   #7
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
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 05:24 AM.
 
Old 04-24-2008, 06:03 AM   #8
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 246
Blog Entries: 2

Rep: Reputation: 28
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 06:04 AM.
 
Old 04-24-2008, 08:32 AM   #9
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
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).
 
Old 04-24-2008, 08:57 AM   #10
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
AuthType Basic
AuthName "Area 51a"
AuthUserFile /etc/apache/paswd/paswd
<Limit GET PUT POST>
require user xxxx
</Limit>

something along those lines
 
Old 04-24-2008, 10:37 AM   #11
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Quote:
Originally Posted by Carpo View Post
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).
 
Old 04-24-2008, 12:45 PM   #12
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
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
 
  


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
How to install php extension? strangevarius Suse/Novell 0 04-11-2007 07:17 AM
php extension for postgresql xrado Slackware 3 12-06-2005 10:31 AM
PHP Extension for session_id tunasashimi Linux - Software 11 10-04-2005 04:46 AM
Mysql Php Extension SilentK Linux - Newbie 11 06-11-2004 09:47 AM
Build PHP extension. ugenn Linux - Software 1 11-05-2003 06:34 AM


All times are GMT -5. The time now is 06:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration