Created
November 8, 2022 16:53
-
-
Save vinhais/a4962013cbf019bda7c1a6f4b8a64b44 to your computer and use it in GitHub Desktop.
Caddyfile for phpMyAdmin + php-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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