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

System and Network configuration • phpmyadmin - not loading - error 500

$
0
0
I found the solution.

The apache2 configuration file for my Debian 12 setup which is:

/etc/apache2/conf-available/phpmyadmin.conf

was left over from a prior attempt that I had made at installing phpmyadmin shortly after Bookworm came out where I think I was following an online tutorial. I can't remember why I did not just use the debian package. Or maybe I did. Not sure.

All I know for sure is that using

sudo apt-get purge phpmyadmin was not removing the apache2 config file mentioned above.

After reviewing the debian installation notes in /usr/share/doc/phpmyadmin

I realized that I could try the packaged apache2 configuration file that is packaged with phpmyadmin but it is
put in /etc/phpmyadmin/apache.conf

So renamed the phpmyadmin.conf in the /etc/apache2/conf-available directory something conspicuous so it would not be included and then I created a link named /etc/apache2/conf-available/phpmyadmin.conf to /etc/phpmyadmin/apache.conf.

The Debian supplied /etc/phpmyadmin/apach.conf has the following line in it:

php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/:/usr/share/javascript/

I suspect that this is the line that provides the path allowing PHP to find the package it was complaining it could not find.

Shazam. It works!!!! I hope this helps someone who has this error.

I also had a random copy of config.inc.php in /var/www/html/phpmyadmin/ . I deleted it. It could have been something I accidentally put there from downloading it from a tutorial site. Anyway it is my understanding that there is no way an include file is getting used from the web directory. It was exposed to people fishing around my web server so I blew it away. The phpmyadmin.conf that I had renamed which likely was a remenant of a misguided prior attempt I also deleted. I think I am at a pristine and working Debian 12 install now.

Statistics: Posted by mark-bboy — 2025-03-05 02:18 — Replies 5 — Views 1795



Viewing all articles
Browse latest Browse all 3567

Trending Articles