[root@ABFSTCLCGTWPA ~]# systemctl -l status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-05-28 20:41:19 IST; 13min ago
     Docs: man:httpd.service(8)
  Process: 200132 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 200132 (code=exited, status=1/FAILURE)

May 28 20:41:19 ABFSTCLCGTWPA systemd[1]: Starting The Apache HTTP Server...
May 28 20:41:19 ABFSTCLCGTWPA httpd[200132]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 49 of /etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_remoteip.so into server: /etc/httpd/modules/mod_remoteip.so: undefined symbol: apr_sockaddr_is_wildcard
May 28 20:41:19 ABFSTCLCGTWPA systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 28 20:41:19 ABFSTCLCGTWPA systemd[1]: Failed to start The Apache HTTP Server.
May 28 20:41:19 ABFSTCLCGTWPA systemd[1]: Unit httpd.service entered failed state.
May 28 20:41:19 ABFSTCLCGTWPA systemd[1]: httpd.service failed.

when i entered below comment

[root@ABFSTCLCGTWPA ~]# sudo httpd -t
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 49 of /etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_remoteip.so into server: /etc/httpd/modules/mod_remoteip.so: undefined symbol: apr_sockaddr_is_wildcard
[root@ABFSTCLCGTWPA ~]#
edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @ksiddhesh54,

It looks like you are trying to load an apache module called mod_remoteip but there is a problem with the mod_remoteip.so file. How did you exactly install the module?

You could try to reinstall the module first and then load it in your Apache configuration.

Another thing you could do, as a quick fix, remove or comment out the line from your Apache config file so that it does not try to load it.

To do that open the /etc/httpd/conf.modules.d/00-base.conf config file on line 49 and add a # in the beginning in order to disable the module completely. After that restart Apache again.

Let me know how it goes!
Regards,
Bobby

  • Hi I have not installed mod_remoteip module manually.
    I have installed below rpm packages for apache installation on my RHEL 7.

    httpd-2.4.35-2.el7.x8664.rpm
    httpd-filesystem-2.4.35-2.el7.noarch.rpm
    httpd-tools-2.4.35-2.el7.x86
    64.rpm
    libnghttp2-1.31.1-2.el7.x86_64.rpm
    mailcap-2.1.41-2.el7.noarch.rpm

    but while trying to start apache i’m getting below error.
    Kindly help.

    [root@ABFSTCLCGTWPA ~]# systemctl start httpd
    Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.

    systemctl status httpd.service

    [root@ABFSTCLCGTWPA ~]# systemctl status httpd.service
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Fri 2020-05-29 15:13:37 IST; 51s ago
    Docs: man:httpd.service(8)
    Process: 59146 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
    Main PID: 59146 (code=exited, status=1/FAILURE)

    May 29 15:13:37 ABFSTCLCGTWPA systemd[1]: Starting The Apache HTTP Server…
    May 29 15:13:37 ABFSTCLCGTWPA httpd[59146]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 49 of /etc/httpd/conf.module…s_wildcard
    May 29 15:13:37 ABFSTCLCGTWPA systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    May 29 15:13:37 ABFSTCLCGTWPA systemd[1]: Failed to start The Apache HTTP Server.
    May 29 15:13:37 ABFSTCLCGTWPA systemd[1]: Unit httpd.service entered failed state.
    May 29 15:13:37 ABFSTCLCGTWPA systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@ABFSTCLCGTWPA ~]#

    Also i have tried to uncomment this module from /etc/httpd/conf.modules.d/00-base.conf but getting another error “httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.modules.d/00-systemd.conf: Cannot load modules/modsystemd.so into server: /etc/httpd/modules/modsystemd.so: undefined symbol: aprsockaddris_wildcard”

    i have uncomment this also but getting new error.
    <^>[root@ABFSTCLCGTWPA ~]# systemctl status httpd.service
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
    Active: failed (Result: timeout) since Fri 2020-05-29 15:27:40 IST; 5min ago
    Docs: man:httpd.service(8)
    Process: 59849 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
    Main PID: 59849 (code=exited, status=0/SUCCESS)

    May 29 15:26:09 ABFSTCLCGTWPA systemd[1]: Starting The Apache HTTP Server…
    May 29 15:26:09 ABFSTCLCGTWPA httpd[59849]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 10.158.4.169. Set …is message
    May 29 15:27:39 ABFSTCLCGTWPA systemd[1]: httpd.service start operation timed out. Terminating.
    May 29 15:27:40 ABFSTCLCGTWPA systemd[1]: Failed to start The Apache HTTP Server.
    May 29 15:27:40 ABFSTCLCGTWPA systemd[1]: Unit httpd.service entered failed state.
    May 29 15:27:40 ABFSTCLCGTWPA systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.<^>

    Kindly help me is there any thing wrong in httpd(apache) installation.

    • Hi there @ksiddhesh54,

      I would recommend reinstall the module first and then load it in your Apache configuration.

      Another thing you could do, as a quick fix, remove or comment out the line from your Apache config file so that it does not try to load it. That way you will get your Apache up and running while you investigate the problem with the module.

      Let me know how it goes!
      Regards,
      Bobby

Submit an Answer