class hostingService_http_https_apache in Aegir HTTPS 7.3
Hierarchy
- class \hostingService_https extends \hostingService_http_public
Expanded class hierarchy of hostingService_http_https_apache
File
- submodules/
apache_https/ hosting_apache_https.service.inc, line 8 - Define a Hosting service class for Apache w/HTTPS.
View source
class hostingService_http_https_apache extends hostingService_https {
public $type = 'https_apache';
public $name = 'Apache HTTPS';
protected $has_restart_cmd = TRUE;
/* TODO: Turn this into trait so it can be shared with the base http_apache class. */
function default_restart_cmd() {
$command = '/usr/sbin/apachectl';
# a proper default for most of the world
foreach (explode(':', $_SERVER['PATH']) as $path) {
$options[] = "{$path}/apache2ctl";
$options[] = "{$path}/apachectl";
}
# try to detect the apache restart command
$options[] = '/usr/local/sbin/apachectl';
# freebsd
$options[] = '/usr/sbin/apache2ctl';
# debian + apache2
$options[] = $command;
foreach ($options as $test) {
if (is_executable($test)) {
$command = $test;
break;
}
}
return "sudo {$command} graceful";
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
hostingService_https:: |
public | function | ||
hostingService_https:: |
public | function | ||
hostingService_https:: |
function | |||
hostingService_https:: |
function | |||
hostingService_https:: |
function | |||
hostingService_https:: |
function | |||
hostingService_https:: |
function | |||
hostingService_https:: |
public | function | ||
hostingService_https:: |
function | |||
hostingService_http_https_apache:: |
protected | property | ||
hostingService_http_https_apache:: |
public | property | ||
hostingService_http_https_apache:: |
public | property | ||
hostingService_http_https_apache:: |
function |