elementor / lokl

Instant WordPress local development for Mac, Win & Linux
https://lokl.dev
71 stars 10 forks source link

Add php core extensions fileinfo, pdo_mysql #18

Open open-forest opened 3 years ago

open-forest commented 3 years ago

And thanks so much for this great tool!

leonstafford commented 3 years ago

Thanks @open-forest! It's about to get a lot cooler :)

Will get those in soon. If you're in urgent need, think something like apk add php7-fileinfo will work for both, with the pdo_mysql requiring a php.ini to have that related line uncommented, too. I can't remember if current Lokl version offers the menu option to SSH into the container, but that will definitely be available in next release.

open-forest commented 3 years ago

The apk command works fine. apk add php7-fileinfo and apk add php7-pdo_mysql. No php.ini modifications needed; I did restart the docker image after installing, and then everything worked fine. I can confirm that lokl works like a breeze in the Linux container of my Pixel Slate Chromebook. It took a couple of minutes to figure out how to install Docker on the Chromebook, then how to make docker executable by a non-root user, and then how to access localhost:4123 from the Chrome browser (http://penguin.termina.linux.test:4123 did the trick). Brilliant setup!

leonstafford commented 3 years ago

@open-forest, cool! Didn't read before that you'd got it running in a that Chromebook Pixel Slate - how do you find it for typing/working on? I haven't run a tablety thing since a Surface Pro, but found them hard to balance on my lap on a sofa, in my terribly unergonomic position :D

I just run a new php7 image with that change to Dockerfile and all good now. fileinfo was available on both my 7 and 8 images already, but those were likely updated quite a lot since what's still the stable release on webpage. Doing an extra check to make sure pdo_mysql is enabled for the PHP 8 image now, but should be fine.

Almost where I want to be to put new release of all this out there publicly, but also don't want to rush it...