PHP warning: Module ‘ssh2’ already loaded in Unknown on line 0

PHP warning: Module ‘ssh2’ already loaded in Unknown on line 0

Date : 07-Jan-2020

Hello! Sometimes when working on the server , you may get the php warning message as “Module ‘ssh2’ already loaded in Unknown on line 0”.

This warning means that something is not right with your php configuration.

Let us see how to sort out this error.

Solution 1:

In yor php.ini (or) ssh2.ini file, search for the below line,

 extension=ssh2.so 

Try commenting this line and reload your php.

You cannot see the warning message now. The error is fixed.

It might be due to the ssh2.so module is loaded twice, hence showing error message as ssh2 is already loaded.

Solution 2:

In the directory /etc/php.d (or) /etc/php/conf.d, check for duplicate files.

If there are 2 files with the same content or if there are 2 files which include the ssh2 module, then do the following.

Remove any one of the files or remove the line that includes ssh2 module in any of the files

Thats all!! The issue is resolved !

Thank you!

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top