Bekijk Volledige Versie : SSh2 PHP
Beste,
Ik heb libssh2.so geinstalleerd in geincludeerd in de php.ini config file, met de line: extension=ssh2.so.
Als ik naar de PHPinfo ga staat hij er niet tussen, maar als ik php -i | grep ssh2 doe laat hij wel resultaten zien:
/usr/lib/php5# php -i | grep ssh
ssh2
libssh2 version => 0.14
banner => SSH-2.0-libssh2_0.14
/usr/lib/php5#
Zoals je ziet laad hij de libssh2 wel, maar laat hem niet zien. Heeft iemand een oplossing?
Leuk voltooid deelwoord, geincludeerd :).
Heb je Apache opnieuw opgestart?
Leuk voltooid deelwoord, geincludeerd :).
Heb je Apache opnieuw opgestart?
Ja, meerdere keren zelfs ;)
SebastiaanStok
06/02/08, 13:41
Stop apache is helemaal en start hem dan.
Soms wil apache nog wel is een restart weigeren.
Heb je niet ergens ingesteld staan dat hij een andere php.ini moet gebruiken?
Welke php.ini (search path) staat er bij PHPInfo
Stop apache is helemaal en start hem dan.
Soms wil apache nog wel is een restart weigeren.
Heb je niet ergens ingesteld staan dat hij een andere php.ini moet gebruiken?
Welke php.ini (search path) staat er bij PHPInfo
Nee, ik heb tevens ook php -i | grep php.ini, dan krijg je de path te zien. Die config file heb ik ook ge-edit. En in de phpinfo() staat de zelfde path, dus daarin zit hij niet.
De module wordt zowiezo geladen want als ik de command "php --re ssh2" opgeeft krijg ik de return met
Extension [ <persistent> extension #41 ssh2 version 0.10 ] {
- Constants [21] {
Constant [ integer SSH2_FINGERPRINT_MD5 ] { 0 }
Constant [ integer SSH2_FINGERPRINT_SHA1 ] { 1 }
Constant [ integer SSH2_FINGERPRINT_HEX ] { 0 }
Constant [ integer SSH2_FINGERPRINT_RAW ] { 2 }
Constant [ integer SSH2_TERM_UNIT_CHARS ] { 0 }
Constant [ integer SSH2_TERM_UNIT_PIXELS ] { 1 }
Constant [ string SSH2_DEFAULT_TERMINAL ] { vanilla }
Constant [ integer SSH2_DEFAULT_TERM_WIDTH ] { 80 }
Constant [ integer SSH2_DEFAULT_TERM_HEIGHT ] { 25 }
Constant [ integer SSH2_DEFAULT_TERM_UNIT ] { 0 }
Constant [ integer SSH2_STREAM_STDIO ] { 0 }
Constant [ integer SSH2_STREAM_STDERR ] { 1 }
Constant [ integer SSH2_POLLIN ] { 1 }
Constant [ integer SSH2_POLLEXT ] { 2 }
Constant [ integer SSH2_POLLOUT ] { 4 }
Constant [ integer SSH2_POLLERR ] { 8 }
Constant [ integer SSH2_POLLHUP ] { 16 }
Constant [ integer SSH2_POLLNVAL ] { 32 }
Constant [ integer SSH2_POLL_SESSION_CLOSED ] { 16 }
Constant [ integer SSH2_POLL_CHANNEL_CLOSED ] { 128 }
Constant [ integer SSH2_POLL_LISTENER_CLOSED ] { 128 }
}
- Functions {
Function [ <internal> public function ssh2_connect ] {
}
Function [ <internal> public function ssh2_methods_negotiated ] {
}
Function [ <internal> public function ssh2_fingerprint ] {
}
Function [ <internal> public function ssh2_auth_none ] {
}
Function [ <internal> public function ssh2_auth_password ] {
}
Function [ <internal> public function ssh2_auth_pubkey_file ] {
}
Function [ <internal> public function ssh2_auth_hostbased_file ] {
}
Function [ <internal> public function ssh2_forward_listen ] {
}
Function [ <internal> public function ssh2_forward_accept ] {
}
Function [ <internal> public function ssh2_shell ] {
}
Function [ <internal> public function ssh2_exec ] {
}
Function [ <internal> public function ssh2_tunnel ] {
}
Function [ <internal> public function ssh2_scp_recv ] {
}
Function [ <internal> public function ssh2_scp_send ] {
}
Function [ <internal> public function ssh2_fetch_stream ] {
}
Function [ <internal> public function ssh2_poll ] {
- Parameters [1] {
Parameter #0 [ <required> &$param0 ]
}
}
Function [ <internal> public function ssh2_sftp ] {
}
Function [ <internal> public function ssh2_sftp_rename ] {
}
Function [ <internal> public function ssh2_sftp_unlink ] {
}
Function [ <internal> public function ssh2_sftp_mkdir ] {
}
Function [ <internal> public function ssh2_sftp_rmdir ] {
}
Function [ <internal> public function ssh2_sftp_stat ] {
}
Function [ <internal> public function ssh2_sftp_lstat ] {
}
Function [ <internal> public function ssh2_sftp_symlink ] {
}
Function [ <internal> public function ssh2_sftp_readlink ] {
}
Function [ <internal> public function ssh2_sftp_realpath ] {
}
Function [ <internal> public function ssh2_publickey_init ] {
}
Function [ <internal> public function ssh2_publickey_add ] {
}
Function [ <internal> public function ssh2_publickey_remove ] {
}
Function [ <internal> public function ssh2_publickey_list ] {
}
}
}
Welke precieze phpversie draait u? Wij hebben het ook geinstalleerd, en geeft het wel duidelijk weer op http://www.furion.nl/Furion2008/phpinfo.php
Wat als je gewoon even een ssh2 functie uitprobeerd?
Ben benieuwd hoe je het gefixt hebt?
Ben benieuwd hoe je het gefixt hebt?
Had een oudere versie gedownload, die geconfigureerd en make && make install, toen pecl install ssh2, en toe ndeed ie het :)