Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

phpmyadmin - not loading - error 500

$
0
0
Hi.

I have been working at this for a bit. I am just not sure what I should try next.

When in Chrome I try url:

localhost/phpmyadmin

All I get is:

This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500

When I try the same url in Firefox is just get a blank screen.

The /var/log/apache2/access.log shows the following entry each time I try to connect from chrome
::1 - - [20/Feb/2025:13:09:46 -0700] "GET /phpmyadmin/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
And when I try to connect from Firefox I see:
127.0.0.1 - - [20/Feb/2025:13:11:53 -0700] "GET /phpmyadmin/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"

It seems Firefox is using ipv4 and Chrome is using ipv6... I suspect this is irrelevant. I did notice that when in Chrome I try to look at my user page ~/public_html/index.php by using the url in chrome localhost/~user/ it just shows the contents of index.php which is:

<?PHP
phpinfo();
?>

in this case. Oddly Firefox if I use the same url it actually process the php and sends the page. Anyway the actual issue is that phpmyadmin is not opening. I thought there might be some relevance here. Not sure.
I do get the full php info page when I use localhost/~user/index.php in Chrome and Firefox gives me this page just using the url localhost/~user/. The default apache page is served when I use localhost only as a url. I opened up the www port (80) and I get the same from a remote computer on my network.

/var/log/apache2/error.log shows:
Thu Feb 20 13:11:53.403468 2025] [php:error] [pid 9421:tid 9421] [client 127.0.0.1:43450] PHP Fatal error: Uncaught Error: Failed opening required 'Composer/CaBundle/autoload.php' (include_path='.') in /usr/share/phpmyadmin/autoload.php:4\nStack trace:\n#0 /usr/share/phpmyadmin/index.php(36): require()\n#1 {main}\n thrown in /usr/share/phpmyadmin/autoload.php on line 4

for each attempt to open url localhost/phpmyadmin.

file /usr/share/phpmyadmin/autoload.php does exist and it has permissions:
-rw-r--r-- 1 root root 78082 Feb 8 2023 autoload.php

Do I have to change it to www-data group/owner?

I did not see that requirement anywhere? I assume phpmyadmin and its components runs as root? IDK

When setting up phpmyadmin I uncommented all of the lines:

$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

in /usr/share/phpmyadmin/config.inc.php which I copied from config.sample.inc.php which is in the same directory.
I also added the line
$cfd['TempDir']= '/var/lib/phpmyadmin/tmp';
at the bottom of the file

I notice that there is a config.inc.php in /var/www/html/phpmyadmin as well.??

Composer is installed on the machine. If I type composer at a prompt it shows the help screen.
Is composer a requirement of the phpmyadmin package?

Any direction would be greatly appreciated.

Thanks, Mark

Statistics: Posted by mark-bboy — 2025-02-20 20:43 — Replies 0 — Views 37



Viewing all articles
Browse latest Browse all 3474

Trending Articles