Bootstrap FreeKB - Apache (Web Server) - Resolve "Segmentation fault"
Apache (Web Server) - Resolve "Segmentation fault"

Updated:   |  Apache (Web Server) articles

Let's say something like this is being returned when attempting to start an Apache HTTP web server.

[Mon Nov 14 23:57:10.180950 2022] [core:notice] [pid 6169:tid 139677085628224] AH00052: child pid 14282 exit signal Segmentation fault (11)

 

I typically find this suggest some issue with a module. The apachectl command with the -M flag can be used to display the modules that are currently loaded. Check out my article Display loaded modules using the apachectl command.

<web_server_root>/bin/apachectl -M

 

Which should return something like this.

Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 reqtimeout_module (shared)
 mpm_worker_module (shared)
 unixd_module (shared)
 authz_host_module (shared)
 authz_core_module (shared)
 authn_core_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_user_module (shared)
 include_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 unique_id_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 autoindex_module (shared)
 cgid_module (shared)
 dir_module (shared)
 actions_module (shared)
 alias_module (shared)
 status_module (shared)
 mpmstats_module (shared)
 backtrace_module (shared)
 whatkilledus_module (shared)

 

The httpd.conf file will contain a line for each module, like this:

LoadModule core_module modules/core_module.so
LoadModule so_module   modules/so_module.so
LoadModule http_module modules/http_module.so

 

And the module .so files should be in the modules directory.

<web_server_root>/modules/core_module.so
<web_server_root>/modules/so_module.so
<web_server_root>/modules/http_module.so

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 0a6118 in the box below so that we can be sure you are a human.