From 7cb83d15244fd7e7701a0474186977bee819b2c8 Mon Sep 17 00:00:00 2001 From: Maxime St-Pierre Date: Thu, 17 May 2018 23:18:43 -0400 Subject: [PATCH 1/2] Add condition for failed bash command --- dev.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev.sh b/dev.sh index 6c842bd9..5c5e9c51 100755 --- a/dev.sh +++ b/dev.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + PHPBIN=php7.2 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" From 9679a6373defa8bfe1e27386ab0447bb387d062e Mon Sep 17 00:00:00 2001 From: Maxime St-Pierre Date: Thu, 17 May 2018 23:22:50 -0400 Subject: [PATCH 2/2] Add additional notes for missing php extension --- INSTALL.md | 1 + 1 file changed, 1 insertion(+) diff --git a/INSTALL.md b/INSTALL.md index 9aad6779..9c4fd0f2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -27,3 +27,4 @@ If `localhost:8000` returns the lbry.io website, it's running correctly. - Both the `dev.sh` and `docker.sh` scripts will initialise a configuration based on `data/config.php.example` if `data/config.php` does not exist. - Some pages and interactions rely on API keys that will not be available to you in your install. - To run remotely, simply install PHP and configure Apache or your server of choice to serve `web/index.php`. +- If the dev.sh fail to start with missing php extension please install php-xml, php-curl, php-mbstring according to your OS instruction \ No newline at end of file