Closed Ruriko closed 10 years ago
This script does not support the ssh2 extensions.
By installing the libssh2-1-dev
and libssh2-php
packages you've only added the debian packaged php into the mix. This will break the manual compile done by this script.
If you want to experiment adding new pecl extensions then you should do something like:
/opt/php5/bin/pecl install ssh2
which will make sure that the correct package will be used to compile the package in the right place.
However, it appears that this extension only has beta versions which probably means that you would have to run:
/opt/php5/bin/pecl install ssh2 channel://pecl.php.net/ssh2-0.12
But again, this is untested and unsupported by this script.
thanks that did the trick!
I installed your script on a brand new server. It is running Ubuntu 12.10 64bit. After installing your script I tried to install SSH2 with this command
apt-get install libssh2-1-dev libssh2-php
after installing SSH2 I tried to check if SSH2 was working with commandphp -m |grep ssh2
but it gave error sayingPHP Warning: PHP Startup: Unable to load dynamic library '/opt/php5/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php5/lib/php/extensions/no-debug-non-zts-20090626/ssh2.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20090626/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
I can't get SSH2 working with your script. Here's the install log https://www.dropbox.com/s/ojukcrr32qin2pt/install.txt Here's the php.ini https://www.dropbox.com/s/2dyaqvvezbwmekt/php.txt and finally the output of no-debug-non-zts-20090626
root@server:~# ls -la /opt/php5/lib/php/extensions/no-debug-non-zts-20090626 total 1116 drwxr-xr-x 2 root root 4096 Jan 29 08:31 . drwxr-xr-x 3 root root 4096 Jan 29 06:43 .. -rw-r--r-- 1 root root 830865 Jan 29 06:43 apc.so -rw-r--r-- 1 root root 291605 Jan 29 06:43 memcache.so