docker-xampp icon indicating copy to clipboard operation
docker-xampp copied to clipboard

disable mysql?

Open NazgulCoder opened this issue 1 year ago • 2 comments

Hello,

I have everything working correctly, is there a way to disable all the services except Apache to make it lighter and faster?

NazgulCoder avatar Mar 16 '24 23:03 NazgulCoder

Hey, this container is focused on providing the entire apache-mysql-php stack. That means adding an option to disable one of those components isn't a priority for me. If you insist on using this container, you can run lampp stopmysql to stop the MySQL service but it might restart if you restart the container which is far from perfect.

If all you need is php and want a lightweight container, I recommend using the php-fpm container. It's much smaller than this one.

tomsik68 avatar Mar 17 '24 06:03 tomsik68

Hey thank you very much for your kind help.

The thing i was trying to do its something "weird" because i tried to create with composer a PHP:apache container with some extensions but for some reason the GD extension Is missing some library. Funny because on my local xampp (and your docker container) It works perfectly. I even matched same PHP.ini settings etc etc.

Ofc I don't wanna go in production with xampp for many reasons even if my docker setup Is pretty robust and everything passes from a reverse proxy.

I thank you for the suggestion of that php-fpm container which looks great, but do you know if URL rewrite module Is enabled there?

NazgulCoder avatar Mar 17 '24 08:03 NazgulCoder