Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] apache2 fails to start after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gkaefer
n00b
n00b


Joined: 09 Feb 2005
Posts: 46
Location: Salzburg/Austria

PostPosted: Fri Jan 18, 2008 7:23 pm    Post subject: [SOLVED] apache2 fails to start after update Reply with quote

I upgraded from apache 2.0.5x to 2.2.6-r7
apache2 does fail to start with following error:
Quote:
apache2ctl start
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 124 of /etc/apache2/vhosts.d/virtual.conf:
Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration


Line 120-125 of virtual.conf are:

Quote:
<Directory /home/gk1/www/home/Familie>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName " Restricted Access: "
AuthType Basic
->line 124 AuthUserFile /home/gk1/www/home/Familie/.htpasswd
require valid-user
</Directory>


I used following USE flags & Modules in make.conf:

Quote:
emerge -pv apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] www-servers/apache-2.2.6-r7 USE="doc ssl -debug -ldap (-selinux) -sni -static -suexec -threads" APACHE2_MODULES="actions alias asis auth_basic auth_digest authz_host autoindex cache dav deflate dir env expires filter headers include info log_config logio mime negotiation proxy rewrite setenvif speling status unique_id userdir usertrack -authn_alias -authn_anon -authn_dbd -authn_dbm -authn_default -authn_file -authz_dbm -authz_default -authz_groupfile -authz_owner -authz_user -cern_meta -charset_lite -dav_fs -dav_lock -dbd -disk_cache -dumpio -ext_filter -file_cache -ident -imagemap -log_forensic -mem_cache -mime_magic -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -version -vhost_alias" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


any hint what I'm doing wrong?

best regards,
Georg


Last edited by gkaefer on Fri Jan 18, 2008 10:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
yaman666
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2002
Posts: 117
Location: Chicago, IL

PostPosted: Fri Jan 18, 2008 7:51 pm    Post subject: Reply with quote

I see -authn_file as one of your APACHE2_MODULES flags, may be you need to enable that?
Back to top
View user's profile Send private message
gkaefer
n00b
n00b


Joined: 09 Feb 2005
Posts: 46
Location: Salzburg/Austria

PostPosted: Fri Jan 18, 2008 9:17 pm    Post subject: Reply with quote

yaman666 wrote:
I see -authn_file as one of your APACHE2_MODULES flags, may be you need to enable that?


major success-step!
yea found it too: the module got split into authn_file and auth_basic

its starting now. the login to webs with auth basic config in virtual.conf does not work until now:

Quote:

<Directory "/user1/admin">
AuthType Basic
AuthUserFile /user1vfr/usr/pass.pw
AuthName "vita"
require valid-user
</Directory>


log says:

Quote:
[Fri Jan 18 21:47:23 2008] [error] [client IP...] user userxy: authentication failure for "/admin": Password Mismatch
[Fri Jan 18 21:47:35 2008] [crit] [client IP...] configuration error: couldn't check access. No groups file?: /admin


first google: looks like that authz_owner is also missing...

Georg
Back to top
View user's profile Send private message
streamkid
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2007
Posts: 82
Location: Greece

PostPosted: Fri Jan 18, 2008 9:55 pm    Post subject: Reply with quote

What settings work for me:
Code:
AuthType basic
AuthName "aa"
Require valid-user
AuthUserFile /path/to/passwd/file

and create the password file with
Code:
htpasswd2 -c /path/to/passwd/file the_valid_user
Back to top
View user's profile Send private message
gkaefer
n00b
n00b


Joined: 09 Feb 2005
Posts: 46
Location: Salzburg/Austria

PostPosted: Fri Jan 18, 2008 10:16 pm    Post subject: Reply with quote

streamkid wrote:
What settings work for me:
Code:
AuthType basic
AuthName "aa"
Require valid-user
AuthUserFile /path/to/passwd/file

and create the password file with
Code:
htpasswd2 -c /path/to/passwd/file the_valid_user


for me too.
I also needed to add following new modules to make.conf apache moldules to finally get it up:

authn_dbm
authz_groupfile
authz_owner
authz_user

setting ...[SOLVED]

many thanks for your all help!
great!!

Georg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum