Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
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 !

ruined my webinterface

Got problems with your B2 or B3? Share and get helped!
Post Reply
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

ruined my webinterface

Post by kees »

Hi,

I'm afraid I ruined my bubba-web interface, while installing qmail. I think the "apt-get install courier-imap"-command deinstalled some bubba specific software.
http://bubba works as expected
http://bubba/admin gives:
The requested URL /admin was not found on this server.
http://bubba/manual gives:
The requested URL /manual was not found on this server.
http://bubba/pim works as expected
http://bubba:631 (cups) works normal
http://bubba:3689 (firefly) works normal

Is it possible to restore the admin and manual page with an apt-get command??
Or any another way??

Please... :oops: [/code]
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Probably the apache settings have been changed by qmial

in the /etc/apache2/sites-enabled there should be a link bubba
which refers to the file /etc/apache2/sites-available/bubba

check if that is there
and check the error-log of apache.

cheers Eek
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

thanks!!

Post by kees »

Thanks Eek,

That's it... /etc/apache2/sites-enabled is empty!
New problem is /etc/apache2/sites-available has only a "default" in it, no "bubba". I wonder where it went!!?..

Can you post "/etc/apache2/sites-available/bubba" here?
Or if not, send me a copy?

Many thanks..
carl
Posts: 474
Joined: 07 May 2008, 04:41

Re: thanks!!

Post by carl »

kees wrote:Thanks Eek,

That's it... /etc/apache2/sites-enabled is empty!
New problem is /etc/apache2/sites-available has only a "default" in it, no "bubba". I wonder where it went!!?..

Can you post "/etc/apache2/sites-available/bubba" here?
Or if not, send me a copy?

Many thanks..
Check so that you have bubba-backend and bubba-frontend installed, e.g.

Code: Select all

apt-cache policy bubba-backend
apt-cache policy bubba-frontend
should be marked with a star IF it's installed.

/Carl
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

Post by kees »

We're coming close:

after:

Code: Select all

apt-get install bubba-frontend
apt-get install bubba-backend
http://bubba/manual is werking again!
but:
http://bubba/admin displays a directory listing:

Code: Select all

[ ]	adminfunctions.php	14-Dec-2008 04:24 	 28K
[TXT]	backend.pl	        14-Dec-2008 18:09 	36K
[TXT]	disk.pl       	04-Dec-2008 19:24 	6.7K
[ ]	  firewall.conf	04-Dec-2008 19:24 	1.3K
[TXT]	firewall.pl	18-Dec-2008 17:55 	13K
[ ]	   phptest.php	14-Dec-2008 04:24 	1.8K
[TXT]	print.pl	04-Dec-2008 19:24 	6.9K
[TXT]	testclient.pl	14-Dec-2008 04:24 	272
[TXT]	thumbnail.pl	04-Dec-2008 19:24 	4.1K
[TXT]	updatebackend.pl	14-Dec-2008 21:58 	5.3K
[TXT]	updater.pl	04-Dec-2008 19:24 	3.5K
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

if you do a http://bubba/server-info
does it list mod_php5.c
at the loaded modules?
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

Post by kees »

hmmm..
http://bubba/server-info says:

Code: Select all

The requested URL /server-info was not found on this server.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

check if these exist

ls -l /etc/apache2/mods-enabled/php*
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

Post by kees »

They do!

Code: Select all

root@bubba:~# ls -l /etc/apache2/mods-enabled/php*
lrwxrwxrwx 1 root root 27 2008-01-26 18:31 /etc/apache2/mods-enabled/php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 2008-01-26 18:31 /etc/apache2/mods-enabled/php5.load -> ../mods-available/php5.load
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

does ls -l /etc/apache2/conf.d/admin exist?
in there /admin should direct to /usr/share/web-admin/admin
where a index.php should exist
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

Post by kees »

The "/etc/apache2/conf.d/admin" file indeed exists, and contains a redirection to /usr/share/web-admin/admin:

Code: Select all

Alias /admin /usr/share/web-admin/admin/
Alias /manual /usr/share/web-admin/manual/

<Directory /usr/share/web-admin/admin >
        AllowOverride None
        Order allow,deny
        allow from all
        DirectoryIndex index.php
        AddHandler php-cgi .php
        Action php-cgi /fcgi-bin/php.cgi virtual
</Directory>

ScriptAlias /fcgi-bin/php.cgi /usr/share/web-admin/admin
FastCgiExternalServer /usr/share/web-admin/admin/index.php -socket fcgi -idle-timeout 120

<Location /admin>
        RewriteEngine on
        RewriteBase /admin
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php/$1 [L]
</Location>
A listing of /usr/share/web-admin/admin gives:

Code: Select all

root@bubba:~# ls /usr/share/web-admin/admin -l
total 12
-rw-r--r--  1 root root 3297 2008-05-11 15:18 index.php
-rw-r--r--  1 root root 2542 2007-04-15 14:41 license.txt
drwxr-xr-x 13 root root 4096 2009-02-01 01:08 system
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post by carl »

Could still perhaps be a broken package somewhere, could you give the output of following command:

Code: Select all

dpkg -l | grep -v ^ii
/Carl
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
kees
Posts: 16
Joined: 23 Jan 2009, 17:59

Yes!! Fixed!

Post by kees »

Hi,

Everthing is back to normal.

This is what happend:

The "dkpg install courier-imap-ssl", part of the www.qmailrocks.org installation, deinstalled the packages:
dovecot-commom
dovecot-imapd
dubba-backend
bubba-frontend


Thanks to Eek and Carl is was fixed like this:

Code: Select all

dpkg dovecot-imapd
dpkg dovecot-common
dpkg install bubba-backend
dpkg install bubba-frontend

cd /var/www/sites-enabled
rm  00-enabled (is a link) 
ln -s ../sites-availabe/bubba ./
NB.
The qmail installatation (which ruined the bubba admin-interface) succeded at last, and the Bubba|2 serves five domains now!

Thanks for the many,fast and all very useable replies!
Post Reply