Log message #4121135

# At Username Text
# Mar 1st 2018, 17:45 birdy247 ApiListener *
# Mar 1st 2018, 17:44 bravo-kernel @birdy247 the actual code; the JsonApiListener
# Mar 1st 2018, 17:41 hakuna yes mod rewrite is enabled
# Mar 1st 2018, 17:40 hakuna thanks you I'll check the tutorial
# Mar 1st 2018, 17:40 obinoob hakuna: have you: sudo a2enmod rewrite ?
# Mar 1st 2018, 17:38 obinoob hakuna: you can replace vhost.lc by whatever you want, just make sure you add it to /etc/hosts
# Mar 1st 2018, 17:36 birdy247 @bravo-kernel this https://crud.readthedocs.io/en/latest/listeners/api.html#http-post-add ?
# Mar 1st 2018, 17:36 obinoob hakuna: follow this https://pastebin.com/5hZNpkTT
# Mar 1st 2018, 17:35 hakuna if i only run a simple php script in the app folder, the virtual hot point to this well and show the output
# Mar 1st 2018, 17:35 birdy247 :slightly_smiling_face:
# Mar 1st 2018, 17:35 bravo-kernel We are clear
# Mar 1st 2018, 17:35 birdy247 normal Api
# Mar 1st 2018, 17:35 bravo-kernel Or afterSave, it says your question in the docblock
# Mar 1st 2018, 17:35 birdy247 @bravo-kernel this isnt json API just to be clear
# Mar 1st 2018, 17:35 savant hakuna: not just the app directory, but the webroot directory
# Mar 1st 2018, 17:34 bravo-kernel @birdy247 savant is right, look at the listener beforeSave()
# Mar 1st 2018, 17:34 obinoob hakuna: php -v ? yeah probably need to check your vhost under apache/sites-enabled config
# Mar 1st 2018, 17:34 hakuna yes, the virtual host is pointing to the app folder
# 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: