Search code examples
laravel-valet

Laravel valet linked php error


I got an error.

$ valet install

[DomainException]                
Unable to determine linked PHP.  

install

'which' command returns:

$ which php
/usr/local/Cellar/php70/7.0.6/bin/php

Solution

  • Homebrew creates (or attempts to create) symlinks in /usr/local/bin.

    Start by running the following to attempt to create a link.

    brew link php70
    

    It'll give you information as to whether or not it was successful. Occasionally permissions are problematic and you can resolve this with

    sudo chown -R `whoami`:admin /usr/local/bin
    

    Then try running the brew link command again.

    Alternately brew link may give you instructions, or you can use brew doctor to get a report on any problems which exist with your Homebrew installation.

    When it's set up properly after running ls -la /usr/local/bin | grep bin/php$ you should see something similar to

    lrwxr-xr-x 1 YOURUSER admin 29 10 May 21:40 php -> /usr/local/Cellar/php70/7.0.6/bin/php