You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mick England <mi...@ameritech.net> on 2005/11/09 21:39:37 UTC

[users@httpd] Problem with AuthPAM_Enabled' error in Apache2

Hi,

I have been using Apache for some years now but am new to the list. I
have been getting a problem with a fresh install of Apache 2.0.55 from
the Debian unstable repositry.

When I try to access a newly created Virtual host I get the following error:


  Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

In the error logs I see the following:

[Wed Nov 09 15:03:51 2005] [alert] [client 69.212.211.252] /.htaccess:
Invalid command 'AuthPAM_Enabled', perhaps mis-spelled or defined by a
module not included in the server configuration

My VirtualHost file contains the following: [Domain name hidden]

NameVirtualHost *
<VirtualHost my.domain.org>
ServerAdmin mick@domain.org
DocumentRoot /home/hosts/test
ErrorLog /var/log/apache2/my.domain.org-error.log
CustomLog /home/test/log/my.domain.org-access.log common
<Directory /home/hosts/test>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Inside the /home/hosts/test directory I have only a simple test
index.html file.

I tried installing AuthPAM with the following:

apt-get install libapache2-mod-auth-pam

With this installed I get an authentication box for authentication to
Intranet, which is a password protected area of another site and nothing
to do with this virtual host. If I use the authentication details I have
for that site I get to the test index page from
http://my.domain.org:8000 (I am running from this port for testing as I
have a working version of Apache2 serving live sites).

I can not figure out where it is picking up the .htaccess file from and
why it is asking for authentication to directories that should be
accessible to everyone.

My understanding is that PAM is used to authentication against UNIX
accounts, but this is not what is happening here. I do not want to use
PAM at all. I want to be able to host Virtual domains that are publicly
accessible and protect individual directories with .htaccess files as I
have done since version 1.2 of Apache quite happily.

Any ideas on this would be greatly appreciated.

Mick.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with AuthPAM_Enabled' error in Apache2

Posted by Joshua Slive <js...@gmail.com>.
On 11/9/05, Mick England <mi...@ameritech.net> wrote:
> Thanks for the reply. Here is the .htaccess file:
>
> AuthType Basic
> AuthUserFile /home/othersite/users
> AddHandler cgi-script .cgi
> AuthName "Intranet"
> require user admin
>
> As I said it relates to a complete different domain and does not sit in
> DocumentRoot of the VirtualHost I am trying to test. If I use the
> correct uername and password I can nevertheless access the files at
> /home/hosts/test through the URL: my.domain:8000/

Your question is quite confusing.  The error log message you quoted
earlier could not possibly come from the .htaccess file.  You might
want to consult some debian people about this, because it looks like
you have some complications in there that do not come with the default
apache.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with AuthPAM_Enabled' error in Apache2

Posted by Mick England <mi...@ameritech.net>.
Thanks for the reply. Here is the .htaccess file:

AuthType Basic
AuthUserFile /home/othersite/users
AddHandler cgi-script .cgi
AuthName "Intranet"
require user admin

As I said it relates to a complete different domain and does not sit in
DocumentRoot of the VirtualHost I am trying to test. If I use the
correct uername and password I can nevertheless access the files at
/home/hosts/test through the URL: my.domain:8000/

Kind of wierd I know but this is what is happening.

I checked the VirtualHost file. Don't know where the one I copied in the
mail came from but it does have a ServerName and <VirtualHost *> in the
one on the server.

Joshua Slive wrote:

>On 11/9/05, Mick England <mi...@ameritech.net> wrote:
>
>  
>
>>In the error logs I see the following:wswsor
>>
>>[Wed Nov 09 15:03:51 2005] [alert] [client 69.212.211.252] /.htaccess:
>>Invalid command 'AuthPAM_Enabled', perhaps mis-spelled or defined by a
>>module not included in the server configuration
>>    
>>
>
>So what exactly is in the .htaccess file?  That is your problem.
>
>  
>
>>My VirtualHost file contains the following: [Domain name hidden]
>>
>>NameVirtualHost *
>><VirtualHost my.domain.org>wswsor
>>ServerAdmin mick@domain.org
>>DocumentRoot /home/hosts/test
>>ErrorLog /var/log/apache2/my.domain.org-error.log
>>CustomLog /home/test/log/my.domain.org-access.log common
>><Directory /home/hosts/test>
>>Order allow,deny
>>Allow from all
>></Directory>
>></VirtualHost>
>>    
>>
>
>This probably isn't relevant, but that is a bad config.  If you are
>doing name-based virtual hosting, that should be <VirtualHost *> and
>you need a ServerName directive.  See the name-based virtual hosting
>docs.
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>  
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with AuthPAM_Enabled' error in Apache2

Posted by Joshua Slive <js...@gmail.com>.
On 11/9/05, Mick England <mi...@ameritech.net> wrote:

>
> In the error logs I see the following:
>
> [Wed Nov 09 15:03:51 2005] [alert] [client 69.212.211.252] /.htaccess:
> Invalid command 'AuthPAM_Enabled', perhaps mis-spelled or defined by a
> module not included in the server configuration

So what exactly is in the .htaccess file?  That is your problem.

>
> My VirtualHost file contains the following: [Domain name hidden]
>
> NameVirtualHost *
> <VirtualHost my.domain.org>
> ServerAdmin mick@domain.org
> DocumentRoot /home/hosts/test
> ErrorLog /var/log/apache2/my.domain.org-error.log
> CustomLog /home/test/log/my.domain.org-access.log common
> <Directory /home/hosts/test>
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>

This probably isn't relevant, but that is a bad config.  If you are
doing name-based virtual hosting, that should be <VirtualHost *> and
you need a ServerName directive.  See the name-based virtual hosting
docs.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org