Page 1 of 1
Login page not working after full testing system update
Posted: 20 Oct 2009, 17:00
by razor1394
Hello.
I've run testing for some time now and it ran great. In the beginning I only used the kernel from testing but now I use full testing. Recently there has been a apt-get/dpkg conflict of bubba-frontend and bubba-web that does result in a non working login/admin page.
Here are the errors:
404 Page Not Found
The page you requested was not found.
*@*:/var/www$ sudo apt-get install bubba-web
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
bubba-web
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.9kB of archives.
After unpacking 90.1kB of additional disk space will be used.
Get:1
http://update.excito.org marielle/main bubba-web 0.99.0-2 [41.9kB]
Fetched 41.9kB in 0s (58.7kB/s)
Selecting previously deselected package bubba-web.
(Reading database ... 55457 files and directories currently installed.)
Unpacking bubba-web (from .../bubba-web_0.99.0-2_powerpc.deb) ...
dpkg: error processing /var/cache/apt/archives/bubba-web_0.99.0-2_powerpc.deb (--unpack):
trying to overwrite `/etc/apache2/sites-available/bubba', which is also in package bubba-frontend
Errors were encountered while processing:
/var/cache/apt/archives/bubba-web_0.99.0-2_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Re: Login page not working after full testing system update
Posted: 20 Oct 2009, 19:47
by carl
bubba-web is an old package that isn't in use any more; I've removed it from repo now.
Re: Login page not working after full testing system update
Posted: 21 Oct 2009, 06:43
by razor1394
Ok thanks. But do you know why I can't login anymore? apt-get update and dist-upgrade shows no errors so I don't know where the problem lies.
I first thought it was the web package but it doesn't seem like it...
Re: Login page not working after full testing system update
Posted: 21 Oct 2009, 08:51
by asparak
Have you checked that Apache is running?
Re: Login page not working after full testing system update
Posted: 21 Oct 2009, 12:39
by razor1394
Yes It's running. I don't see how I would get the 404 otherwise... It's as if the administrator page is missing.
Re: Login page not working after full testing system update
Posted: 21 Oct 2009, 17:29
by asparak
Sorry, just trying to help here.
Does your admin.conf look similar to this:
/etc/apache2/conf.d# more admin.conf
Alias /admin /usr/share/web-admin/admin
<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-ti
meout 120 -flush
<Location /admin>
RewriteEngine on
RewriteBase /admin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</Location>
is /usr/share/web-admin/admin in place?
/usr/share/web-admin# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jul 15 13:56 .
drwxr-xr-x 106 root root 4096 Jul 16 08:25 ..
drwxr-xr-x 11 root root 4096 Sep 25 15:41 admin
lrwxrwxrwx 1 root root 20 Jul 15 13:56 web-admin -> /home/xyz/web-admin
if everything is installed and the webserver is configured right and working, I'm guessing its either a permissions error somewhere, or a symbolic link missing
Re: Login page not working after full testing system update
Posted: 22 Oct 2009, 13:16
by razor1394
It looks similar yes. But I'm missing the symbolic link at the end of your post inside web-admin.
index.php
<?php
error_reporting(E_ALL);
$system_folder = "/usr/share/codeigniter/system";
$application_folder = "/usr/share/web-admin/admin";
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
define('APPPATH', $application_folder.'/');
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
web-admin dir ls
*@*:/usr/share/web-admin$ ls -al
totalt 12
drwxr-xr-x 3 root root 4096 2009-06-23 18:12 .
drwxr-xr-x 110 root root 4096 2009-10-20 22:30 ..
drwxr-xr-x 11 root root 4096 2009-10-01 20:15 admin
admin dir ls
*@*:/usr/share/web-admin/admin$ ls -al
totalt 48
drwxr-xr-x 11 root root 4096 2009-10-01 20:15 .
drwxr-xr-x 3 root root 4096 2009-06-23 18:12 ..
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 config
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 controllers
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 errors
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 helpers
-rw-r--r-- 1 root root 414 2009-09-29 12:49 index.php
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 language
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 legacy
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 libraries
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 models
drwxr-xr-x 4 root root 4096 2009-10-01 20:15 views
admin.conf
Alias /admin /usr/share/web-admin/admin
<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 -flush
<Location /admin>
RewriteEngine on
RewriteBase /admin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</Location>
Could it be a failure with php?
edit:
I've linked the admin dir to both /home/web and /var/www with no success.
Re: Login page not working after full testing system update
Posted: 22 Oct 2009, 14:11
by carl
Your files look most ok, though the most important file to check is /etc/apache2/sites-enabled/bubba which is an synlink to /etc/apache2/sites-available/bubba which in turn is an symlink to /usr/share/bubba-frontend/apache.site; this should look as following:
Code: Select all
Listen 443
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/cacert.pem
SSLCertificateKeyFile /etc/apache2/privkey.pem
ServerAdmin webmaster@localhost
DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Make sure there are no other files in /etc/apache2/sites-enabled/ as they are all read during apache startup. (likewise in the conf.d dir);
Re: Login page not working after full testing system update
Posted: 22 Oct 2009, 14:33
by razor1394
ls on sites-enable/sites-available
*@*:/etc/apache2/sites-enabled$ ls -al
totalt 8
drwxr-xr-x 2 root root 4096 2009-06-23 18:09 .
drwxr-xr-x 7 root root 4096 2009-09-26 13:54 ..
lrwxrwxrwx 1 root root 34 2009-06-23 18:09 bubba -> /etc/apache2/sites-available/bubba
*@*:/etc/apache2/sites-enabled$ cd ../sites-available/
*@*:/etc/apache2/sites-available$ ls -al
totalt 12
drwxr-xr-x 2 root root 4096 2009-10-01 20:15 .
drwxr-xr-x 7 root root 4096 2009-09-26 13:54 ..
lrwxrwxrwx 1 root root 37 2009-10-01 20:15 bubba -> /usr/share/bubba-frontend/apache.site
-rw-r--r-- 1 root root 1181 2008-04-16 23:30 default
cat /usr/share/bubba-frontend/apache.site
cat /usr/share/bubba-frontend/apache.site
Listen 443
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/cacert.pem
SSLCertificateKeyFile /etc/apache2/privkey.pem
ServerAdmin webmaster@localhost
DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Re: Login page not working after full testing system update
Posted: 31 Oct 2009, 09:54
by razor1394
Restarting web server: apache2[Sat Oct 31 13:15:47 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Oct 31 13:15:50 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:443
This is what I got when upgrading the system today and now I can't even reach the front page. I've restarted apache again and it gives me the same message. Any ideas?
Re: Login page not working after full testing system update
Posted: 01 Nov 2009, 16:12
by carl
razor1394 wrote:
Restarting web server: apache2[Sat Oct 31 13:15:47 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Oct 31 13:15:50 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:443
This is what I got when upgrading the system today and now I can't even reach the front page. I've restarted apache again and it gives me the same message. Any ideas?
Do you by any chance use the unstable repository (claire)? if so, at the moment, the apache installation isn't fully direct functional due to testing.
/Carl
Re: Login page not working after full testing system update
Posted: 05 Nov 2009, 10:30
by razor1394
Yes I do. Well that explains it. Thank you for clarifying.
Re: Login page not working after full testing system update
Posted: 08 Dec 2009, 12:39
by razor1394
It was rather easy to fix. It was just a matter of "sudo aptitude -f remove libeutils0" which removed bubba then reinstalling bubba again with "sudo apt-get install bubba".