LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 12-19-2009, 06:40 PM   #1
pinstripe
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
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
# make
# make install
PHP configures and installs correctly. OpenSSL 0.9.8k was configured and compiled with shared libraries. I am flabbergasted. There is even the ext/openssl directory in the PHP installation directory:

Code:
# find / -name "openssl" | grep php
/usr/install/php-5.3.0/ext/openssl
What have I done wrong?

Code:
# php -r "phpinfo();" | grep ssl
OpenSSL support => disabled (install ext/openssl)
# php -r "phpinfo();" | grep php.ini
Configuration File (php.ini) Path => /usr/lib
Loaded Configuration File => /usr/lib/php.ini

Last edited by pinstripe; 12-19-2009 at 06:42 PM.
 
Old 12-19-2009, 07:08 PM   #2
pinstripe
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 12-19-2009, 10:36 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
what happens when you create a script with
Code:
<?php
  phpinfo();
?>
does it say anything about ssl. try looking through your php ini file for anything that may say php_openssl.
 
Old 12-19-2009, 10:40 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
forgot to add you might have to use ssl on your apache server also. If you installed it you can use a2enmod ssl.
 
Old 12-20-2009, 09:17 AM   #5
pinstripe
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 02:58 AM
PHP File Uploads Failing gmcmaster Linux - Software 3 04-28-2006 05:39 PM
compile php with openssl problem rmang Linux - Software 1 01-23-2004 10:14 AM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 02:42 PM
PHP + OpenSSL Miky28 Linux - Newbie 0 07-29-2003 07:26 AM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration