Parent

Class/Module Index [+]

Quicksearch

PhusionPassenger::PlatformInfo::ApacheDetector::Result

Attributes

a2dismod[RW]

These are optional and may be nil.

a2enmod[RW]

These are optional and may be nil.

apxs2[RW]

These are required and are never nil.

config_file[RW]

Ttis may be nil. It depends on whether 'apache2ctl -V' succeeds.

config_file_broken[W]
ctl[RW]

These are required and are never nil.

error_log[RW]

This may be nil. It depends on how well we can infer information from the config file.

httpd[RW]

These are required and are never nil.

version[RW]

These are required and are never nil.

Public Class Methods

new(detector) click to toggle source
# File lib/phusion_passenger/platform_info/apache_detector.rb, line 54
def initialize(detector)
  @detector = detector
end

Public Instance Methods

config_file_broken?() click to toggle source
# File lib/phusion_passenger/platform_info/apache_detector.rb, line 58
def config_file_broken?
  @config_file_broken
end
report() click to toggle source
# File lib/phusion_passenger/platform_info/apache_detector.rb, line 62
def report
  log " <b>* Found Apache #{version}!</b>"
  log "   Information:"
  log "      apxs2          : #{apxs2}"
  log "      Main executable: #{httpd}"
  log "      Control command: #{ctl}"
  log "      Config file    : #{config_file || 'unknown'}"
  log "      Error log file : #{error_log || 'unknown'}"
  if config_file_broken?
    log ""
    log "   WARNING:"
    log "      <red>The configuration file seems to be broken! Please double-check it by running:</red>"
    log "      <red>#{ctl} -t</red>"
  end
  log ""
  log "   To install #{PROGRAM_NAME} against this specific Apache version:"
  log "      #{PlatformInfo.ruby_command} #{PhusionPassenger.bin_dir}/passenger-install-apache2-module --apxs2-path='#{apxs2}'"
  log ""
  log "   To start, stop or restart this specific Apache version:"
  log "      #{ctl} start"
  log "      #{ctl} stop"
  log "      #{ctl} restart"
  log ""
  if error_log
    log "   To troubleshoot, please read the logs in this file:"
    log "      #{error_log}"
    log ""
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.