openssl with php problems

Taking care of your Linux box.
Post Reply
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

openssl with php problems

Post by mejam »

i am having a problem....i am running centos with LAMP....my apache and php are compiled from source....when i browse the phpinfo(),it displays

Registered Stream Socket Transports
:tcp, udp, unix, udg
in phpinfo() page....but i need ssl in it too....i have been googling from 3 days....i know that i have to install openssl extension in PHP5 but please guide me how to do that....one thing more i have enabled the "extension=openssl.dll" in php.ini but it only works for windows not for linux...
Regards
Abdulrehman
eternal peace
Naik
Posts: 86
Joined: Thu Apr 03, 2003 6:44 pm

Post by eternal peace »

You just have to enable SSL support for apache, do install mod_ssl for apache,

yum install mod_ssl
hail to linux!!!
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

ssl in php and ssl in apache are different things. openssl does a lot more than the "https" you're used to; it can also create or verify digital signatures, encrypt or decrypt files or streams, etc.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

mod_ssl is installed.....i can also browse the default page of apache at port#443...the thing is that i want to add ssl stream socket to PHP5...please help....
Regards
Abdulrehman
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear mejam,
Salam,

Make sure you have compiled php with SSL support along with GnuTLS support.

Best Regards.
Farrukh Ahmed
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

what does gnutls do...?can u explain why it is nessary..?
Regards
Abdulrehman
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear mejam,
Salam,
mejam wrote:what does gnutls do...?can u explain why it is nessary..?
I have done same thing for person having same issue. He was trying to call some of his programming script using SSL hard coded in PHP.

FYI, http://www.gnu.org/software/gnutls/

Best Regards.
Farrukh Ahmed
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

farrukh bhai i told you that i have CentOs 4.4...but this gnutls only works with CentOs5 or CentOs 5+ versions....please help me out...i am sorrounded by this SSL troubble....my BOSS is not happy with me these days....i have been googling all the time for it but all in vain.
Regards
Abdulrehman
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear mejam,
Salam,
mejam wrote:farrukh bhai i told you that i have CentOs 4.4...but this gnutls only works with CentOs5 or CentOs 5+ versions....please help me out...i am sorrounded by this SSL troubble....my BOSS is not happy with me these days....i have been googling all the time for it but all in vain.
FYI, http://mirror.centos.org/centos/4/os/i3 ... 6.i386.rpm and http://mirror.centos.org/centos/4/os/i3 ... 6.i386.rpm

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear mejam,
Salam,

This is humble request to you that do not create sticky threads.

Best Regards.
Farrukh Ahmed
Post Reply