Sign inSign up

hetsh/php-mkl

By hetsh

•Updated 2 days ago

PHP FastCGI Process Manager, equipped with extensions for mkl website.

Image
0

6.9K

hetsh/php-mkl repository overview

⁠PHP MKL

PHP FastCGI Process Manager, equipped with extensions for mkl website.

⁠Running the server

docker run --detach --publish 9000:9000 --mount type=bind,source="/path/to/app",target="/path/to/app" --name php-mkl hetsh/php-mkl

The php source files of your app must to be mounted, so that FPM can access them.

⁠Stopping the container

docker stop php-mkl

⁠Configuration

Adjustments can be made via a custom php.ini file. It can be mounted readonly:

--mount type=bind,readonly,source="/path/to/php.ini",target="/etc/php/php.ini"

⁠Automate startup and shutdown via systemd

The systemd unit can be found in my GitHub repository⁠.

systemctl enable php-mkl.service --now

By default, the systemd service assumes /srv/mkl/site for website data, /var/log/php-mkl for logs and /etc/localtime for timezone. Since this is a personal systemd unit file, you might need to adjust some parameters to suit your setup.

⁠Fork Me!

This is an open project (visit GitHub⁠). Please feel free to ask questions, file an issue or contribute to it.

Tag summary

Content type

Image

Digest

sha256:d4dae5f7f…

Size

23 MB

Last updated

2 days ago

docker pull hetsh/php-mkl