When a new version of PHP is installed, to keep up with the WordPress VIP Go environment locally we need to do a few things:
pecl install gmagick- If #1 fails with a beta warning, use
pecl install channel://pecl.php.net/gmagick-2.0.6RC1instead (replace with the correct version if necessary) pecl install memcachecode /usr/local/etc/php/[version]/php.inito open the ini file. Uncomment the linesextension="gmagick.so"andextension="memcache.so"valet restart
And to make curl stop complaining about the SSL, do this:
- Download the file at http://curl.haxx.se/ca/cacert.pem
- Run
mv cacert.pem /usr/local/etc/php/[version]/ code /usr/local/etc/php/[version]/php.inito open the ini file. Change the line;curl.cainfo =tocurl.cainfo = "/usr/local/etc/php/[version]/cacert.pem"
May have to run
valet use php@7.4' and possibly with--force` to switch the PHP version to match whatever VIP is running.