$http.get('http://127.0.0.1:8080/stat').success(function(response) {
$scope.stat_fromdb = response.data;
});
sed -i 's/\r//' script.sh
поможет PEAR_INSTALLER_URL = https://pear.php.net/install-pear-nozlib.phar
PEAR_INSTALLER_URL = http://pear.php.net/install-pear-nozlib.phar