Ejemplo n.º 1
0
	echo "Debug mode TRUE for ". @implode(" ",$argv)."\n";
	echo "LOCATE_APACHE_BIN_PATH.....:".$GLOBALS["CLASS_UNIX"]->LOCATE_APACHE_BIN_PATH()."\n";
	echo "LOCATE_APACHE_CONF_PATH....:".$GLOBALS["CLASS_UNIX"]->LOCATE_APACHE_CONF_PATH()."\n";
	echo "a2enmod....................:{$GLOBALS["a2enmod"]}\n";
	ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);
}

if($argv[1]=="--httpd"){CheckHttpdConf();reload_apache();die();}
if($argv[1]=="--build"){build();reload_apache();die();}
if($argv[1]=="--apache-user"){apache_user();die();reload_apache();}
if($argv[1]=="--sitename"){buildHost(null,$argv[2]);CheckHttpdConf();reload_apache();die();}
if($argv[1]=="--remove-host"){remove_host($argv[2]);reload_apache();die();}
if($argv[1]=="--perms"){FDpermissions($argv[2]);die();}
if($argv[1]=="--failed-start"){CheckFailedStart();die();exit;}
if($argv[1]=="--install-groupware"){install_groupware($argv[2]);die();exit;}
if($argv[1]=="--resolv"){resolv_servers();die();exit;}




help();

// mod_pagespeed ! ! 
//mod_evasive_
//mod_deflate.so

//http://www.tux-planet.fr/installation-et-configuration-de-modsecurity/

function help(){
	echo "Usage : \t(use --verbose for more infos)\n";
	echo "--build............................: Configure apache\n";
Ejemplo n.º 2
0
if ($argv[1] == "--perms") {
    FDpermissions($argv[2]);
    die;
}
if ($argv[1] == "--failed-start") {
    CheckFailedStart();
    die;
    exit;
}
if ($argv[1] == "--install-groupware") {
    install_groupware($argv[2]);
    die;
    exit;
}
if ($argv[1] == "--resolv") {
    resolv_servers();
    die;
    exit;
}
if ($argv[1] == "--drupal") {
    createdupal($argv[2]);
    die;
    exit;
}
if ($argv[1] == "--drupal-infos") {
    drupal_infos($argv[2]);
    die;
    exit;
}
if ($argv[1] == "--drupal-uadd") {
    drupal_add_user($argv[2], $argv[3]);