| View previous topic :: View next topic |
| Author |
Message |
gkaefer n00b

Joined: 09 Feb 2005 Posts: 46 Location: Salzburg/Austria
|
Posted: Fri Jan 18, 2008 7:23 pm Post subject: [SOLVED] apache2 fails to start after update |
|
|
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 |
|
 |
yaman666 Tux's lil' helper

Joined: 13 Dec 2002 Posts: 117 Location: Chicago, IL
|
Posted: Fri Jan 18, 2008 7:51 pm Post subject: |
|
|
| I see -authn_file as one of your APACHE2_MODULES flags, may be you need to enable that? |
|
| Back to top |
|
 |
gkaefer n00b

Joined: 09 Feb 2005 Posts: 46 Location: Salzburg/Austria
|
Posted: Fri Jan 18, 2008 9:17 pm Post subject: |
|
|
| 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 |
|
 |
streamkid Tux's lil' helper

Joined: 17 Jul 2007 Posts: 82 Location: Greece
|
Posted: Fri Jan 18, 2008 9:55 pm Post subject: |
|
|
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 |
|
 |
gkaefer n00b

Joined: 09 Feb 2005 Posts: 46 Location: Salzburg/Austria
|
Posted: Fri Jan 18, 2008 10:16 pm Post subject: |
|
|
| 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 |
|
 |
|