Skip to content

Instantly share code, notes, and snippets.

@vinhais
Created November 8, 2022 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinhais/a4962013cbf019bda7c1a6f4b8a64b44 to your computer and use it in GitHub Desktop.
Save vinhais/a4962013cbf019bda7c1a6f4b8a64b44 to your computer and use it in GitHub Desktop.
Caddyfile for phpMyAdmin + php-fpm
# Caddyfile to serve phpMyAdmin with PHP 8.0.
#
# apt install php8.0 php8.0-{mysqli,mbstring,fpm,zip} phpmyadmin
# systemctl start php8.0-fpm
# ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
#
https://phpmyadmin.domain {
root * /var/www/phpmyadmin
encode zstd gzip
php_fastcgi unix//run/php/php8.0-fpm.sock
file_server
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment