[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Re: installing tutos2 - almost solved



On Sun, Jun 10, 2007 at 11:11:50AM +0200, csanyipal wrote:
> On Sat, Jun 09, 2007 at 06:34:29PM -0400, Roberto C. Sánchez wrote:
> 
> > > I run the [tutos_dir]/tutos/php/admin/scheme.php and create 
> > > successfully the tables in the tutos database, & create the superuser 
> > > with password "tutos".
> > > 
> > > But I can't to change the superusers password!
> > > 
> > Hmm.  How are you trying to change the password?
> 
> Login as superuser (I can to login only with the superuser account.) 
> Then click on the Settings on the navigation bar.
> So, I can't to find any place where I can to change the superusers 
> password.
> 
I'm sorry I don't understand,  but which application are you using for
this?

> I try to change this password with the phppgadmin, but there, in the 
> people table in tutos database the password is stored in an encrypted 
> way. 
> 
IIRC, phppgadmin has a user management function.  You should not need to
modify the users table directly.

> So, in this version of tutos-2 on Etch how can I change the superusers 
> password?
> 
I usually change the user's passowrd by logging in using the command
line client and using the 'ALTER USER' SQL statement.  It supports
encrypting the password as well.

> > > > What errors?
> > > 
> > > Fatal error: Call to undefined function: loadlayout() in 
> > > /usr/share/tutos/php/admin_show.php on line 16
> > > 
> > > I get this error message above when click with mouse on the navigation 
> > > bar on the "Administrator" link, when I'm logged in as superuser.
> > > 
> > Looks like a PHP problem.
> 
> What can I do to solve this problem?
> 
I'm not sure.  I am not a PHP expert.

> > > And can't to login as "demo" with password "guest".
> > > 
> > Does it log an error in this case?
> 
> Yes. In the tutos error log I can find these messages:
> ---------------------------------->
> DateTime:       10.Jun.2007 10:38:32 CEST
> Errno:          8
>                 Undefined index:  Bug
> LastQuery:      INSERT into messages (ts,message) \ 
> values ('06-10-2007 10:38:31','not unique 0 Result \ 
> for demo / guest (127.0.0.1)')
> File:           /usr/share/tutos/php/layout/layout.pinc +564
> Browser:        Mozilla/5.0 (X11; U; Linux i686; hu; \
> rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 \
> (Debian-2.0.0.3-1)
> Language:       hu-hu,hu;q=0.8,en-us;q=0.5,en;q=0.3
> URL:            /tutos/php/mytutos.php
> Request:        /tutos/php/mytutos.php
> POST:           uname   --> demo
> POST:           pw      --> xxx
> POST:           dbnr    --> 0
> POST:           login   --> Bejelentkezés
> RemoteAddr:     127.0.0.1
> Referer:        http://csanyi-pal.info/tutos/php/\
> mytutos.php?msg=goodbye
> TUTOS Version:  2.0-dev
> Database:       POSTGRES: tutos@localhost:5432 as csanyipal
> DB Alias :      Postgres database
> PHP Version:    4.4.4-8+etch3 Linux
> PHP Config:     /etc/php4/apache2/php.ini
> APACHE Version: Apache/2.2.3 (Debian) \
> PHP/4.4.4-8+etch3 mod_perl/2.0.2 Perl/v5.8.8
> STACKTRACE:
>   php_error (<integer>8,<string>Undefined index:  \
> Bug,<string>/usr/share/tutos/php/layout/layout.pinc,\
> <integer>564,<array>Array)
>   layout_stop   ->              /usr/share/tutos/php/\
> layout/layout.pinc +564
>   layout_stop ()        ->    /usr/share/tutos/php/\
> layout/layout.pinc +621
>   display (<boolean>)   ->    /usr/share/tutos/php/\
> auth/auth.pinc +91
>   login_form (<string>/tutos/php/mytutos.php,<string>\
> Bejelentkezés sikertelen)  ->   /usr/share/tutos/php/\
> permission.p3 +358
>   check_user ()         /usr/share/tutos/php/calendar.p3 +18
>   include_once (<string>/usr/share/tutos/php/\
> calendar.p3)         /usr/share/tutos/php/mytutos.php +10
> ----------------------------------<
> 
The stacktrace mentions a PHP error.  I would try and track that one
down first.  Additionally, you might find better help on the debian-isp
list.  At least, I think you are more likely to find someone actually
running tutos2 on that list.

> > > This tutos version for the Etch is 2 years old. :(
> > > If this version works, then I would be happy.
> > > 
> > Are you able to try the upstream version?
> 
> How can I do that? I try to update tutos with update-php script, but I 
> don't know the database ID. I follow the instructions in the 
> install_easy.html : "...
> call the http://[yourserver]/tutos/php/admin/update.php?id=XX page 
> where XX is our database index from config.php"
> 
> I try to use for XX the numbers: 00, 01, but with no success.
> 
What I mean is to simply download the whole tutos distribution from
upstream and follow their instructions for installing from scratch.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature


Reply to: