PHP with OpenSSL Support Failing
Hi everyone,
Longtime reader, first poster. I've just run into an annoying problem. I can't get OpenSSL support in PHP. This is how I'm configuring and building PHP: Code:
# ./configure --prefix=/usr --enable-sockets --with-mysql=/usr/local/mysql --with-zlib-dir=../zlib-1.2.3 --with-apxs=/usr/local/apache/bin/apxs --with-mcrypt=../libmcrypt-2.5.8 --enable-mbstring --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/lib/libjpeg.so --enable-exif --enable-soap=shared --with-mhash=../mhash-0.9.9.9 --with-openssl --with-openssl-dir=../openssl-0.9.8k Code:
# find / -name "openssl" | grep php Code:
# php -r "phpinfo();" | grep ssl |
When compiling, the only thing I see regarding OpenSSL is this:
/usr/install/php-5.3.0/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval': /usr/install/php-5.3.0/ext/openssl/openssl.c:1161: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type |
what happens when you create a script with
Code:
<?php |
forgot to add you might have to use ssl on your apache server also. If you installed it you can use a2enmod ssl.
|
Yeah, I have mod_ssl working fine, it's just PHP. As for phpinfo(), relevant output is:
# php -r "phpinfo();" | grep ssl OpenSSL support => disabled (install ext/openssl) |
All times are GMT -5. The time now is 12:39 AM. |