Web_Module

Web server and package management
extends Module\Skeleton\Standard implements Opcenter\Contracts\Hookable
Methods Summary
public
# __construct( )
void __construct(void)

ignore


Overrides

public
public
# enable_ruby_on_rails( $ver = NULL )
public
public
# get_ruby_version( $full = false )
public
public
public
# list_installed_gems( $rubyver = NULL )
public
public
# get_gem( $gem , $local = false )
public
# get_gem_version( $gem , $local = false )
public
# install_gem( $gem , $ver = NULL )
public
# uninstall_gem( $gem , $ver = NULL )
public
public
public
# install_pear_package( $module )
public
public
public
# get_pear_description( $mModule )
public
public
# remove_pear_channel( $channel )
public
public
# get_pear_channel_info( $channel )
public
# get_frontpage_status( $domain = NULL )
public
# toggle_frontpage( $domain = NULL )
public
public
# user_service_enabled( string $user , string $svc )
User capability is enabled for web service Possible values subdomain, cgi
public
public
# validate_subdomains( )
Sweep all subdomains to confirm accessibility
public
# list_subdomains( string $filter = '', string|array $domains = array ( ) )
List subdomains on the account Array format- subdomain => path
public
# subdomain_exists( string $subdomain )
Check if named subdomain exists Fallthrough, local, and global subdomain patterns are valid

see

add_subdomain()
public
# subdomain_accessible( $subdomain )
public
# subdomain_info( string $subdomain )
Get detailed information on a subdomain Response: path (string): filesystem location active (bool): subdomain references accessible directory user (string): owner of subdomain type (string): local, global, or fallthrough
public
# add_subdomain( string $subdomain , string $docroot )
Add subdomain to account There are 3 types of subdomains: Local- subdomain includes subdomain + domain - foo.bar.com Fallthrough- subdomain is named after domain - bar.com Global- subdomain excludes domain - foo
public
# add_subdomain_raw( $subdomain , $docroot )
public
# remove_subdomain( string $subdomain )
Remove a subdomain
public
# remove_user_subdomain( string $user )
Removes all subdomains associated with a named user
public
# map_subdomain( string $mode , string $subdomain , string $path = NULL, string $user = NULL )
Manage subdomain symlink mapping

todo


public
# rename_subdomain( string $subdomain , string $newsubdomain = NULL, string $newpath = NULL )
Rename a subdomain and/or change its path
public
# purge( )
Clear path cache
public
# normalize_path( string $hostname , string $path = '' )
Retrieve document root for given host Doubly useful to evaluate where documents will be served given a particular domain
public
# normalize_hostname( string $host )
Get the normalized hostname from a global subdomain
public
# domain_info( string $domain )
Get information on a domain Info elements path (string): filesystem path active (bool): domain is active and readable user (string): owner of directory
public
# domain_exists( string $domain )
Test if domain is attached to account
public
# split_host( string $host )
Split hostname into subdomain + domain components
public
# get_docroot( $hostname , $path = '' )
public
# get_hostname_from_docroot( string $docroot )
public
# bind_dav( string $location , string $provider )
Assign a path as a DAV-aware location
public
# allow_protocol( string $hostname , string $proto = 'http10' )
Permit a disallowed protocol access to hostname
public
# disallow_protocol( string $hostname , string $proto = 'http10' )
public
# protocol_disallowed( string $hostname , string $proto = 'http10' )
public
# unbind_dav( $location )
public
public
public
# _edit_user( string $userold , string $usernew , array $oldpwd )
public
# _create( )
Account created

Implementation of

public
# _verify_conf( Opcenter\Service\ConfigurationContext $ctx )
public
# _reload( $why = NULL )
public
public
public
public
public
public
Methods inherited from Module\Skeleton\Standard
__construct(), set_user_parameters(), clean_user_parameters(), set_session_id(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), get_service_names(), get_services(), get_new_services(), get_active_services(), get_config(), get_service_value(), set_config_journal(), set_config(), query(), _resetModule()
Constants Summary
public array DEPENDENCY_MAP
# array ( 0 => 'ipinfo', 1 => 'ipinfo6', 2 => 'siteinfo', 3 => 'dns', 4 => 'aliases', )
public string MAIN_DOC_ROOT
# '/var/www/html'
public string WEB_USERNAME
# 'apache'
public int WEB_GROUPID
# 48
public string PROTOCOL_MAP
# '/etc/httpd/conf/http10'
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $pathCache

# array ( )
protected $service_cache

# NULL
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql