Hello
I’ve a problem with apache2ctl command.
Kernel: 4.12.14-95.6-default #1 SMP Thu Jan 17 06:04:39 UTC 2019 (6af4ef8) x86_64 x86_64 x86_64 GNU/Linux
Server version: Apache/2.4.23 (Linux/SUSE)
After running: apache2ctl -t; apache2ctl configtest, shows output:
[Fri Mar 15 14:23:51.424716 2019] [so:warn] [pid 31606] AH01574: module actions_module is already loaded, skipping
[Fri Mar 15 14:23:51.424771 2019] [so:warn] [pid 31606] AH01574: module alias_module is already loaded, skipping
[Fri Mar 15 14:23:51.424780 2019] [so:warn] [pid 31606] AH01574: module auth_basic_module is already loaded, skipping
[Fri Mar 15 14:23:51.424798 2019] [so:warn] [pid 31606] AH01574: module authn_core_module is already loaded, skipping
[Fri Mar 15 14:23:51.424803 2019] [so:warn] [pid 31606] AH01574: module authz_core_module is already loaded, skipping
[Fri Mar 15 14:23:51.424808 2019] [so:warn] [pid 31606] AH01574: module authz_groupfile_module is already loaded, skipping
[Fri Mar 15 14:23:51.424814 2019] [so:warn] [pid 31606] AH01574: module authz_host_module is already loaded, skipping
[Fri Mar 15 14:23:51.424819 2019] [so:warn] [pid 31606] AH01574: module deflate_module is already loaded, skipping
[Fri Mar 15 14:23:51.424824 2019] [so:warn] [pid 31606] AH01574: module dir_module is already loaded, skipping
[Fri Mar 15 14:23:51.424831 2019] [so:warn] [pid 31606] AH01574: module dispatcher_module is already loaded, skipping
[Fri Mar 15 14:23:51.424836 2019] [so:warn] [pid 31606] AH01574: module env_module is already loaded, skipping
[Fri Mar 15 14:23:51.424841 2019] [so:warn] [pid 31606] AH01574: module expires_module is already loaded, skipping
[Fri Mar 15 14:23:51.424846 2019] [so:warn] [pid 31606] AH01574: module filter_module is already loaded, skipping
[Fri Mar 15 14:23:51.424851 2019] [so:warn] [pid 31606] AH01574: module headers_module is already loaded, skipping
[Fri Mar 15 14:23:51.424856 2019] [so:warn] [pid 31606] AH01574: module include_module is already loaded, skipping
[Fri Mar 15 14:23:51.424861 2019] [so:warn] [pid 31606] AH01574: module info_module is already loaded, skipping
[Fri Mar 15 14:23:51.424867 2019] [so:warn] [pid 31606] AH01574: module log_config_module is already loaded, skipping
[Fri Mar 15 14:23:51.424874 2019] [so:warn] [pid 31606] AH01574: module mime_module is already loaded, skipping
[Fri Mar 15 14:23:51.424886 2019] [so:warn] [pid 31606] AH01574: module mime_magic_module is already loaded, skipping
[Fri Mar 15 14:23:51.424891 2019] [so:warn] [pid 31606] AH01574: module negotiation_module is already loaded, skipping
[Fri Mar 15 14:23:51.424898 2019] [so:warn] [pid 31606] AH01574: module proxy_module is already loaded, skipping
[Fri Mar 15 14:23:51.424903 2019] [so:warn] [pid 31606] AH01574: module proxy_http_module is already loaded, skipping
[Fri Mar 15 14:23:51.424908 2019] [so:warn] [pid 31606] AH01574: module rewrite_module is already loaded, skipping
[Fri Mar 15 14:23:51.424914 2019] [so:warn] [pid 31606] AH01574: module setenvif_module is already loaded, skipping
[Fri Mar 15 14:23:51.424924 2019] [so:warn] [pid 31606] AH01574: module ssl_module is already loaded, skipping
[Fri Mar 15 14:23:51.424938 2019] [so:warn] [pid 31606] AH01574: module status_module is already loaded, skipping
[Fri Mar 15 14:23:51.424959 2019] [so:warn] [pid 31606] AH01574: module substitute_module is already loaded, skipping
[Fri Mar 15 14:23:51.424974 2019] [so:warn] [pid 31606] AH01574: module remoteip_module is already loaded, skipping
[Fri Mar 15 14:23:51.424980 2019] [so:warn] [pid 31606] AH01574: module macro_module is already loaded, skipping
Syntax OK
In apache2clt there sections for configuration check
file: /usr/sbin/apache2ctl - apache2ctl configtest; apache2ctl -t shows the sections:
configtest)
$ HTTPD -t
ERROR = $?
;;
*)
$ HTTPD "$ @"
ERROR = $?
esac
Apache2 binary is set in file as HTTPD
cat /usr/sbin/apache2ctl | grep HTTPD
HTTPD='/usr/sbin/start_apache2'
When this value is changed in file (workaround) to
HTTPD='/usr/sbin/httpd-prefork'
then configtest and -t seems like below (which is clearer in the output):
hostname: ~ # apache2ctl -t
Syntax OK
hostname: ~ # apache2ctl configtest
Syntax OK
File /etc/apache2/sysconfig.d/loadmodule.conf - was created on the basis of /etc/sysconfig/apache2.
It is only once included in the apache2 configuration:
httpd.conf: Include /etc/apache2/sysconfig.d/loadmodule.conf
In /usr/sbin/start_apache2 there are includes:
-C "Include $sysconfd_dir/loadmodule.conf"
-C "Include $sysconfd_dir/global.conf"
-c "Include $sysconfd_dir/include.conf"
This loadmodule.conf is also included in /etc/apache2/httpd.conf.
What should I do to make the apache2ctl command not display loadmodule warnings ?
Thank you in advance.