Unable to login on fresh install.

1 view
Skip to first unread message

Mark Napper

unread,
Jan 12, 2008, 1:08:27 AM1/12/08
to webdns-support, m.na...@coreix.net
Hi,

I've just completed installing WebDNS 1.4.6 with Horde 3.1.6.

I am encountering two issues:

1. When accessing http://server/webdns it redirects to http://server/login.php
instead of http://server/webdns/login.php (can't give real addresses
as the server is on a private IP at the time of writing.) I have to
fire up http://server/webdns/horde/ is this normal?

2. Having completed the install and trying to login for the first time
I get the error: "Error Login failed, please try again."

Currently running on a brand new Debian 4.0 install with Apache 2.2,
PHP 5.2.0-8+etch9, MySQL 5.0.32

Any suggestions on how to resolve this would be appreciated as I'd
like to move our DNS platform from Tinydns to PowerDNS.

Many thanks in advance,


Mark Napper
Technical Support Manager,
Coreix Ltd - http://www.coreix.net
E: m.na...@coreix.net
T (UK): 08452 26 26 20
T (Worldwide): +44 208 099 7475

John Morrissey

unread,
Jan 12, 2008, 4:34:49 PM1/12/08
to webdns-...@googlegroups.com
On Fri, Jan 11, 2008 at 10:08:27PM -0800, Mark Napper wrote:
> 1. When accessing http://server/webdns it redirects to http://server/login.php
> instead of http://server/webdns/login.php (can't give real addresses
> as the server is on a private IP at the time of writing.) I have to
> fire up http://server/webdns/horde/ is this normal?
>
> 2. Having completed the install and trying to login for the first time
> I get the error: "Error Login failed, please try again."

Can you post your webdns and horde stanzas from horde/config/registry.php,
please?

john
--
John Morrissey _o /\ ---- __o
j...@horde.net _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__

Mark Napper

unread,
Jan 15, 2008, 7:46:21 AM1/15/08
to webdns-support


On Jan 12, 9:34 pm, John Morrissey <j...@horde.net> wrote:
> On Fri, Jan 11, 2008 at 10:08:27PM -0800, Mark Napper wrote:
[snip]

> Can you post your webdns and horde stanzas from horde/config/registry.php,
> please?

[snip]

Stanza for webdns:

$this->applications['webdns'] = array(
'fileroot' => dirname(__FILE__) . '/../..',
'webroot' => '/webdns',
'name' => _("WebDNS"),
'status' => 'active',
'templates' => dirname(__FILE__) . '/../../templates',
'provides' => 'dns_management'
);


Stanza for Horde:

$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => _detect_webroot(),
'initial_page' => 'login.php',
'name' => _("Horde"),
'status' => 'hidden',
'templates' => dirname(__FILE__) . '/../templates',
'provides' => 'horde'
);


WebDNS is installed in /var/www/webdns

horde is in /var/www/webdns/horde.

My own attempts at obtaining more detailed error messages resulted in
the spectacularly useful "failed" from the horde authentication class.

Mark Napper
Technical Support Manager,
Coreix Ltd - http://www.coreix.net
E: m.nap...@coreix.net

John Morrissey

unread,
Jan 15, 2008, 8:30:23 AM1/15/08
to webdns-...@googlegroups.com
On Tue, Jan 15, 2008 at 04:46:21AM -0800, Mark Napper wrote:
> Stanza for Horde:
>
> $this->applications['horde'] = array(
> 'fileroot' => dirname(__FILE__) . '/..',
> 'webroot' => _detect_webroot(),
> 'initial_page' => 'login.php',
> 'name' => _("Horde"),
> 'status' => 'hidden',
> 'templates' => dirname(__FILE__) . '/../templates',
> 'provides' => 'horde'
> );

The only reason that comes to mind is that _detect_webroot() is incorrectly
setting the webroot to '/' for Horde; try explicitly setting it to
'/webdns/horde' instead.

Mark Napper

unread,
Jan 15, 2008, 9:00:02 AM1/15/08
to webdns-support


On Jan 15, 1:30 pm, John Morrissey <j...@horde.net> wrote:
> On Tue, Jan 15, 2008 at 04:46:21AM -0800, Mark Napper wrote:

[snip]
>
> The only reason that comes to mind is that _detect_webroot() is incorrectly
> setting the webroot to '/' for Horde; try explicitly setting it to
> '/webdns/horde' instead.

[snip]

This has fixed the horde issue it seems. However it still reports as
failed when logging in with the admin details I set in
webdns_tables.sql during the initial install. Is there anyway I can
get detailed error messages to be output so that I can troubleshoot?

Mark Napper

unread,
Jan 16, 2008, 5:17:08 AM1/16/08
to webdns-support
[snip]

> This has fixed the horde issue it seems. However it still reports as
> failed when logging in with the admin details I set in
> webdns_tables.sql during the initial install. Is there anyway I can
> get detailed error messages to be output so that I can troubleshoot?

Just so people know I fixed this myself in a moment of inspiration.
Check the permissions on the database and found them to be quite
restrictive. Granted the database user full access and am now able to
use WebDNS.

Mark Napper
Technical Support Manager,
Coreix Ltd -http://www.coreix.net
Reply all
Reply to author
Forward
0 new messages