diff --git a/README.md b/README.md index 593f69b..35fd4c7 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,19 @@ for us to support them. ## Installation ```bash -asdf plugin-add php +asdf plugin-add php https://github.com/asdf-community/asdf-php.git ``` Since this plugin compiles PHP from source, you'll want to ensure all other required packages are installed. After you've installed additional system packages, install a specific PHP version: ```bash -asdf install php 7.4.16 +asdf install php latest ``` You can test to ensure the installation was successful: ```bash -asdf reshim php --version ``` @@ -48,7 +47,7 @@ echo "extension=redis.so extension=imagick.so" > $(asdf where php)/conf.d/php.ini ``` -#### MacOS +#### macOS To install PHP on MacOS, you'll need a set of packages installed via homebrew: diff --git a/bin/install b/bin/install index 9f4bfb5..14a6750 100755 --- a/bin/install +++ b/bin/install @@ -95,7 +95,7 @@ install_php() { ) # it's not obvious where php.ini should be placed, let us make it easy for the user - mkdir $install_path/conf.d/ + mkdir -p $install_path/conf.d/ echo "# add system-wide php configuration options here" > $install_path/conf.d/php.ini }