php + --with-openssl

nick2004

Verified User
Joined
Jan 31, 2004
Messages
7
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.
 
Redhat 9.0 removed kerberos from ssl, which is a major pain in the neck.

--with-kerberos=/usr/kerberos

John
 
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
 
Update OpenSSL to the latest security release, add the ' --with-openssl \' option to DA's configure.php, and recompile PHP. Worked for me.
 
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
 
l0rdphi1 said:
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?
 
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.

Code:
#!/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
 
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.
 
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
Code:
./build clean
./build php
service httpd restart
and that should do it.
 
Back
Top