note 48972 deleted from ref.ssh2 by pollita
| From: | pollita@php.net | Date: | Tue, 22 Feb 2005 06:35:26 +0000 |
| Subject: | note 48972 deleted from ref.ssh2 by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85353@lists.php.net to get a copy of this message | ||
Note Submitter: brianj at jinies dot com
----
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