How to install PHP SSH2 extension in a non-standard folder on linux without root access -
I am out of my area of expertise and none of the Internet and the stack overflow to move the solution to this problem Got it I'm trying to install the PHP SSH2 extension in my account folder on Linux (I do not know what is the taste address) hosting server where I do not have root access.
I have successfully libssh2 -1.4.3 in the Private Folder with the following instructions:
./configure --prefix = / home / myaccnt / php / ssh2 / install Install and / home / myaccnt / php / ssh2 / install / lib in the folder ends with the following files: libssh2.a libssh2.la So far, very good (at least I think that sounds great). Next, I tried to create Ssh2-0.11.3, but I can not go into the configuration phase. I have tried several different ways to run the configured command:
.config --prefix = / home / myaccnt / php / ssh2 / install --with-ssh2 = / Home / myaccnt / php / ssh2 / install --configure --prefix = / home / myaccnt / php / ssh2 / install --with-ssh2 = / home / myaccnt / php / ssh2 / install / lib but the configured script can not always be found in Libs 2 and I get the following message:
check for ssh2 support ... yes, shared in the default path for ssh2 files Checked ... not found Configure: error: required libssh2 Breri not found. You can get that package from http://sourceforge.net/projects/libssh2/ , so the question is, how can I get a PHP SSH2 extension to find the script Script for Thanks for you Thanks in advance it is really appreciated.
After a few hours through the configured script and even more hours searching on the internet, One way to accomplish is to find out.
I started with the instructions and did the following:
create libssh2:
- A folder was created under my home directory named "php" And then a folder called "ext" and another called "ssh2".
-
CD / Myhome & gt; / Php / Ssh2 - Download the libssh2 package from the php / ssh2 folder
-
tar vxzf libssh2-1.4.3.tar.gz -
cd libssh2-1.4.3 -
./configure - prefix = $ HOME - < Code> create
-
install create ssh2:
-
CD / & lt; Myhome & gt; / Php / ssh2 -
- Download the php-ssh2 package from
tar vxzf ssh2-0.11.3 -
CD ssh2-0.11.3 -
phpize -
./configure - prefix = $ HOME - SH2 = $ HOME -
created copied / to / & lt; Myhome & gt; /php/ext/ssh2.so Modify my php In IIS, the extension = / & lt; Myhome & gt; /php/ext/ssh2.so And now I have available for my scripts on a shared server. I hope someone will find this assistant.
Comments
Post a Comment