unable to start httpd when using puppetmaster.conf

asked 2016-08-24 09:01:47 -0600

ranj1185 gravatar image

updated 2016-08-25 03:09:35 -0600

Hi I am trying to use puppetmaster-passenger' with httpd. However when I put the puppetmaster.conf in /etc/httpd/conf.d/ with the content advised in the instructions I the error below:

 -- Unit httpd.service has begun starting up.
Aug 20 04:39:26 puppetmaster.com httpd[8484]: AH00526: Syntax error on line 16 of /etc/httpd/conf.d/puppetmaster.conf:
Aug 20 04:39:26 puppetmaster.com httpd[8484]: Invalid command 'PassengerMaxPoolSize', perhaps misspelled or defined by a module not included in the server configuration
Aug 20 04:39:26 puppetmaster.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 20 04:39:26 puppetmaster.com kill[8488]: kill: cannot find process ""
Aug 20 04:39:26 puppetmaster.com systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 20 04:39:26 puppetmaster.com systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--
-- Unit httpd.service has failed.

    --
-- The result is failed.
Aug 20 04:39:26 puppetmaster.com systemd[1]: Unit httpd.service entered failed state.
Aug 20 04:39:26 puppetmaster.com systemd[1]: httpd.service failed.
Aug 20 04:39:27 puppetmaster.com polkitd[678]: Unregistered Authentication Agent for unix-process:8468:6940078 (system bus name :1.523, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.U
Aug 20 04:40:01 puppetmaster.com systemd[1]: Started Session 140 of user root.
-- Subject: Unit session-140.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Here is the content of the puppetmaster.conf file:

# You'll need to adjust the paths in the Passenger config depending on which OS
# you're using, as well as the installed version of Passenger.

# Debian/Ubuntu:
#LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-4.0.x/ext/apache2/mod_passenger.so
#PassengerRoot /var/lib/gems/1.8/gems/passenger-4.0.x
#PassengerRuby /usr/bin/ruby1.8

# RHEL/CentOS:
#LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.x/ext/apache2/mod_passenger.so
#PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.x
#PassengerRuby /usr/bin/ruby

# And the passenger performance tuning settings:
# Set this to about 1.5 times the number of CPU cores in your master:
PassengerMaxPoolSize 12
# Recycle master processes after they service 1000 requests
PassengerMaxRequests 1000
# Stop processes if they sit idle for 10 minutes
PassengerPoolIdleTime 600

Listen 8140
<VirtualHost *:8140>
    # Make Apache hand off HTTP requests to Puppet earlier, at the cost of
    # interfering with mod_proxy, mod_rewrite, etc. See note below.
    PassengerHighPerformance On

    SSLEngine On

    # Only allow high security cryptography. Alter if needed for compatibility.
    SSLProtocol ALL -SSLv2 -SSLv3
    SSLCipherSuite EDH+CAMELL
    SSLHonorCipherOrder     on

    SSLCertificateFile      /var/lib/puppet/ssl/certs/puppetmaster.com.pem
    SSLCertificateKeyFile   /var/lib/puppet/ssl/private_keys/puppetmaster.com.pem
    SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem
    SSLCACertificateFile    /var/lib/puppet/ssl/ca/ca_crt.pem
    SSLCARevocationFile     /var/lib/puppet/ssl/ca/ca_crt.pem ...
(more)
edit retag flag offensive close merge delete