Solved Apache 24 no MPM

AH00534: httpd: Configuration error: no MPM loaded.
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24

Apache won't start with default poudriere configuration. How do I load MPM?
 
Apache won't start with default poudriere configuration.
What exactly do you mean by that? A package built by poudriere? Or the example to use the Poudriere web interface (/usr/local/share/example/poudriere/httpd.conf.sample)? The example is just that, an example, it's not a complete httpd.conf, it's only a partial config.
 
What exactly do you mean by that? A package built by poudriere? Or the example to use the Poudriere web interface (/usr/local/share/example/poudriere/httpd.conf.sample)? The example is just that, an example, it's not a complete httpd.conf, it's only a partial config.
It's the httpd.conf sample from /usr/local/share/example/poudriere/httpd.conf. I see that it's an example configuration file but don't get whether or not I'm supposed to add my configurations to this file or start a new configuration file. What is the syntax or format that the modified directives need to be in? How do I load the MPM? I'm not sure if I'm asking these questions correctly. The handbook doesn't go over MPM unless it's some other module not listed that I need to find.
 
Leave the original httpd.conf that comes with Apache as-is. Copy the /usr/local/share/example/poudriere/httpd.conf to /usr/local/etc/apache24/Includes/poudriere.conf. Restart Apache.
 
Leave the original httpd.conf that comes with Apache as-is. Copy the /usr/local/share/example/poudriere/httpd.conf to /usr/local/etc/apache24/Includes/poudriere.conf. Restart Apache.
That worked syntax okay. So I haven't entered any options in the configuration file. Is that maybe why I can't pull up the web interface? I got a couple error messages after running configtest. httpd: apr_sockaddr_info_get () failed for machine317.proto
httpd: Could not reliably determine the servers fully qualified domain name , using 127.0.0.1 set the server name directive globally to suppress this message.
Also I was wondering if that for other programs which offer a web interface do you do the same process of copying the configuration sample file to the Includes directory of apache24?
 
A few things you can change in httpd.conf, the important ones are these:
Code:
Listen 12.34.56.78:80
Sets the address to listen on. If you don't set this it's going to listen on all available addresses.

Code:
ServerName www.example.com:80
If your hostname isn't properly registered with DNS (both forward and reverse) then you get a warning that it couldn't reliably find the server's FQDN.

Also I was wondering if that for other programs which offer a web interface do you do the same process of copying the configuration sample file to the Includes directory of apache24?
Most don't have an example file. It's assumed you know how to configure Apache properly. I typically create various files in Includes/, usually one for each website. That just makes it easier to handle. All those files are automatically loaded because of a line at the end of httpd.conf:
Code:
Include etc/apache24/Includes/*.conf

A basic VirtualHost stanza looks like this:
Code:
<VirtualHost *:80>
  ServerName something.example.com
  DocumentRoot /usr/local/www/something
  
  <Directory /usr/local/www/something>
    Require all granted
  </Directory>
</VirtualHost>
More often than not you need extra settings. You usually find those in the web application's documentation.
 
Back
Top