note 48972 added to ref.ssh2

From: Date: Thu, 13 Jan 2005 16:23:05 +0000
Subject: note 48972 added to ref.ssh2
Groups: php.notes 
Request: Send a blank email to php-notes+get-83202@lists.php.net to get a copy of this message
for those who are new to SSH2 in PHP. it can be a bit funky to get it to work. I will paste my build of apache and php, so you can pick at it. This was on a redhat 9 web box from a cluster server. it solves a problem where it can not find -lgssapi_krb5 when you install libssh2 ------------------------ #apache pre-build for modules ./configure --prefix=/fiji/cluster/www \ --enable-module=so \ --server-uid=cproot \ --server-gid=root \ --with-port=2082 # libssh2 www.libssh2.org##################### export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam" ./configure --prefix=/fiji/cluster/lib # PECL extension setup ####################################### # IN the php-x.x.x dir; change to ext dir cd ext pear download ssh2-0.5 gzip -d < ssh2-0.5.tgz | tar -xvf - mv ssh2-0.5 ssh2 rm package.xml cd .. ./buildconf --force #PHP ################################### ./configure \ --with-apxs=/fiji/cluster/www/bin/apxs \ --enable-pcntl \ --with-mysql \ --with-curl \ --prefix=/fiji/cluster/php \ --exec-prefix=/fiji/cluster/php \ --enable-ftp \ --with-config-file-path=/fiji/cluster/php/ \ --with-ssh2=/fiji/cluster/lib cp php.ini-dist /fiji/cluster/php/php.ini # edit config and start server ############################### /fiji/cluster/www/bin/apachectl start ---- Manual Page -- http://www.php.net/manual/en/ref.ssh2.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48972 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48972&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48972&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83202) next »