[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: include the mcrypt module of php



Ok thanks, it seems to be the correct way, but i when i has do it i has now
the problem:

/etc/init.d/apache restart

Reloading apache modulesPHP Warning:  Unknown(): Unable to load dynamic
library '/usr/lib/php4/20020429/mcrypt.so' -
/usr/lib/php4/20020429/mcrypt.so: cannot open shared object file: No such
file or directory in Unknown on line 0

So, i has do a locate mcrypt.so but i has not found it, why do not has been
installed this library on my system with the apt-get install php4-mcrypt?

Thanks in advance.

Francisco Castillo.





----- Original Message -----
From: "Achim Schmidt" <schmidt@waaf.net>
To: "Francisco Castillo" <fcastillo@hostgreen.com>
Cc: <debian-isp@lists.debian.org>
Sent: Saturday, October 23, 2004 5:40 PM
Subject: Re: include the mcrypt module of php


What about:

- apt-get install php4-mcrypt
- check if "extension=mcrypt.so" was added to /etc/php4/apache/php.ini
- restart apache

now your php should know of mcrypt functions.

good luck,

achim

Am Sa, 2004-10-23 um 17.32 schrieb Francisco Castillo:
> Hello,
>
> I has try to call the mcrypt functions on a my PHP Version
> 4.3.7-dotdeb + APACHE + DEBIAN WOODY System.
> ........................
>
>    $td = mcrypt_module_open('tripledes', '', 'ecb', '');
>    $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
>    mcrypt_generic_init($td, $llave, $iv);
>    $datos_cifrados = mcrypt_generic($td, $entrada);
>    mcrypt_generic_deinit($td);
>    mcrypt_module_close($td);
> ........................
>
> But the execution of this script give me the error
>
> Fatal error: Call to undefined function: mcrypt_module_open() in
>
> It seems that my php has no mcrypt module linked, so php.net saids me
> to :
>
> ..................To use it, download libmcrypt-x.x.tar.gz
> ..................
> and then
> ..................
> You need to compile PHP with the --with-mcrypt[=DIR] parameter to
> enable this extension. DIR is the mcrypt install directory. Make sure
> you compile libmcrypt with the option --disable-posix-threads.
> ..................
>
> So i do a "apt-get install libmcrypt4" and installed the libmcrypt in
> the system and then i has seen on my phpinfo() that
>
> Configure Command
> ..................--with-mcrypt=shared,/usr'..........
>
> but the problem go on. So I ask to resolver my problem :
>
> Should i recompile my php in order to support mcrypt using
> the--with-mcrypt[=DIR] ?
> How could i do this recompile procedure, could i do it with apt?
> Is there another way to resolve my problem?
>
> Thanks in advance,
>
> Francisco Castillo.
>
>
>




Reply to: