Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:29:52+00:00 2026-06-09T21:29:52+00:00

Operating System used Windows 7 – V 6.1 Apache installed httpd-2.2.22-win32-x86-no_ssl.msi My httpd.conf AddType

  • 0

Operating System used

Windows 7 - V 6.1

Apache installed

httpd-2.2.22-win32-x86-no_ssl.msi

My httpd.conf

AddType application/x-httpd-php .php

LoadModule php5_module "X:/Program Files/PHP/php5apache2_2.dll"

Version of php installed

php-5.3.16-Win32-VC9-x86.msi

I copied the php_ssh2.dll from php_ssh2-0.11.2-5.3-nts-vc9-x86.zip uncompressed

php_ssh2-0.11.2-5.3-nts-vc9-x86.zip

to

X:\Program Files\PHP\ext\php_ssh2.dll

My php.ini

extension_dir="X:\Program Files\PHP\ext"

PHPIniDir "X:/Program Files/PHP"

[PHP_SSH2]
extension=php_ssh2.dll

Apache has been restarted after configuring php.ini with php_ssh2.dll and after copying the file php_ssh2.dll to extension_dir – error persists

Fatal error: Call to undefined function ssh2_connect() in X:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php on line 4

code used to test

<?php
$connection = ssh2_connect("XXX.XXX.XXX.XXX", 22);

if(ssh2_auth_password($connection, "XXXXXX", "XXXXXX"))
  printf("CONNECTED");
else
  printf("ERROR");
?>

A test with phpinfo() displays the page perfectly in the browser because php was configured with the httpd.conf but the parameter extension_dir appears as

extension_dir C:\php C:\php

but this parameter was set to “X:\Program Files\PHP\ext”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:29:53+00:00Added an answer on June 9, 2026 at 9:29 pm

    On your ini file do you see ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp under Registered PHP Streams if not dll is not loaded. Apache restart may be?

    Also I assume you had

    PHPIniDir "X:/Program Files/PHP"
    

    in httpd.conf not php.ini

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just upgraded my operating system to Windows 7. Visual Studio 2008 also seems
In windows operating system, the stack memory is a thread-specific storage, and the call
What's the best operating system to study in order to write your own x86
I have a 64 bit windows operating system and I use VS2008 to write
I have a problem to detect when used in GNOME or KDE operating system
I have a Windows Service application (developed in C++) running under Local System account.
On the Windows operating system, the shell/terminal we have by default is the Command
Microsoft is planning to make Windows 8 an 128-bit operating system. I have always
I’m trying to launch an application (Operating System, My Application and the application I
Operating System: OSX Method: From the command line, so using sed, cut, gawk, although

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.