Example #1
0
 function resetNonSSLApacheConf()
 {
     global $ehcpinstalldir;
     $ehcpinstalldir = $this->conf['ehcpdir'];
     // Disable the ssl mod
     passthru2("a2dismod ssl");
     // Copy original apache configs from ehcpinstalldir/etc/apache2 back to root ehcpinstalldir
     include_once "install_lib.php";
     rebuild_apache2_config2();
     # in install_lib.php
     // Update database settings
     $this->executeQuery("update misc set value='apache2' where name='webservertype'");
     $this->executeQuery("update misc set value='nonssl' where name='webservermode'");
 }
Example #2
0
function installapacheserver($apacheconf = '')
{
    global $app, $ehcpinstalldir;
    echo "\nStarting apache2 webserver install (default webserver)\n";
    #bekle(__FUNCTION__." basliyor..");
    aptget(array('libapache2-mod-php5', 'php5'));
    rebuild_apache2_config2();
}