# |
Mar 1st 2018, 17:33 |
savant |
hakuna: is your virtual host pointing at the webroot directory? if not, it should |
# |
Mar 1st 2018, 17:33 |
hakuna |
the php code of config/app.php |
# |
Mar 1st 2018, 17:33 |
hakuna |
the php code of config/app.ppp |
# |
Mar 1st 2018, 17:33 |
hakuna |
the php code of config/app.ppp |
# |
Mar 1st 2018, 17:33 |
savant |
yeah so I would look at what the json api does |
# |
Mar 1st 2018, 17:33 |
birdy247 |
this is the regular Crud Api |
# |
Mar 1st 2018, 17:33 |
hakuna |
i can run a simple php script but the cakephp app only show plain php code |
# |
Mar 1st 2018, 17:33 |
birdy247 |
not using the Json API at the moment |
# |
Mar 1st 2018, 17:32 |
savant |
@birdy247 hmmmm maybe @bravo-kernel has an idea |
# |
Mar 1st 2018, 17:32 |
bmcwhirter |
Thanks |
# |
Mar 1st 2018, 17:32 |
bmcwhirter |
Sweet |
# |
Mar 1st 2018, 17:32 |
savant |
@bmcwhirter you can add `use phpseclib\Net\SSH2;` to your class and then do `$ssh = new SSH2($ip)` |
# |
Mar 1st 2018, 17:32 |
birdy247 |
so was hoping to just push the newly saved option to the list |
# |
Mar 1st 2018, 17:32 |
birdy247 |
vue.js |
# |
Mar 1st 2018, 17:32 |
birdy247 |
I then add this to the select list |
# |
Mar 1st 2018, 17:31 |
birdy247 |
if the option isnt there, I pop a modal and the use can add a new one |
# |
Mar 1st 2018, 17:31 |
hakuna |
when I run a phpinfo () I see the extensions enabled |
# |
Mar 1st 2018, 17:31 |
birdy247 |
I have a form on the front end which provides a select list |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
So, can I 'use \phpseclib\Net\SSH2' ? |
# |
Mar 1st 2018, 17:31 |
savant |
@birdy247 what are you trying to do exactly? |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
$ssh = new \phpseclib\Net\SSH2() |
# |
Mar 1st 2018, 17:31 |
birdy247 |
WOuld I have to hook into the afterSave or similar? |
# |
Mar 1st 2018, 17:31 |
savant |
@bmcwhirter :slightly_smiling_face: |
# |
Mar 1st 2018, 17:31 |
bmcwhirter |
@savant Nevermind - documentation was old. Found what I needed in the actual class |
# |
Mar 1st 2018, 17:30 |
birdy247 |
Is there a way to return the whole entity when its saved rather than just the ID? |
# |
Mar 1st 2018, 17:30 |
savant |
@bmcwhirter can you link me to that example? |
# |
Mar 1st 2018, 17:30 |
birdy247 |
Am using Crud Api |
# |
Mar 1st 2018, 17:30 |
obinoob |
err: play = plain |
# |
Mar 1st 2018, 17:30 |
obinoob |
hakuna: what you mean by extensions appear can you see the file extensions and play php code |
# |
Mar 1st 2018, 17:29 |
savant |
@bmcwhirter is that a class from the phpseclib? |
# |
Mar 1st 2018, 17:29 |
hakuna |
yes, user/group match |
# |
Mar 1st 2018, 17:29 |
bmcwhirter |
@savant yessir |
# |
Mar 1st 2018, 17:28 |
savant |
@bmcwhirter this is cake3? |
# |
Mar 1st 2018, 17:28 |
obinoob |
server must have permissions to write on logs and tmp |
# |
Mar 1st 2018, 17:28 |
obinoob |
check ls -lsa user/group match ?!? |
# |
Mar 1st 2018, 17:27 |
hakuna |
i set the permissions to logs and tmp folders |
# |
Mar 1st 2018, 17:27 |
hakuna |
and the extensions appear |
# |
Mar 1st 2018, 17:26 |
obinoob |
at first hand sounds like permissions issue |
# |
Mar 1st 2018, 17:26 |
hakuna |
yes, the php.info is running |
# |
Mar 1st 2018, 17:26 |
obinoob |
and or check apache (supposing you're using it) logs |
# |
Mar 1st 2018, 17:26 |
bmcwhirter |
@savant The library is called phpseclib. I tried 'use phpseclib' and also 'use phpseclib\phpseclib' but am getting 'Class 'App\Shell\Net_SSH2' not found'. Example said to use "$ssh = new Net_SSH2(<ip>);" |