How To Install libssh2 on PHP runtime

24 views
Skip to first unread message

cdane...@gmail.com

unread,
Sep 27, 2018, 1:33:55 PM9/27/18
to Google App Engine
Hi Everyone, Since yesterday I'm trying and searching how to install the extension libssh2 in GAE
But without success yet, I would like to know if anyone there knows / has a tutorial on how to install libssh in GAE
I want to install libssh2 on GAE PHP FLEX to execute this php code on my page:
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');

$stream = ssh2_exec($connection, '/usr/local/bin/php -i');
?>


And how i can run multiple runtimes (PHP + PYTHON3) in the same app ?,
I'alredy tried to create a Custom Runtime and set the two (PHP and PYTHON3) in my app.yaml but give the error at the time of deploy saying that the command "runtime: "
was declared twice.


Thanks for anybody to answer.



Stewart Reichling

unread,
Sep 27, 2018, 1:37:37 PM9/27/18
to google-a...@googlegroups.com
Your best bet would be to use a custom runtime on the flexible environment. This would allow you to use a Dockerfile to specify system packages and install arbitrary binaries (e.g., php and python3).

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/940a5984-0bf1-4034-963d-0ce6b4d1ccfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Stewart Reichling | Product Manager, Serverless | stew...@google.com | 650.906.3381
Reply all
Reply to author
Forward
0 new messages