Domains.php issue?

0 views
Skip to first unread message

strerror

unread,
Nov 26, 2007, 10:26:52 AM11/26/07
to webdns-support
heya,

I've just installed webdns following the quick instructions. The
problem is when I go to the url I get the following error:

Fatal error: Cannot re-assign $this in /var/www/vhosts/webdns/lib/
Domains.php on line 1357

As I've got no real skills with php I don't know where to start. I
initially thought it was simply a wrong configuration statement but I
can't see where that would be as I followed the instructions to the
letter. The below are the relevant versions etc:

https://svn.bountysource.com/webdns/trunk/ - co at revision 115
php 5.2.5
horde 3.1.4
apache 2.2.6

let me know what other info you need.

John Morrissey

unread,
Nov 26, 2007, 7:22:23 PM11/26/07
to webdns-...@googlegroups.com
On Mon, Nov 26, 2007 at 07:26:52AM -0800, strerror wrote:
> Fatal error: Cannot re-assign $this in /var/www/vhosts/webdns/lib/
> Domains.php on line 1357
[snip]

> https://svn.bountysource.com/webdns/trunk/ - co at revision 115
> php 5.2.5
> horde 3.1.4
> apache 2.2.6

Try the change I just committed, r116?

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

John Morrissey

unread,
Nov 27, 2007, 8:29:22 AM11/27/07
to webdns-...@googlegroups.com
On Tue, Nov 27, 2007 at 02:21:22AM -0800, strerror wrote:
> On Nov 27, 12:22 am, John Morrissey <j...@horde.net> wrote:
> > Try the change I just committed, r116?
>
> thanks, that seems to have fixed that problem, however, it's still not
> working. There are no errors in apache at all but the access_log
> shows:
>
> 193.130.144.100 - strerror [27/Nov/2007:10:17:53 +0000] "GET /
> index.php/login.php?url=%2Findex.php%2Flogin.php%3Fhttps%3A%2F
> %2Fwebdns.disciplina.net%2Findex.php%2Flogin.php%3Furl%3D%252Findex.php
> %252Flogin.php%253Fhttps%253A%252F%252Fwebdns.disciplina.net
> %252Findex.php%252Flogin.php%253Furl%253D%25252Findex.php
[snip]
> it just sits there in a loop. Is this something specific to my vhost
> configuration or an issue with the code?

This is often the sign of a misconfigured/misdetected webroot. Please post
your registry.php sections for horde and webdns.

strerror

unread,
Nov 27, 2007, 8:46:10 AM11/27/07
to webdns-support


On Nov 27, 1:29 pm, John Morrissey <j...@horde.net> wrote:
> This is often the sign of a misconfigured/misdetected webroot. Please post
> your registry.php sections for horde and webdns.

from horde/config/conf.php
$conf['cookie']['path'] = '/webdns/horde';

from horde/config/registry.php
$this->applications['webdns'] = array(
fileroot' => dirname(__FILE__) . '/../..',
'webroot' => '/webdns',
'name' => _("WebDNS"),
'status' => 'active',
);

vhost has /var/www/webdns.example.com/webdns as directory root, and
webdns is a subdir of that, ie /var/www/webdns.example.com/webdns/
webdns (silly path because I originally wanted to just go to
https://webdns.example.com and NOT have to specify https://webdns.example.com/webdns

thanks,

John Morrissey

unread,
Nov 28, 2007, 9:19:09 AM11/28/07
to webdns-...@googlegroups.com
On Tue, Nov 27, 2007 at 05:46:10AM -0800, strerror wrote:
> On Nov 27, 1:29 pm, John Morrissey <j...@horde.net> wrote:
> > This is often the sign of a misconfigured/misdetected webroot. Please
> > post your registry.php sections for horde and webdns.
>
> from horde/config/conf.php
> $conf['cookie']['path'] = '/webdns/horde';

This should be:

$conf['cookie']['path'] = '/webdns';

I suspect the reason you get caught in the redirection loop is because your
browser isn't submitting the cookie due to the incorrect cookie path.

strerror

unread,
Nov 28, 2007, 11:05:19 AM11/28/07
to webdns-support
heya,

On Nov 28, 2:19 pm, John Morrissey <j...@horde.net> wrote:
> This should be:
>
> $conf['cookie']['path'] = '/webdns';
>
> I suspect the reason you get caught in the redirection loop is because your
> browser isn't submitting the cookie due to the incorrect cookie path.

I've actually tried it with all variations, still same problem.

regards,

John Morrissey

unread,
Nov 28, 2007, 11:56:37 AM11/28/07
to webdns-...@googlegroups.com

Your goal is to have WebDNS at the root of this virtual host, right (/ ==
webdns, /horde == horde)? These are the registry.php settings from a live
installation configured that way. I'd recommend clearing your browser's
cookies in between attempts, to ensure a clean slate.

$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => '/horde',
'initial_page' => 'index.php',


'name' => _("WebDNS"),

'status' => 'hidden',
'templates' => dirname(__FILE__) . '/../templates',
'provides' => 'horde'
);

$this->applications['webdns'] = array(
'fileroot' => dirname(__FILE__) . '/../..',

'webroot' => '',


'name' => _("WebDNS"),
'status' => 'active',
);

john

strerror

unread,
Nov 29, 2007, 4:12:38 AM11/29/07
to webdns-support
On Nov 28, 4:56 pm, John Morrissey <j...@horde.net> wrote:
> Your goal is to have WebDNS at the root of this virtual host, right (/ ==
> webdns, /horde == horde)? These are the registry.php settings from a live
> installation configured that way. I'd recommend clearing your browser's
> cookies in between attempts, to ensure a clean slate.
>
> $this->applications['horde'] = array(
> 'fileroot' => dirname(__FILE__) . '/..',
> 'webroot' => '/horde',
> 'initial_page' => 'index.php',
> 'name' => _("WebDNS"),
> 'status' => 'hidden',
> 'templates' => dirname(__FILE__) . '/../templates',
> 'provides' => 'horde'
> );
>
> $this->applications['webdns'] = array(
> 'fileroot' => dirname(__FILE__) . '/../..',
> 'webroot' => '',
> 'name' => _("WebDNS"),
> 'status' => 'active',
> );
>

thanks, the above works. You might want to update the dox a little to
make this configuration clearer, judging by the archives for this list
I'm not the only one running into this problem.

On a different note, I already have a working horde framework running
the usual apps on this machine. Is it possible (I assume yes) to
integrate webdns into that? Is it recommended (I assume no) to do so?
Being a bit of a horde noob I thought I'd ask and see what the general
consensus was here and also to ask, even if I don't tie it into the
existing horde framework what would need to be done to authenticate
users off of a ldap backend rather then say the current mysql backend?
Reply all
Reply to author
Forward
0 new messages