Phpmyadmin not working 404 - please help

Hi.

phpmyadmin not wroking at all - i’m trying add access from ip, from domain - 404 or 500 error.
i’m run migrate_phpmyadmin.sh - but this not helps…
please help - what need…

Hi @sekil,

Show the output of this command:

ls -laR /etc/phpmyadmin/

/etc/phpmyadmin/:
total 28
drwxr-xr-x 3 root www-data 4096 Apr 16 05:53 .
drwxr-xr-x 127 root root 12288 Apr 16 06:29 …
-rw-r–r-- 1 root www-data 980 Apr 16 05:59 apache.conf
drwxr-xr-x 2 root www-data 4096 Apr 16 05:53 conf.d
-rw-r–r-- 1 root www-data 980 Apr 16 05:53 config.inc.php

/etc/phpmyadmin/conf.d:
total 12
drwxr-xr-x 2 root www-data 4096 Apr 16 05:53 .
drwxr-xr-x 3 root www-data 4096 Apr 16 05:53 …
-rw-r–r-- 1 root www-data 1428 Apr 16 05:53 01-localhost.php

ls -la /etc/apache2/conf.d/

in ip.conf i’m added line -

IncludeOptional /etc/apache2/conf.d/*.inc

You don’t need phpmyadmin.conf, either apache.conf in /etc/phpmyadmin/ (those were added when you executed the migration script).

rm /etc/phpmyadmin/apache.conf
rm /etc/apache2/conf.d/phpmyadmin.conf

Now execute this and show the output:

apache2ctl configtest
systemctl restart apache2
systemctl status apache2 --no-pager -l

Try to access phpmyadmin: https://yourdomain/phpmyadmin/

If it works, great, if it isn’t, check the nginx and apache logs (replace YourDomain by the actual domain):

/var/log/apache2/error.log
/var/log/apache2/domains/YourDomain.error.log
/var/log/nginx/error.log
/var/log/nginx/domains/YourDomain.error.log

I’m have one real domain on server which have static global ip address with enabled ssl with letsencrypt. and from this domain i’m have “internal error” with location /phpmyadmin

logs from apache -

[Tue Apr 16 07:37:03.562100 2024] [proxy_fcgi:error] [pid 961515:tid 139658671400512] [client X.X.X.X:0] AH01067: Failed to read FastCGI header
[Tue Apr 16 07:37:03.562156 2024] [proxy_fcgi:error] [pid 961515:tid 139658671400512] (104)Connection reset by peer: [client X.X.X.X:0] AH01075: Error dispatching request to :
[Tue Apr 16 07:37:04.404820 2024] [proxy_fcgi:error] [pid 961513:tid 139658075813440] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:04.941519 2024] [proxy_fcgi:error] [pid 961515:tid 139658100991552] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:05.409546 2024] [proxy_fcgi:error] [pid 961513:tid 139658059028032] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:05.838955 2024] [proxy_fcgi:error] [pid 961515:tid 139658067420736] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:06.168926 2024] [proxy_fcgi:error] [pid 961515:tid 139657564120640] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:06.562254 2024] [proxy_fcgi:error] [pid 961513:tid 139657572513344] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:06.897977 2024] [proxy_fcgi:error] [pid 961515:tid 139657538942528] (104)Connection reset by peer: [client X.X.X.X:0] AH01075: Error dispatching request to : (sending empty stdin)
[Tue Apr 16 07:37:07.175647 2024] [proxy_fcgi:error] [pid 961515:tid 139658949674560] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:07.500845 2024] [proxy_fcgi:error] [pid 961515:tid 139658924496448] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:08.023876 2024] [proxy_fcgi:error] [pid 961515:tid 139658688185920] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :
[Tue Apr 16 07:37:08.209368 2024] [proxy_fcgi:error] [pid 961515:tid 139658671400512] (104)Connection reset by peer: [client X.X.X.X:0] AH01074: Failed writing Environment to :

admin user have dummy test domain…

Show the output of these commands:

dpkg -l | grep libapache2-mod-php
apache2ctl -M 2>/dev/null | grep -E 'mpm|php'

root@hiestacp:/home/estenkin# dpkg -l | grep libapache2-mod-php
apache2ctl -M 2>/dev/null | grep -E ‘mpm|php’
mpm_event_module (shared)
root@hiestacp:/home/estenkin#

Then don’t know what’s going on. I would need to check it in your server.

Very strange…

I’m have working site with wordpress but not working phpmyadmin.

if i’m install phpmyadmin from apt - meybe this helps?

No, that would be worst.