[dev] jonah update error

Jan Schneider jan@horde.org
Fri, 16 Nov 2001 17:08:22 +0100


Zitat von "Scott A. Sibert" <ehorde@hollins.edu>:

> Hi Jan.
> 
> Thanks for your reply.  I thought there were two ways to update Jonah 
> information, one as the web server user (which requires write access to
> 
> the data files) and one as the local root (which would not require the 
> web server user to have write access).
> 
> update.sh has a web browser (lynx) calling backend.php, but not calling
> 
> cli-backend.php.  I figured that cli-backend.php meant it was a 
> command-line-interface to backend.php.

You're absolutely right. I had backend.php in mind when talking about cli-
backend. But the rest of my message is still true. backend.php is just 
included in cli-backend.php so it still looks for http headers if you use 
authentication.

I also just commited a change to cli-backend so that it calls backend 
correctly.

Jan.
 
> Am I completely confused?
> --Scott
> 
> Jan Schneider wrote:
> 
> >Zitat von "Scott A. Sibert" <ehorde@hollins.edu>:
> >
> >>I'm trying to run "php ./cli-backend.php" and it comes back with a
> huge
> >>
> >>HTML dump, the top of which has an error 401 Unauthorized.
> >>
> >>I'm sure it is just a configuration error somewhere but I'm not sure 
> >>where to look.  In jonah/config/conf.php under [admin][ips] I've put 
> >>('127.0.0.1','the.mach.ip.addr') and it still gives me the error.  I'd
> 
> >>rather run the cli-backend.php rather than update.sh because lynx (or
> 
> >>something) seems to timeout if the update takes more than five
> minutes.
> >>
> >> I figured directly running the script would avoid that problem.
> >>
> >>I have authpw = yes, a username, password and authip = yes.  This is 
> >>with around 2pm yesterday's updates from CVS for everything.  I
> haven't
> >>
> >>been able to run the cli-backend.php ever, so I don't think this is a
> 
> >>code version problem.
> >>
> >
> >This can't work. If you enable authentication by username/password
> and/or 
> >ip you must use a browser to call cli-backend.php. Where else shoud it
> get 
> >the necessary header informations from?
> >If you disable authentication it may work.
> >
> >Jan.
> >
> >::::::::::::::::::::::::::::::::::::::::
> >AMMMa AG - discover your knowledge
> >:::::::::::::::::::::::::::
> >Detmolder Str. 25-33 :: D-33604 Bielefeld
> >fon +49.521.96878-0 :: fax  +49.521.96878-20
> >http://www.ammma.de
> >::::::::::::::::::::::::::::::::::::::::::::::
> >
> 
> 
> 
> -- 
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
> 
> 


Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::