Mailing List Archive

Enable auth module in Apache/2.4.6
Hi,

I am running the Server version: (CentOS) on CentOS Linux release 7.8.2003
(Core).

Server version: Apache/2.4.6 (CentOS)
> Server built: Apr 2 2020 13:13:23
> Server's Module Magic Number: 20120211:24
> Server loaded: APR 1.4.8, APR-UTIL 1.5.2
> Compiled using: APR 1.4.8, APR-UTIL 1.5.2
> Architecture: 64-bit
> Server MPM: prefork
> threaded: no
> forked: yes (variable process count)
> Server compiled with....
> -D APR_HAS_SENDFILE
> -D APR_HAS_MMAP
> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> -D APR_USE_SYSVSEM_SERIALIZE
> -D APR_USE_PTHREAD_SERIALIZE
> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> -D APR_HAS_OTHER_CHILD
> -D AP_HAVE_RELIABLE_PIPED_LOGS
> -D DYNAMIC_MODULE_LIMIT=256
> -D HTTPD_ROOT="/etc/httpd"
> -D SUEXEC_BIN="/usr/sbin/suexec"
> -D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> -D DEFAULT_ERRORLOG="logs/error_log"
> -D AP_TYPES_CONFIG_FILE="conf/mime.types"
> -D SERVER_CONFIG_FILE="conf/httpd.conf"


#rpm -qa | grep httpd
httpd-tools-2.4.6-93.el7.centos.x86_64
httpd-2.4.6-93.el7.centos.x86_64
#

#apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
allowmethods_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_anon_module (shared)
authn_core_module (shared)
authn_dbd_module (shared)
authn_dbm_module (shared)
authn_file_module (shared)
authn_socache_module (shared)
authz_core_module (shared)
authz_dbd_module (shared)
authz_dbm_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_owner_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cache_module (shared)
cache_disk_module (shared)
data_module (shared)
dbd_module (shared)
deflate_module (shared)
dir_module (shared)
dumpio_module (shared)
echo_module (shared)
env_module (shared)
expires_module (shared)
ext_filter_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
info_module (shared)
log_config_module (shared)
logio_module (shared)
mime_magic_module (shared)
mime_module (shared)
negotiation_module (shared)
remoteip_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
slotmem_plain_module (shared)
slotmem_shm_module (shared)
socache_dbm_module (shared)
socache_memcache_module (shared)
socache_shmcb_module (shared)
status_module (shared)
substitute_module (shared)
suexec_module (shared)
unique_id_module (shared)
unixd_module (shared)
userdir_module (shared)
version_module (shared)
vhost_alias_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
lua_module (shared)
mpm_prefork_module (shared)
proxy_module (shared)
lbmethod_bybusyness_module (shared)
lbmethod_byrequests_module (shared)
lbmethod_bytraffic_module (shared)
lbmethod_heartbeat_module (shared)
proxy_ajp_module (shared)
proxy_balancer_module (shared)
proxy_connect_module (shared)
proxy_express_module (shared)
proxy_fcgi_module (shared)
proxy_fdpass_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_scgi_module (shared)
proxy_wstunnel_module (shared)
ssl_module (shared)
systemd_module (shared)
cgi_module (shared)
auth_gssapi_module (shared)
php7_module (shared)

Is there a way to enable the auth module for basic authentication
for Apache/2.4.6 (CentOS)? Any help will be highly appreciated and I look
forward to hearing from you.

Thanks in advance.

Best Regards,

Kaushal
Re: Enable auth module in Apache/2.4.6 [ In reply to ]
On Wed, Jul 29, 2020 at 6:48 AM Kaushal Shriyan <kaushalshriyan@gmail.com>
wrote:

> Hi,
>
> I am running the Server version: (CentOS) on CentOS Linux release
> 7.8.2003 (Core).
>
> Server version: Apache/2.4.6 (CentOS)
>> Server built: Apr 2 2020 13:13:23
>> Server's Module Magic Number: 20120211:24
>> Server loaded: APR 1.4.8, APR-UTIL 1.5.2
>> Compiled using: APR 1.4.8, APR-UTIL 1.5.2
>> Architecture: 64-bit
>> Server MPM: prefork
>> threaded: no
>> forked: yes (variable process count)
>> Server compiled with....
>> -D APR_HAS_SENDFILE
>> -D APR_HAS_MMAP
>> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>> -D APR_USE_SYSVSEM_SERIALIZE
>> -D APR_USE_PTHREAD_SERIALIZE
>> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>> -D APR_HAS_OTHER_CHILD
>> -D AP_HAVE_RELIABLE_PIPED_LOGS
>> -D DYNAMIC_MODULE_LIMIT=256
>> -D HTTPD_ROOT="/etc/httpd"
>> -D SUEXEC_BIN="/usr/sbin/suexec"
>> -D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
>> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>> -D DEFAULT_ERRORLOG="logs/error_log"
>> -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>> -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
>
> #rpm -qa | grep httpd
> httpd-tools-2.4.6-93.el7.centos.x86_64
> httpd-2.4.6-93.el7.centos.x86_64
> #
>
> #apachectl -M
> Loaded Modules:
> core_module (static)
> so_module (static)
> http_module (static)
> access_compat_module (shared)
> actions_module (shared)
> alias_module (shared)
> allowmethods_module (shared)
> auth_basic_module (shared)
> auth_digest_module (shared)
> authn_anon_module (shared)
> authn_core_module (shared)
> authn_dbd_module (shared)
> authn_dbm_module (shared)
> authn_file_module (shared)
> authn_socache_module (shared)
> authz_core_module (shared)
> authz_dbd_module (shared)
> authz_dbm_module (shared)
> authz_groupfile_module (shared)
> authz_host_module (shared)
> authz_owner_module (shared)
> authz_user_module (shared)
> autoindex_module (shared)
> cache_module (shared)
> cache_disk_module (shared)
> data_module (shared)
> dbd_module (shared)
> deflate_module (shared)
> dir_module (shared)
> dumpio_module (shared)
> echo_module (shared)
> env_module (shared)
> expires_module (shared)
> ext_filter_module (shared)
> filter_module (shared)
> headers_module (shared)
> include_module (shared)
> info_module (shared)
> log_config_module (shared)
> logio_module (shared)
> mime_magic_module (shared)
> mime_module (shared)
> negotiation_module (shared)
> remoteip_module (shared)
> reqtimeout_module (shared)
> rewrite_module (shared)
> setenvif_module (shared)
> slotmem_plain_module (shared)
> slotmem_shm_module (shared)
> socache_dbm_module (shared)
> socache_memcache_module (shared)
> socache_shmcb_module (shared)
> status_module (shared)
> substitute_module (shared)
> suexec_module (shared)
> unique_id_module (shared)
> unixd_module (shared)
> userdir_module (shared)
> version_module (shared)
> vhost_alias_module (shared)
> dav_module (shared)
> dav_fs_module (shared)
> dav_lock_module (shared)
> lua_module (shared)
> mpm_prefork_module (shared)
> proxy_module (shared)
> lbmethod_bybusyness_module (shared)
> lbmethod_byrequests_module (shared)
> lbmethod_bytraffic_module (shared)
> lbmethod_heartbeat_module (shared)
> proxy_ajp_module (shared)
> proxy_balancer_module (shared)
> proxy_connect_module (shared)
> proxy_express_module (shared)
> proxy_fcgi_module (shared)
> proxy_fdpass_module (shared)
> proxy_ftp_module (shared)
> proxy_http_module (shared)
> proxy_scgi_module (shared)
> proxy_wstunnel_module (shared)
> ssl_module (shared)
> systemd_module (shared)
> cgi_module (shared)
> auth_gssapi_module (shared)
> php7_module (shared)
>
> Is there a way to enable the auth module for basic authentication
> for Apache/2.4.6 (CentOS)? Any help will be highly appreciated and I look
> forward to hearing from you.
>
> Thanks in advance.
>
> Best Regards,
>
> Kaushal
>

Hi,

Checking in again if someone can pitch in for my earlier post to this
mailing list. Any help will be highly appreciated and I look forward to
hearing from you.

Thanks in advance.

Best Regards,

Kaushal
Re: Enable auth module in Apache/2.4.6 [ In reply to ]
Le 29/07/2020 à 03:18, Kaushal Shriyan a écrit :
> Hi,
>
> I am running the Server version:  (CentOS) on CentOS Linux release
> 7.8.2003 (Core).
>
> Server version: Apache/2.4.6 (CentOS)
> Server built:   Apr  2 2020 13:13:23
> Server's Module Magic Number: 20120211:24
> Server loaded:  APR 1.4.8, APR-UTIL 1.5.2
> Compiled using: APR 1.4.8, APR-UTIL 1.5.2
> Architecture:   64-bit
> Server MPM:     prefork
>   threaded:     no
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=256
>  -D HTTPD_ROOT="/etc/httpd"
>  -D SUEXEC_BIN="/usr/sbin/suexec"
>  -D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
>
> #rpm -qa | grep httpd
> httpd-tools-2.4.6-93.el7.centos.x86_64
> httpd-2.4.6-93.el7.centos.x86_64
> #
>
> #apachectl -M
> Loaded Modules:
>  core_module (static)
>  so_module (static)
>  http_module (static)
>  access_compat_module (shared)
>  actions_module (shared)
>  alias_module (shared)
>  allowmethods_module (shared)
>  auth_basic_module (shared)
>  auth_digest_module (shared)
>  authn_anon_module (shared)
>  authn_core_module (shared)
>  authn_dbd_module (shared)
>  authn_dbm_module (shared)
>  authn_file_module (shared)
>  authn_socache_module (shared)
>  authz_core_module (shared)
>  authz_dbd_module (shared)
>  authz_dbm_module (shared)
>  authz_groupfile_module (shared)
>  authz_host_module (shared)
>  authz_owner_module (shared)
>  authz_user_module (shared)
>  autoindex_module (shared)
>  cache_module (shared)
>  cache_disk_module (shared)
>  data_module (shared)
>  dbd_module (shared)
>  deflate_module (shared)
>  dir_module (shared)
>  dumpio_module (shared)
>  echo_module (shared)
>  env_module (shared)
>  expires_module (shared)
>  ext_filter_module (shared)
>  filter_module (shared)
>  headers_module (shared)
>  include_module (shared)
>  info_module (shared)
>  log_config_module (shared)
>  logio_module (shared)
>  mime_magic_module (shared)
>  mime_module (shared)
>  negotiation_module (shared)
>  remoteip_module (shared)
>  reqtimeout_module (shared)
>  rewrite_module (shared)
>  setenvif_module (shared)
>  slotmem_plain_module (shared)
>  slotmem_shm_module (shared)
>  socache_dbm_module (shared)
>  socache_memcache_module (shared)
>  socache_shmcb_module (shared)
>  status_module (shared)
>  substitute_module (shared)
>  suexec_module (shared)
>  unique_id_module (shared)
>  unixd_module (shared)
>  userdir_module (shared)
>  version_module (shared)
>  vhost_alias_module (shared)
>  dav_module (shared)
>  dav_fs_module (shared)
>  dav_lock_module (shared)
>  lua_module (shared)
>  mpm_prefork_module (shared)
>  proxy_module (shared)
>  lbmethod_bybusyness_module (shared)
>  lbmethod_byrequests_module (shared)
>  lbmethod_bytraffic_module (shared)
>  lbmethod_heartbeat_module (shared)
>  proxy_ajp_module (shared)
>  proxy_balancer_module (shared)
>  proxy_connect_module (shared)
>  proxy_express_module (shared)
>  proxy_fcgi_module (shared)
>  proxy_fdpass_module (shared)
>  proxy_ftp_module (shared)
>  proxy_http_module (shared)
>  proxy_scgi_module (shared)
>  proxy_wstunnel_module (shared)
>  ssl_module (shared)
>  systemd_module (shared)
>  cgi_module (shared)
>  auth_gssapi_module (shared)
>  php7_module (shared)
>
> Is there a way to enable the auth module for basic authentication
> for  Apache/2.4.6 (CentOS)? Any help will be highly appreciated and I
> look forward to hearing from you.
>
> Thanks in advance.
>
> Best Regards,
>
> Kaushal

Hi,
not sure to understand what you request for.

In your message, there is:
> #apachectl -M
> Loaded Modules:
> ...
> auth_basic_module (shared)

So I would say that you have all you need.

If you need some example on how to use it, there are some in the doc.
See [1].

[1]: http://httpd.apache.org/docs/current/mod/mod_auth_basic.html

CJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org