openssl with php problems

Taking care of your Linux box.

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
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

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!!!
eternal peace
Naik
 
Posts: 86
Joined: Thu Apr 03, 2003 6:44 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

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
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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

what does gnutls do...?can u explain why it is nessary..?
Regards

Abdulrehman
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

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
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron