Module 'ssh2' already loaded in Unknown on line 0

前端 未结 3 2013
你的背包
你的背包 2021-01-19 02:39

I use the functions below to copy files from one server to another. It works most of the time, but sometimes I start getting this error in log files:

Module          


        
3条回答
  •  清歌不尽
    2021-01-19 02:59

    If the above does not work, take a look inside /etc/php5/conf.d

    If you see duplicate ssh2.ini files, remove any extra ones.

    In my case I had 50-ssh2.ini and ss2.ini. Both files were providing the line:

    extension=ssh2.so
    

    For me removing 50-ssh2.ini solved the issue.

提交回复
热议问题