New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Cant loggin to web-admin side *solved*

Got problems with Bubba? Then this forum is for you.
Locked
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Cant loggin to web-admin side *solved*

Post by JohanSalo »

Hi

i have messed up the config file for the apache2 server.

i cant access the Web-admin page.

can someone send the correct .conf file
/etc/apache2/

httpd.conf

files and contents in
conf.d/
mods-enabled/
sites-enabled/

and perhaps the web-admin files

This problem accrued then i was trying to get mail() to work.
Ill installed sendmail, and after that the apache2 conf went missing (i thing). ill manage to get the www running except for the web-admin page

can some one help me.. please.

//J
Last edited by JohanSalo on 03 Sep 2007, 13:35, edited 2 times in total.
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

I´ll managed to get the the web-admin page up and running but i cant loggin

i have created this file
/etc/apache2/conf.d/web-admin

Code: Select all

Alias /web-admin "/usr/share/web-admin/"
<Directory "/usr/share/web-admin/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Allow from all
        AddType application/x-httpd-cgi .cgi
        Options ExecCGI
</Directory>
but it dont seems to work

where and how is the orginal file, and whot is the code?

when i try to login i get this message:
Invalid user/password combination.

need help
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

in file /var/log/apache2/error.log i get this message

sudo: can't stat /etc/sudoers: No such file or directory

every time i try to log in

/J
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

i think the file /etc/sudoers is missing

can someone tell me the content of this file
albert
Posts: 69
Joined: 09 Jul 2007, 14:35
Location: The Netherlands

Post by albert »

Here you go:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL
www-data ALL=NOPASSWD:/usr/lib/web-admin/backend.pl
www-data ALL=NOPASSWD:/usr/lib/web-admin/print.pl
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

thx albert

i have restarted the apache2 but i still cant login

error msg
Invalid user/password combination.
Please enter username and password to log in

/var/log/apache2/error.log

Code: Select all

PHP Warning:  Function registration failed - duplicate name - xslt_errno in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_free in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_set_object in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_setopt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_getopt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_backend_version in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_backend_name in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xslt_backend_info in Unknown on line 0
PHP Warning:  xslt:  Unable to register functions, unable to load in Unknown on line 0
[Thu Aug 30 22:11:27 2007] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-19 mod_ssl/2.0.54 OpenSSL/0.9.7e configured -- resuming norm$

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
have anyone a idea whats wrong?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi JohanSalo,

I think your easiest way to try to repair your system is to reinstall the bubba package.

Try to first do, as root, a

Code: Select all

apt-get remove bubba
and then reinstall it by

Code: Select all

apt-get install bubba
A warning however is that depending on how broken your system is this might fail.

/Tor
Co-founder OpenProducts and Ex Excito Developer
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

After a power failure during the night (dam Lunds energi). The bubba wont boot up.

so im thinking of doing a reinstall likeTheEagleCD,
and hopefully the file will be there after reinstall.

have anyone more tips?
or is it just to follow the description?

Code: Select all

#! /bin/sh

echo "Setting date"
/usr/bin/wget -O - http://www.excito.com/install/date.php | /usr/bin/xargs /bin/date
/sbin/hwclock --systohc

mount -text3 /dev/hda1 /mnt
cd /mnt
rm -rf bin/
rm -rf boot/
rm -rf dev/
rm -rf etc/
rm -rf initrd/
rm -rf lib/
rm -rf lost+found/
rm -rf media/
rm -rf opt/
rm -rf proc/
rm -rf root/
rm -rf sbin/
rm -rf srv/
rm -rf sys/
rm -rf tmp/
cp -a usr/local/mysql ../usr.save/local/mysql
rm -rf usr/

cd var/
rm -rf backups/
rm -rf cache/
rm -rf lib/
rm -rf local/
rm -rf lock/
rm -rf log/
rm -rf mail/
rm -rf opt/
rm -rf run/
rm -rf spool/
rm -rf tmp/
cp -a www www.sav

cd /mnt
tar zxvf /usr/share/payload/*.tar.gz
reboot
cp -a usr/local/mysql ../usr.save/local/mysql # for save mysql data.

is this file Okej?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Seems ok to me, but always do a backup of data you cant live without ;)

/Tor
Co-founder OpenProducts and Ex Excito Developer
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

im on that but it takes 20h so ill try reinstall tomorrow

ill keep you informed....
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

after 25h backup and 10 minutes of reinstall (with out formating),
the server is up and running again.

i now have a other problem

every time i log in this comes up

Code: Select all

login as: johan
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
You are required to change your password immediately (root enforced)
Changing password for johan
(current) UNIX password:
Using keyboard-interactive authentication.
Enter new UNIX password:
Using keyboard-interactive authentication.
Retype new UNIX password:
Linux bubba 2.6.16.16 #1 Tue May 16 21:45:07 CEST 2006 armv4tl GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Jan  1 15:55:10 1970 from xyz.xyz.xx.xyz
it seems that the time is a little bit off ;)
the problem is
i cant set the time

Code: Select all

johan@bubba:~$ date
Thu Jan  1 16:00:55 UTC 1970
johan@bubba:~$ date --set 2007-09-03
date: cannot set date: Operation not permitted
and i cant logg in as su

Code: Select all

johan@bubba:~$ su
Password:
su: Authentication failure
Sorry.
what to do, any ides?
JohanSalo
Posts: 23
Joined: 17 Apr 2007, 10:05

Post by JohanSalo »

the time was wrong

adjusted it in web-admin page
and now evry things back to normal

Thx all.

//J :wink:
Locked