PHPMYADMIN -- only works when in \wwwroot directory.

Alright, I have phpmyadmin 2.8.0.3 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.
Zlord1Asked:
Who is Participating?
 
Rob_JeffreyIT/ProgrammingCommented:
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 config.inc.php 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.
0
 
Rob_JeffreyIT/ProgrammingCommented:
I have the same setup with my server and have PHPMyAdmin working fine in a different directory.
Have you modified the $cfg['PmaAbsoluteUri'] in config.inc.php?
0
 
Zlord1Author Commented:
O.o
Huh?
Where is the config.inc.php? in the c:\php directory?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Rob_JeffreyIT/ProgrammingCommented:
config.inc.php 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.
0
 
Zlord1Author Commented:
Rob,

in the phpmyadmin\config.inc.php file I found no $cfg['PmaAbsolouteUri'], so I would assume that I didn't set it.
0
 
Rob_JeffreyIT/ProgrammingCommented:
Okay.. let me look into the setting for version 2.8.0.3  I have 2.6.3.pl1

...
0
 
str_kaniCommented:
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'] = '';

0
 
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?
0
 
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
0
 
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?
0
 
Rob_JeffreyIT/ProgrammingCommented:
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.
0
 
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 config.inc.php with it I got everything working.

Thanks for all of your help in this matter!

~Ryan
0
 
Rob_JeffreyIT/ProgrammingCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.