{"id":567,"date":"2009-08-08T02:17:28","date_gmt":"2009-08-07T19:17:28","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=567"},"modified":"2009-08-08T02:17:28","modified_gmt":"2009-08-07T19:17:28","slug":"how-to-add-openssl-php-extension-on-suse-linux-91","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=567","title":{"rendered":"How to add openssl php extension on SuSE Linux 9.1"},"content":{"rendered":"<h2>What is openssl php extension ?<\/h2>\n<p>Php module that\u00a0 uses the functions of <a class=\"link external\" href=\"http:\/\/www.openssl.org\/\">\u00bb OpenSSL<\/a> for generation and verification    of signatures and for sealing (encrypting) and opening (decrypting)    data.<\/p>\n<h3>System requirement<\/h3>\n<ul>\n<li> &#8211; Apache2<\/li>\n<li> &#8211; Php<\/li>\n<li> &#8211; OpenSSL<\/li>\n<\/ul>\n<h3>Setup<\/h3>\n<p>In this tutorial i have already installed Apache2 and Php 5.2.5 . I just need to add OpenSSL module on my php i also decided to upgrade my php from 5.2.5 to 5.2.9. First you need to download the Php (http:\/\/us.php.net\/downloads.php) and Openssl sourcode (http:\/\/www.openssl.org\/source\/)<\/p>\n<p>#wget http:\/\/www.openssl.org\/source\/openssl-0.9.8k.tar.gz<br \/>\n#wget http:\/\/us.php.net\/distributions\/php-5.2.9.tar.gz<\/p>\n<h3>Extract and compile the openssl<\/h3>\n<p>#cd \/root<br \/>\n#tar -zxvf openssl-0.9.8k.tar.gz<br \/>\n#cd openssl-0.9.8k<br \/>\n#.\/config &amp;&amp; make &amp;&amp; make install<\/p>\n<h3>Extract, configure and installed the php<\/h3>\n<p>Before you configure the php sourcecode you must remember the previous php configuration right ? if not you can use php -i |grep configure to see the previous configuration<\/p>\n<p># php -i |grep configure<br \/>\nConfigure Command =&gt;\u00a0 &#8216;.\/configure&#8217;\u00a0 &#8216;&#8211;with-apxs2=\/usr\/local\/apache2\/bin\/apxs&#8217; &#8216;&#8211;with-mysql=\/usr\/local\/mysql&#8217; &#8216;&#8211;with-gd=\/usr\/local&#8217; &#8216;&#8211;with-jpeg-dir=\/usr\/local\/lib&#8217; &#8216;&#8211;with-zlib-dir=\/usr\/local&#8217; &#8216;&#8211;with-ftp&#8217; &#8216;&#8211;with-gif&#8217; &#8216;&#8211;enable-ftp&#8217; &#8216;&#8211;with-png-dir=\/usr\/local\/lib&#8217; &#8216;&#8211;with-freetype-dir=\/usr\/local&#8217; &#8216;&#8211;with-curl=\/usr\/local&#8217;<\/p>\n<p>Now you have the config list, start the php installation<\/p>\n<p>#cd \/root<br \/>\n#tar -zxvf php-5.2.9.tar.gz<br \/>\n#cd php-5.2.9<br \/>\n.\/configure &#8211;with-openssl=\/usr\/local\/ssl\u00a0 &#8211;with-apxs2=\/usr\/local\/apache2\/bin\/apxs &#8211;with-mysql=\/usr\/local\/mysql &#8211;with-gd=\/usr\/local &#8211;with-jpeg-dir=\/usr\/local\/lib &#8211;with-zlib-dir=\/usr\/local &#8211;with-ftp &#8211;with-gif &#8211;enable-ftp &#8211;with-png-dir=\/usr\/local\/lib &#8211;with-freetype-dir=\/usr\/local &#8211;with-curl=\/usr\/local<\/p>\n<p>#make<br \/>\n#make install<\/p>\n<p>And the last thing don&#8217;t forget to restart your apache2<\/p>\n<p>#\/usr\/local\/apache2\/bin\/apachectl stop<\/p>\n<p>#\/usr\/local\/apache2\/bin\/apachectl start<\/p>\n<h3>Now check your openssl module<\/h3>\n<p># php -m | grep openssl<br \/>\nopenssl<br \/>\nif you see openssl it means you did it<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is openssl php extension ? Php module that\u00a0 uses the functions of \u00bb OpenSSL for generation and verification of signatures and for sealing (encrypting) and opening (decrypting) data. System requirement &#8211; Apache2 &#8211; Php &#8211; OpenSSL Setup In this tutorial i have already installed Apache2 and Php 5.2.5 . I just need to add [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[891],"tags":[2668],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-php","tag-openssl-php-extension"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=567"}],"version-history":[{"count":2,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/567\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/567\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}