Koozali.org: home of the SME Server

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #30 on: January 27, 2005, 11:06:27 PM »
...expand the templatw with:

/sbin/e-smith/expand-template /etc/php.ini

...then maybe check the /etc/php.ini has the change you made.

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #31 on: January 27, 2005, 11:31:45 PM »
I think you are right - I think you need this:
http://mirror.contribs.org/smeserver/contribs/cgenner/RPMS/i386/libmcrypt-2.5.7-1ld.i386.rpm

See some (old) info here php-mcrypt here:
http://rpms.troels.arvin.dk/php/rh72/i686/?describe=php-mcrypt
...that says you need libmcrypt

..and maybe you don't need the custom template then?  

It's weird, I installed these for Horde3/IMP4 (that need mcrypt installed) and I'm pretty sure I installed just mcrypt and mhash and hordes test.php said mcrypt was enabled.

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #32 on: January 27, 2005, 11:35:30 PM »
I did expand the template and checked for the change in php.ini and the mcrypt extention is listed properly.
Basically, the error is telling me that it cannot load the mcrypt.so maybe I'm wrong but that's my take on it.
......

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #33 on: January 27, 2005, 11:48:23 PM »
Greg

I just realized that I already had all of the discussed modules installed. I downloaded the rpms you suggested and this is what I got:

[root@mail plus]# rpm -Uvh libmcrypt-2.5.7-1ld.i386.rpm
Preparing...                ########################################### [100%]
package libmcrypt-2.5.7-1ld is already installed
[root@mail plus]# rpm -Uvh mhash-0.8.18-1ld.i386.rpm
Preparing...                ########################################### [100%]
package mhash-0.8.18-1ld is already installed
[root@mail plus]# rpm -Uvh php-mcrypt-4.3.9-3ld.i386.rpm
Preparing...                ########################################### [100%]
package php-mcrypt-4.3.9-3ld is already installed
[root@mail plus]#
......

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #34 on: January 27, 2005, 11:58:26 PM »
and you have mcrypt also?  'rpm -q mcrypt'

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #35 on: January 28, 2005, 12:26:49 AM »
[root@mail plus]# rpm -q mcrypt
mcrypt-2.6.4-1ld
[root@mail plus]#
......

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #36 on: January 28, 2005, 12:35:29 AM »
Quote from: "edb"
Jan 27 15:18:07 mail httpd: PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/mcrypt.so [Syslog]' - /usr/lib/php4/mcrypt.so [Syslog]: cannot open shared object file: No such file or directory in Unknown on line 0
Does the file exist? - '/usr/lib/php4/mcrypt.so'

I am running out of ideas :-P

I think that comes from php-mcrypt...  If the file isn't there try installing it again with --force.

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #37 on: January 28, 2005, 05:38:26 AM »
Yes, I checked and the file is there. This sucks

Thanks for trying Greg
......

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #38 on: January 30, 2005, 07:00:50 PM »
Greg,

After a search on the Internet I found that someone else posted their phpinfo file http://detez.net/phpinfo.php which indicated that mcrypt & mhash were loaded with the supported algorithms and dirs.


mcrypt
mcrypt support enabled
version  >= 2.4.x  
Supported ciphers  cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes  
Supported modes  cbc cfb ctr ecb ncfb nofb ofb stream  

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value


mhash
MHASH support  Enabled  
MHASH API Version  20020524  

My PHPINFO file doesn't show this information which is most likely my whole issue. Does this shed new light on the issue in the sense that you may know why?

Thanks again

Ed
......

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #39 on: January 30, 2005, 10:45:42 PM »
Greg,

After much pain, and relooking at the error log, I found out what my problem with activating mcrypt was due too. Apparently, if I look at my /etc/php.ini file I see the following entries:

extension=imap.so
extension=ldap.so
extension=mysql.so
extension=mcrypt.so [Syslog]
define_syslog_variables   = Off

If I edit the main /etc/php.ini file to read:

extension=imap.so
extension=ldap.so
extension=mysql.so
extension=mcrypt.so
[Syslog]
define_syslog_variables   = Off

save my changes and do a "service httpd restart", then refresh my phpinfo... Bob's your uncle and mcrypt and mhash show up in the info file just the way they should. Also, my encrypted pages work fine.

The last little issue that I have is that when the server reboots the [Syslog] part is again appended to the mcrypt extention line as above. I don't know where this is coming from so I can resolve it. Do you have any ideas on this?

At least I know that I can run mcrypt now.

Thanks for any reply.

Ed
......

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #40 on: January 30, 2005, 11:11:25 PM »
Never mind ... I solved the issue.

Thanks for following my thinking outloud.  :pint:

Ed
......

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #41 on: February 02, 2005, 10:39:14 PM »
Hello edb!

I have tonight re-compiled Dan Browns PHP RPMS with curl and mcrypt. You'll find them at
http://ergin.dyndns.org/download/RPMS/contribs/php/

OBS !!! Use them at you own risk...

PS : Dependencies BEGIN and mkinstallers are bogus so you can install RPMS with

# rpm -Uvh --nodeps .....

Best rgds, Ergin