Skip to content

Installation

Lou van der Laarse edited this page Feb 7, 2020 · 15 revisions

⚠️ Valet+ requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.

  1. Install or update Homebrew to the latest version using brew update.
  2. Add the Homebrew PHP tap for Valet+ via brew tap henkrehorst/php.
  3. Install PHP 7.2 using Homebrew via brew install [email protected].
  4. Link your PHP version using the brew link [email protected] --force command.

⚠️ Sometimes you need to restart all terminal windows for the link to take effect after install.

  1. Install Composer using Homebrew via brew install composer.
  2. Install Valet+ with Composer via composer global require weprovide/valet-plus.
  3. Add export PATH="$PATH:$HOME/.composer/vendor/bin" to .bash_profile (for bash) or .zshrc (for zsh) depending on your shell (echo $SHELL)
  4. Run the valet fix command. This will check for common issues preventing Valet+ from installing.
  5. Run the valet install command. Optionally add --with-mariadb to use MariaDB instead of MySQL This will configure and install Valet+ and DnsMasq, and register Valet's daemon to launch when your system starts.
  6. Once Valet+ is installed, try pinging any *.test domain on your terminal using a command such as ping -c1 foobar.test. If Valet+ is installed correctly you should see this domain responding on 127.0.0.1. If not you might have to restart your system. Especially when coming from the Dinghy (docker) solution.

❗ Please check the issue queue for existing bugs if Valet+ is not working correctly after install. Valet+ uses many dependencies and can break as these dependencies develop.

ℹ️ Valet+ will automatically start its daemon each time your machine boots. There is no need to run valet start or valet install ever again once the initial Valet+ installation is complete.

Clone this wiki locally