Hello list,

I currently having some trouble get PHP to compile with the correct crypt() support. It seem that when compiled as a DSO under Apache crypt() will not do MD5 encryption. However if I compile PHP standalone then all works correctly. I have tried with and without mod_ssl. I have tried building with Apachetoolbox and manualy.

I have searched this list and many others and see only people with issues with Apache 2.x.x with mod_ssl. That's doesn't apply here since I'm using Apache 1.3.27. The OS (RedHat 7.3) supports MD5 via crypt. I have verified this with a sample C program and a Perl script, not to mention as I stated above PHP standalone works fine.

Im not sure what's happening to prevent the porper crypt support from getting in. Any suggestions would be appriciated. System specs below.

TIA!!!

- Todd

--------------------------------------------------------------------------

Server: AMD 1.5G/256M Ram
OS: RedHat 7.3
glibc: 2.2.5-34
apache: 1.3.27
php: 4.2.3
openssl: 0.9.6g
mod_ssl: 2.8.11-1.3.27
mm: 1.1.3
gd: 2.0.1


Excerpt from the config.log re: MD5
--------------------------------------------------------------------------
configure:58742: checking for MD5 crypt
configure:58777: gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX
-Wl,-rpath,/usr/local/mysql//lib/mysql -L/usr/local/mysql//lib/mysql
-Wl,-rpath,/usr/local/pgsql//lib -L/usr/local/pgsql//lib conftest.c
-lpq -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
1>&5
configure: failed program was:
#line 58753 "configure"
#include "confdefs.h"

#if HAVE_CRYPT_H
#include <crypt.h>
#endif

main() {
#if HAVE_CRYPT
char salt[15], answer[40];

salt[0]='$'; salt[1]='1'; salt[2]='$';
salt[3]='r'; salt[4]='a'; salt[5]='s';
salt[6]='m'; salt[7]='u'; salt[8]='s';
salt[9]='l'; salt[10]='e'; salt[11]='$';
salt[12]='\0';
strcpy(answer,salt);
strcat(answer,"rISCgZzpwk3UhDidwXvin0");
exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
#else
exit(0);
#endif
}


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to