Categories
Fixing Stuff Mac Samuel

Getting Local ENV Setup To Run Old Site

First issue:

Library not loaded: /usr/local/opt/openldap/lib/libldap-2.5.0.dylib
  Referenced from: /usr/local/Cellar/php@7.3/7.3.33/bin/php

To fix this we ran:

Just do this:

brew tap shivammathur/php
brew link --overwrite --force php

done....
brew unlink php@8.1
brew link php@7.4 
brew services restart --all
composer global update
valet use php@7.4
    *this should confirm that valet is set to use php 7.4

***If we want to go farther back and use PHP7.3 or older, we have to do the following:

brew tap shivammathur/php
brew install shivammathur/php/php@7.3
brew unlink php@7.4
brew link php@7.3  
brew services restart --all
composer global update
valet use php@7.3  
     *this should confirm that valet is set to use php 7.3

***If you pull up a PHP info page in the browser and its still showing as using PHP 8.1, you can use this command to force the change***

valet use php@7.3 --force