I’d like to install some additional PHP packages, like memcache/memecached. There’s a tutorial from 3 years ago here: [How do I compile additional PHP extensions?].
However, this no longer appears to work, at least not on MacOS.
Steps to reproduce:
- First, click on the site in question in the sidebar and “Open Site SSH”, which opens a bash shell
- I tried running
apt-get
, as described in the tutorial, and this command doesn’t work -
apt
, like in newer Ubuntu/Debian systems, is recognized, but fails to find the Java path:Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/apt" (-1)
- This is the error I’d expect trying to run
apt
on any MacOS machine, but I was under the impression that by entering the site shell, I was entering the container for this site, right? - Should I be installing memecached with something like Brew instead? Which is actually surprisingly accessible with the site shell (I thought it was a closed container running a docker instance or something)
–
- MacOS Catalina 10.15.7
- LocalWP 5.9.7
- PHP 7.3.5
- Wordpress 5.6