I am trying to upgrade a phpmyadmin install on a (remote, VM) Debian 10 without success.
I followed install instructions at computingforgeeks.com, and at first - when i tried to access http://path.tld/phpmyadmin - I just got a The connection was reset
msg.
Thanks to a old post by papasj, I checked that I may get a fine response for http://path.tld/phpmyadmin/test.html (test.html file under /usr/share/phpmyadmin), hence the issue should be that php files under /usr/share/phpmyadmin are not being processed.
I tried a hint by papasj to include a ProxyPassMatch
line within /etc/apache2/conf-available//etc/apache2/conf-available
:
ProxyPassMatch ^/phpmyadmin/(.*\.php(/.*)?)$ unix:/var/run/php8.1-fpm.sock|fcgi:///usr/share/phpmyadmin/
and things improved a little, since now I get a Bad Request Your browser sent a request that this server could not understand
. Apache2 error.log claims that [proxy_fcgi:error] [pid .....] [client .....] AH01059: error parsing URL //: Invalid host/port
. I am not sure how to understand/fix the last error. I tried a few variants for the ProxyPassMatch
line, without any success.
- Apache/2.4.38 (Debian)
- PHP 8.1.9
- System 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
- Server API FPM/FastCGI
Within /etc/php/8.1/fpm/pool.d/www.conf
I see listen = /run/php/php8.1-fpm.sock
.
systemctl status php8.1-fpm.service
and systemctl status apache2
reply fine.
FPM/FastCGI
, ProxyPassMatch
, .... is uncharted territory for me,
I have been stuck for a couple of days, and I appreciate your help.