Sabtu, 03 November 2018

How to solve apache warning AH01574: module authn_core_module is already loaded, skipping

  1 komentar
Some day, when i config my apache server, i get the warning  AH01574: module authn_core_module is already loaded, it's mean the module loaded by apache more than once, so we need to mark the module that loaded more than once
[[email protected] ~]# service httpd restart
Shutting down httpd:                                       [  OK  ]
Starting httpd: [Sun Nov 04 07:26:44.089756 2018] [so:warn] [pid 116749] AH01574: module authn_file_module is already loaded, skipping
[Sun Nov 04 07:26:44.089834 2018] [so:warn] [pid 116749] AH01574: module authn_core_module is already loaded, skipping
[Sun Nov 04 07:26:44.089841 2018] [so:warn] [pid 116749] AH01574: module authz_host_module is already loaded, skipping
[Sun Nov 04 07:26:44.089848 2018] [so:warn] [pid 116749] AH01574: module authz_groupfile_module is already loaded, skipping
[Sun Nov 04 07:26:44.089854 2018] [so:warn] [pid 116749] AH01574: module authz_user_module is already loaded, skipping
[Sun Nov 04 07:26:44.089860 2018] [so:warn] [pid 116749] AH01574: module authz_core_module is already loaded, skipping
[Sun Nov 04 07:26:44.089867 2018] [so:warn] [pid 116749] AH01574: module access_compat_module is already loaded, skipping
[Sun Nov 04 07:26:44.089872 2018] [so:warn] [pid 116749] AH01574: module auth_basic_module is already loaded, skipping
[Sun Nov 04 07:26:44.089884 2018] [so:warn] [pid 116749] AH01574: module reqtimeout_module is already loaded, skipping
[Sun Nov 04 07:26:44.089891 2018] [so:warn] [pid 116749] AH01574: module filter_module is already loaded, skipping
[Sun Nov 04 07:26:44.089898 2018] [so:warn] [pid 116749] AH01574: module mime_module is already loaded, skipping
[Sun Nov 04 07:26:44.089904 2018] [so:warn] [pid 116749] AH01574: module log_config_module is already loaded, skipping
[Sun Nov 04 07:26:44.089910 2018] [so:warn] [pid 116749] AH01574: module env_module is already loaded, skipping
[Sun Nov 04 07:26:44.089916 2018] [so:warn] [pid 116749] AH01574: module headers_module is already loaded, skipping
[Sun Nov 04 07:26:44.089922 2018] [so:warn] [pid 116749] AH01574: module setenvif_module is already loaded, skipping
[Sun Nov 04 07:26:44.089929 2018] [so:warn] [pid 116749] AH01574: module version_module is already loaded, skipping
[Sun Nov 04 07:26:44.089939 2018] [so:warn] [pid 116749] AH01574: module unixd_module is already loaded, skipping
[Sun Nov 04 07:26:44.089945 2018] [so:warn] [pid 116749] AH01574: module status_module is already loaded, skipping
[Sun Nov 04 07:26:44.089951 2018] [so:warn] [pid 116749] AH01574: module autoindex_module is already loaded, skipping
[Sun Nov 04 07:26:44.089958 2018] [so:warn] [pid 116749] AH01574: module dir_module is already loaded, skipping
[Sun Nov 04 07:26:44.089964 2018] [so:warn] [pid 116749] AH01574: module alias_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
                                                           [  OK  ]
[[email protected] ~]#
Write down the error on text editor, and open the apache config file
[[email protected] conf]# vi httpd.conf
Find the Dynamic Shared Object segment, and mark the include module that have warning already loaded
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#

Include conf/conf.modules.d/*.conf

LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_form_module modules/mod_auth_form.so
...
...
Restart the apache again
[[email protected] conf]# service httpd restart
Shutting down httpd:                                       [  OK  ]
Starting httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
                                                           [  OK  ]
[[email protected] conf]#


1 komentar :