script installer for PHPmyadmin: mixed up versions

phpMyAdmin - 2.11.8.1deb5+lenny9 is already installed on my server

I tried to install the latest 3.4.3.1 using Virtualmin installer, which reported successful install.

However, when I hit the URL, I still get the 2.11 version- both urls get to the exactly same initial phpMyAdmin install apparently

What is wrong?
Isn’t it allowed to have several install of Virtualmin? shall I uninstall my current version to allow the newest working?

Thanks

“Several install of Virtualmin”?? I doubt you even CAN install Virtualmin multiple times on the same machine. :slight_smile:

Or were you referring to phpMyAdmin? Well, I suppose you can have multiple of those, when installed in separate directories. So you had version 2.11 installed outside of VM and then 3.4.3 installed through VM? What paths did you use for both of them? Or did you use subdomains? Are both in domains under VM control? Is the Apache config correct? What does the “Preview Website” function show?

Yes, my mistake: I speak about multiple phpAdmin installs.

both phpAdmin are in different directories of course.
the VM phpAdmin is installed in a phpadmin subdirectory within a web site domain
When I click on the script installed path, I get to the 2.11 version

the 2.11 is in /usr/share/phpmyadmin, not under VM control
there is a /etc/phpmyadmin/apache.conf that contains the following

# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<Files setup.php>
    # For Apache 1.3 and 2.0
    <IfModule mod_auth.c>
	AuthType Basic
	AuthName "phpMyAdmin Setup"
	AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    # For Apache 2.2
    <IfModule mod_authn_file.c>
	AuthType Basic
	AuthName "phpMyAdmin Setup"
	AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    Require valid-user
</Files>
<IfModule mod_php4.c>
	AddType application/x-httpd-php .php

	php_flag magic_quotes_gpc Off
	php_flag track_vars On
	php_flag register_globals Off
	php_value include_path .
</IfModule>
<IfModule mod_php5.c>
	AddType application/x-httpd-php .php

	php_flag magic_quotes_gpc Off
	php_flag track_vars On
	php_flag register_globals Off
	php_value include_path .
</IfModule>

Howdy,

Unfortunately, you can’t have both.

The aliases for your system-wide install in /usr/share are overriding the per-domain phpMyAdmin install.

The only way that would work is if you chose a directory name other than “phpmyadmin” when installing the Install Script.

That, or don’t use a system-wide install like that, and do two Install Script installations into that Virtual Server.

-Eric

Thanks!

Yes, I was just about to suggest a similar thing, to remove that non-Virtualmin-controlled instance of phpMyAdmin, and then let VM do its thing. :slight_smile:

Changing the directory name to something else than phpmyadmin made it.
I will also remove this useless, obsolete Debian version of phpmyadmin, but I preferred to make the VM one working before getting rid off the other.

Thanks again for your wise help.