PHPMYADMIN -- only works when in \wwwroot directory.

Alright, I have phpmyadmin on a Server 2k3 machine with IIS installed.
The weird thing is... when I have the phpmyadmin files in the \wwwroot\phpmyadmin directory, it gives me a weird error.
Error ~ pa
th to languages is invalid ./lang/

HOWEVER when I have the phpmyadmin files in the \wwwroot\ directory, phpmyadmin works just fine.

Help me out here?
Answer will be accepted once phpmyadmin works for me in its directory.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I have the same setup with my server and have PHPMyAdmin working fine in a different directory.
Have you modified the $cfg['PmaAbsoluteUri'] in
Zlord1Author Commented:
Where is the in the c:\php directory?
Rob_JeffreyIT/ProgrammingCommented: is in the root of the PHPMyAdmin folder.  It holds the settings for PHPMyAdmin.
You will have to edit this file to change the settings for your server such as the MySQL Server's name, the user anme and password, etc.
Hope this helps.
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Zlord1Author Commented:

in the phpmyadmin\ file I found no $cfg['PmaAbsolouteUri'], so I would assume that I didn't set it.
Okay.. let me look into the setting for version  I have 2.6.3.pl1

That was interesting.  I had a heck of a time installing the new version.
It comes with a neat little script that will allow you to choose your options like server name and such but it just would not work for me at all.

The default configuration file is located in the {phpadmin}/libraries/config.default.php
I copied this file to the base phpmyadmin folder {phpadmin} and changed the name to and made my changes directly.
I didn't have to set the $cfg['PmaAbsolouteUri'] variable this time around - all I had to change was the MySQL username and password - it works fine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
for me, it sounds like an incomplete download/foldeer. make sure you have all the files...

it may be there around line number 39,

$cfg['PmaAbsoluteUri'] = '';

Bernard S.CTOCommented:
< < Error ~ path to languages is invalid ./lang/ >>
So it says it could not access the lang subdir which is under the phpmyadmin dir.
1 - chech that this subdir is indeed present in  \wwwroot\phpmyadmin\
2 - check which are the access rigths to this foldre, and that they are readable by all users

Any comment?
Zlord1Author Commented:
Flbo -- I'm going to set read rights to "everyone". See if that helps, even though I'm logged on as administrator.

Also, the \lang\ sub is indeed in the \wwwroot\phpmyadmin directory
Zlord1Author Commented:
New information

Upon giving the "everyone" group rights in the phpmyadmin sub, it began "working" kind of.

Once I logon to the phpmyadmin interface, it redirects to http://localhost/index.php?

Why is it redirecting to the root of localhost?
Just to let you know - being logged on as administrator won't matter since the web server is running under a different user, which may have different permissions.

(You just found this out - I was typing while you were writting the above)

Now you should look into using the other ptions in the config file such as the $cfg['PmaAbsoluteUri'] setting.

Do a quick search through it for the text 'localhost' to see if you can replace it with the proper .com name.
Zlord1Author Commented:
Alright Rob, I didn't use the $cfg['PmaAbsoluteUri'] setting, but I followed another piece of your advice.

By copying the config.default.php file from the /libraries/ directory and replacing with it I got everything working.

Thanks for all of your help in this matter!

No problem.
I had a heck of a time too, but it does seem better than the old version I was using.
Thanks for the points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.