jcubic on master
Slight rewording, and fix some … Merge pull request #13 from mar… (compare)
jcubic on devel
update scripts + more restricti… (compare)
jcubic on devel
remove cat for guest users so s… (compare)
/var/log/httpd/
or /var/log/apache2/
directory there should be error.log file
AJAX Error: "*
require('lib/Service.php');
$service = new Service('config.json', getcwd());
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
$_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
require_once('lib/json-rpc.php');
if ($service->debug()) {
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set('display_errors', 'On');
}
echo handle_json_rpc($service);
exit;
}
?>
Leash
debug()) { ?>
" rel="stylesheet"/>
/* some styles before I move them to style.css */
/ / / / _ | / / // /
/ // _// |\ \/ /
/_/// |/__///_/
[ LOADING ]
debug()) { ?>
debug()) { ?>
">
debug()) { ?>
">
keyboardeventKeyPolyfill.polyfill();
var d = $.Deferred();
$.leash = d.promise();
$(function() {
$('#shell').css({
overflow: 'auto'
}).leash().then(function(leash) {
$('#splash').hide();
d.resolve(leash);
// terminal is created after async call so we need to get terminal
// instance in a promise otherwise it will be created here.
var terminal = $('#shell').show().terminal();
var $win = $(window);
$win.resize(function() {
var height = $win.height();
terminal.innerHeight(height);
}).resize();
terminal.resize();
});
});
';
}
}
closedir($dh);
}
}
?>"
AJAX Error: "Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /var/www/html/lib/json-rpc.php:187
Stack trace:
#0 /var/www/html/lib/json-rpc.php(202): get_json_request()
#1 /var/www/html/index.php(21): handle_json_rpc(Object(Service))
#2 {main}
thrown in /var/www/html/lib/json-rpc.php on line 187"
You are running Leash for the first time. You need to configure it
root password: *
Type your server name
server: nicholas-server
Your normal username
username: nicholas
Home directory
home: /home/nicholas
Allow guest sessions (Y)es/(N)o
guest: Y
Execute sudo for user accounts (Y)es/(N)o
sudo: Y
password: **
Detect Shell
Test Shell 'exec' [PASS]
Using shell exec
AJAX Error: "Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/lib/Service.php:1110
Stack trace:
#0 /var/www/html/lib/Service.php(944): Service->curl('https://github....')
#1 /var/www/html/lib/Service.php(983): Service->unzip_url(NULL, 'https://github....', 'jsvi-app-master', '/var/www/html/l...')
#2 /var/www/html/lib/Service.php(504): Service->get_repo(NULL, 'jcubic', 'jsvi-app', '/var/www/html/l...')
#3 /var/www/html/lib/json-rpc.php(262): Service->configure(Array)
#4 /var/www/html/index.php(21): handle_json_rpc(Object(Service))
#5 {main}
thrown in /var/www/html/lib/Service.php on line 1110"