openssl with php problems

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

openssl with php problems

Postby mejam » Fri Oct 31, 2008 10:07 pm

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

Postby eternal peace » Sat Nov 01, 2008 1:40 pm

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:

Postby lambda » Sat Nov 01, 2008 2:46 pm

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:

Postby mejam » Sun Nov 02, 2008 1:14 am

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:

Postby LinuxFreaK » Mon Nov 03, 2008 9:49 am

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:

Postby mejam » Mon Nov 03, 2008 10:35 pm

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:

Postby LinuxFreaK » Tue Nov 04, 2008 9:03 am

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:

Postby mejam » Tue Nov 04, 2008 9:55 pm

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:

Postby LinuxFreaK » Thu Nov 06, 2008 5:14 am

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:

Postby LinuxFreaK » Thu Nov 06, 2008 5:19 am

Dear mejam,
Salam,

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

Best Regards.
Farrukh Ahmed


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests