tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
197 stars 109 forks source link

How do I install a PHP module like IMAGICK? #50

Closed texasag99 closed 8 months ago

texasag99 commented 1 year ago

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

How do I access phpmyadmin?

Thank you!

tomsik68 commented 1 year ago

Hello!

I believe you should be able to access phpmyadmin at this URL: http://localhost:41062/phpmyadmin/. Let me know if that doesn't work.

As for installing imagick, I recommend you create your own container derived from this one. You can test something like this:

FROM tomsik68/xampp:8     # feel free to change the tag to whatever you need!

RUN apt install php-imagick && echo "extension=imagick" >> /opt/lampp/etc/php.ini   # beware I didn't check the php.ini location..

Note that you'll need to make tweaks to this setup as I didn't test it, but it should be enough to get you started.

Feel free to refer to this article: https://www.linuxcapable.com/how-to-install-php-imagemagick-imagick-on-debian-11-bullseye/#Install_PHP_ImageMagick

tomsik68 commented 8 months ago

Closing for inactivity. Feel free to re-open if you have any additional questions.