Parent

Methods

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]

These are required and are never nil.

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 47
def initialize(detector)
        @detector = detector
end

Public Instance Methods

report() click to toggle source
# File lib/phusion_passenger/platform_info/apache_detector.rb, line 51
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}"
        log "      Error log file : #{error_log}"
        log ""
        log "   To install Phusion Passenger 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 ""
        log "   To troubleshoot, please read the logs in this file:"
        log "      #{error_log}"
        log ""
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.