PDA

View Full Version : php + --with-openssl


nick2004
01-31-2004, 08:17 PM
Hello,

I am trying to install php with the openssl support

added --with-openssl to my configure.php in the /usr/local/directadmin/customapache directory. Then ran ./build php in that directory and got:

Done Configuration.
Trying to make php...
/bin/sh /usr/local/directadmin/customapache/php-4.3.4/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/usr/local/directadmin/customapache/php-4.3.4/main/ -DPHP_ATOM_INC -I/usr/local/directadmin/customapache/php-4.3.4/include -I/usr/local/directadmin/customapache/php-4.3.4/main -I/usr/local/directadmin/customapache/php-4.3.4 -I/usr/local/directadmin/customapache/php-4.3.4/Zend -I/usr/local/include -I/usr/local/directadmin/customapache/php-4.3.4/ext/xml/expat -I/usr/local/directadmin/customapache/php-4.3.4/TSRM -g -O2 -prefer-pic -c main/internal_functions.c -o main/internal_functions.lo
In file included from /usr/include/openssl/ssl.h:179,
from /usr/local/directadmin/customapache/php-4.3.4/ext/openssl/php_openssl.h:84,
from main/internal_functions.c:32:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from /usr/local/directadmin/customapache/php-4.3.4/ext/openssl/php_openssl.h:84,
from main/internal_functions.c:32:
/usr/include/openssl/kssl.h:134: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:136: parse error before '*' token
/usr/include/openssl/kssl.h:137: parse error before '}' token
/usr/include/openssl/kssl.h:149: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:152: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: parse error before '*' token
/usr/include/openssl/kssl.h:161: parse error before "context"
/usr/include/openssl/kssl.h:162: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: parse error before "context"
/usr/include/openssl/kssl.h:165: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: parse error before "atime"
/usr/include/openssl/kssl.h:167: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: parse error before '*' token
/usr/include/openssl/kssl.h:169: parse error before "enctype"
In file included from /usr/local/directadmin/customapache/php-4.3.4/ext/openssl/php_openssl.h:84,
from main/internal_functions.c:32:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [main/internal_functions.lo] Error 1

Please help.

DirectAdmin Support
01-31-2004, 09:12 PM
Redhat 9.0 removed kerberos from ssl, which is a major pain in the neck.

--with-kerberos=/usr/kerberos

John

l0rdphi1
02-14-2004, 11:30 PM
Same error. Using: ./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-mcrypt \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-openssl \
--with-kerberos=/usr/kerberos \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars

DirectAdmin Support
02-15-2004, 11:21 AM
not sure.... have you tried google at all?

John

ProWebUK
02-15-2004, 05:56 PM
What version of openssl?

Chris

AtomicRax
02-15-2004, 06:36 PM
My server's got OpenSSL/0.9.7a

ProWebUK
02-15-2004, 06:57 PM
Originally posted by AtomicRax
My server's got OpenSSL/0.9.7a

And you are having the problems also?

Chris

AtomicRax
02-15-2004, 08:00 PM
Yes.

l0rdphi1
03-18-2004, 07:41 PM
Update OpenSSL to the latest security release, add the ' --with-openssl \' option to DA's configure.php, and recompile PHP. Worked for me.

vandal
05-04-2004, 05:37 PM
whats the best way to update openssl on redhat 8.0, i appear to have the latest updated one from updates.redhat.com (in the 8.0 dir) but it is version 6b, and there is that security exploit and i am wondering if i should remove the rpm and install from the tarball or what?

thanks

Seth
06-05-2004, 06:56 AM
Originally posted by l0rdphi1
Update OpenSSL to the latest security release, add the ' --with-openssl \' option to DA's configure.php, and recompile PHP. Worked for me.


How would I do this?

toml
06-05-2004, 01:58 PM
Make sure you have krb5-devel installed. Otherwise you won't have the headers and libraries. Here is my configure.php and it works just fine. Of course I added openssl, imap and iconv to it.

#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--with-openssl \
--with-imap=/usr/local/directadmin/customapache/imap-2002e \
--with-iconv

Seth
06-05-2004, 03:06 PM
Ok, but how would I do this? I'm sure it's simple but I need to get this corrected as I have made a big deal about Installatron to my clients and it now does not work.

toml
06-05-2004, 11:15 PM
to install krb5-devel try up2date -u krb5-devel or rpm -ivh krb5-devel-xxxxx.i386.rpm where xxxxx is the version number. I already posted my changes to the /usr/local/directadmin/customapache/configure.php file, yours should be similar, but don't just use it without knowing what the additions are doing, otherwise it will fail.

Once you have those changes try doing a ./build clean
./build php
service httpd restart
and that should do it.