{"id":5328,"date":"2020-01-09T13:01:39","date_gmt":"2020-01-09T07:31:39","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5328"},"modified":"2020-01-09T13:01:45","modified_gmt":"2020-01-09T07:31:45","slug":"php-warning-module-ssh2-already-loaded-in-unknown-on-line-0","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/php-warning-module-ssh2-already-loaded-in-unknown-on-line-0\/","title":{"rendered":"PHP warning: Module &#8216;ssh2&#8217; already loaded in Unknown on line 0"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">PHP warning: Module &#8216;ssh2&#8217; already loaded in Unknown on line 0<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Date : 07-Jan-2020<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Hello! Sometimes when working on the server , you may get the php warning message as &#8220;Module &#8216;ssh2&#8217; already loaded in Unknown on line 0&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This warning means that something is not right with your php configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us see how to sort out this error.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Solution 1:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In yor<strong> php.ini (or) ssh2.ini<\/strong> file, search for the below line,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> extension=ssh2.so <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Try commenting this line and reload your php.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You cannot see the warning message now. The error is fixed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It might be due to the ssh2.so module is loaded twice, hence showing error message as ssh2 is already loaded.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Solution 2:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In the directory <strong><em>\/etc\/php.d (or) \/etc\/php\/conf.d,<\/em><\/strong> check for duplicate files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If  there are 2 files with the same content or if there are 2 files which include the ssh2 module, then do the following.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remove any one of the files or remove the line that includes ssh2 module in any of the files<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thats all!! The issue is resolved !<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP warning: Module &#8216;ssh2&#8217; already loaded in Unknown on line 0 Date : 07-Jan-2020 Hello! Sometimes when working on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[742],"class_list":["post-5328","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-ssh2","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1nW","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5328"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5328\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}