Logging into http://localhost/admin

1,664 views
Skip to first unread message

Vanessa

unread,
May 31, 2011, 12:04:47 PM5/31/11
to OpenQwaq Forum
First off, I want to give a big thanks to everyone here, your comments
and suggestions have been very helpful as I have been working through
the server setup process.

I was able to get to step 10 in the Detailed Linux Instructions with
relatively few problems. However, when I go to http://localhost/admin
and I am prompted for the username and password I am unable to login
using (username)openqwaq, (password)openqwaq. I have also tried using
(username)root, (password)openqwaq, along with just about every other
combination that I can think of, but nothing seems to work.

I've gone through the setup process twice, running into this problem
both times. User openqwaq appears in the mysql.user table twice: one
entry has '%' in the host column and the other entry has 'localhost'
in the host column. A check of ~/server/admin/config.php shows:
$odbcUser="openqwaq";
$odbcPass="openqwaq";

Does anyone have any suggestions?

Thanks!

Vanessa

Sebastian Heidbrink

unread,
May 31, 2011, 12:40:23 PM5/31/11
to OpenQwaq Forum
Hi Vanessa!

Here are two thing that I can remember. I had the same problems like
you.

First of all the http://localhost/admin should ask for a login. This
is a result of a not correctly configured apache server.
Please check if you have two symlinks from your apache document root
folder to the /home/openqwaq/admin and /client folders. The link shall
also be named admin and client. I guess you are missing those symlinks
and this leads the apache server to redirect you to the login page. A
user you might be able to test is vis...@openqwaq.org pwd: openqwaq.

Once this works and you get the admin view,... which doesn't need no
login (it should also just be accessible via the server,... I think).
If the admin views are empty,... means ther ea re no servers and users
shown the problem might be that you odbc connection doesn't work
properly.
In my case I had to change my odbc.ini like this:

[OpenQwaqData]
Description = OpenQwaq Data
Driver = MySQL
Database = OpenQwaqData
Server = localhost
Port = 3306
User = openqwaq
Password = openqwaq

[OpenQwaqActivityLog]
Description = OpenQwaq Activity Log
Driver = MySQL
Database = OpenQwaqActivityLog
Server = localhost
Port = 3306
User = openqwaq
Password = openqwaq


I had to add the User and Password lines,...

Hope this helps!
Sebastian

Vanessa

unread,
May 31, 2011, 3:19:43 PM5/31/11
to OpenQwaq Forum
Hi Sebastian,

Thank you for your advice. I created symlinks as follows:
sudo ln -s /home/openqwaq/server/admin /var/www/html
sudo ln -s /home/openqwaq/client /var/www/html
sudo ln -s /home/openqwaq/server/clients /var/www/html

This resulted in 3 links in /var/www/html named admin, client, and
clients. I then tried to go to http://localhost/admin again, but I got
the same result as before (a window pops up prompting me for a
username and password, saying "Authentication Required. A username and
password are being requested by http://localhost. The site says:
"openqwaq Enterprise Server Admin Pages""). I tried logging in with
vis...@openqwaq.org and also a multitude of other usernames but
nothing worked.

I also edited my odbc.ini to include the User and Password lines, but
I'm still having the same problem. I'm relatively new to Linux, I'm
still learning my way around so thanks in advance for your patience.
If anyone has any suggestions for what might be going on they would be
greatly appreciated!

Thanks,

Vanessa


On May 31, 12:40 pm, Sebastian Heidbrink
<sebastian_heidbr...@yahoo.de> wrote:
> Hi Vanessa!
>
> Here are two thing that I can remember. I had the same problems like
> you.
>
> First of all thehttp://localhost/adminshould ask for a login. This
> is a result of a not correctly configured apache server.
> Please check if you have two symlinks from your apache document root
> folder to the /home/openqwaq/admin and /client folders. The link shall
> also be named admin and client. I guess you are missing those symlinks
> and this leads the apache server to redirect you to the login page. A
> user you might be able to test is visi...@openqwaq.org pwd: openqwaq.

Sebastian Heidbrink

unread,
Jun 1, 2011, 9:35:25 AM6/1/11
to OpenQwaq Forum
Hi Vanessa,

there's the user and password of your apache administrator needed. The
administration user you provided during your apache installation.
Maybe you can also add your openqwaq user to the group of apache
users,... but I'm not 100% sure if that works.

Just for trying you can also change the apache configuration of your
openqwaq sites to enable acces by everybody. This is how to do it,...
I did it the same way.

In your OpenQwaq-http.conf,... right at the end.
Mine looks like:
<Directory "/home/openqwaq/server/admin">
DirectoryIndex index.php index.html
AuthName "openqwaq Enterprise Server Admin Pages"
AuthType Digest
AuthUserFile /home/openqwaq/server/etc/OpenQwaq-digests
Require valid-user

Options -Indexes FollowSymlinks
AllowOverride None
Order allow,deny
#Allow from localhost.localdomain
Allow from all
Satisfy any
</Directory>

Allow from all is the change.
This may only be done for testing purposes. This way everybody has
acces to the admin site.
I encountered the same problem like you did. I have no idea how to add
the currently logged in linux user to the valid-user list.

I did some other changes,.. just let me know if this doesn't work for
you.

Sebastian
Message has been deleted

Vanessa

unread,
Jun 1, 2011, 12:27:57 PM6/1/11
to OpenQwaq Forum
Hi Sebastian,

Thank you so much for your help, I am now able to access http://localhost/admin!

Vanessa

Ron Teitelbaum

unread,
Jun 1, 2011, 1:58:46 PM6/1/11
to open...@googlegroups.com
Congratulations!!

Ron

tom

unread,
Jun 6, 2011, 6:13:09 AM6/6/11
to OpenQwaq Forum
hi again, I´ve installed and configured everything again (guess 5
times now ;)), but still no success, I can access http://localhost/admin,
but when I try to create a user it says: "unable to connect to
http://localhost:9991/coal/createUser"

any ideas? by the way, if i change the line in OpenQwaq-http.conf
"#Allow from localhost.localdomain", I am prompted a user and password
(on every site), but can´t login with my standard-mysql user
"openqwaq"!

thanks a lot for your help!!!

Tom
Reply all
Reply to author
Forward
0 new messages