diff --git a/logbook/aguia-pescadora-bravo.sh b/logbook/aguia-pescadora-bravo.sh index d91c733..3e2d962 100644 --- a/logbook/aguia-pescadora-bravo.sh +++ b/logbook/aguia-pescadora-bravo.sh @@ -1293,6 +1293,12 @@ sudo systemctl reload nginx sudo certbot --nginx -d phpmyadmin.apb.etica.ai +## Hotfix erro "Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable" +# @see https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/50536059#50536059 +# Caso tenha esse erro execute uma vez logo após instalação: +sudo sed -i "s/|\s*\((count(\$analyzed_sql_results\['select_expr'\]\)/| (\1)/g" /usr/share/phpmyadmin/libraries/sql.lib.php + + # TODO: por alguma proteção, mesmo que simples, para evitar bruteforce de bots # em https://phpmyadmin.apb.etica.ai/ (fititnt, 2019-05-21 00:23 BRT) diff --git a/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf b/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf index 86e81cc..5050cb7 100644 --- a/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf +++ b/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf @@ -19,6 +19,7 @@ server { location ~ \.php$ { include snippets/fastcgi-php.conf; + # fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_pass unix:/var/run/php/php7.2-fpm-phpmyadmin.sock; } diff --git a/logbook/aguia-pescadora-bravo/etc/phpmyadmin/conf.d/config.inc.php b/logbook/aguia-pescadora-bravo/etc/phpmyadmin/conf.d/config.inc.php new file mode 100644 index 0000000..440b04b --- /dev/null +++ b/logbook/aguia-pescadora-bravo/etc/phpmyadmin/conf.d/config.inc.php @@ -0,0 +1,3 @@ +