Пример #1
0
 public function enable()
 {
     // add xdebug php extension
     $o = new PHPExtensionManager();
     $o->enable('xdebug');
     // restart php daemon
     Serverstack::restartDaemon('php');
     //echo 'Xdebug enabled.';
     header('Location: ' . WPNXM_WEBINTERFACE_ROOT . 'index.php?page=overview');
 }
Пример #2
0
 public function enable()
 {
     // add memcached php extension
     // note: extension name is "memcache", daemon name is "memcached"
     $o = new PHPExtensionManager();
     $o->enable('memcache');
     // restart php daemon
     Serverstack::restartDaemon('php');
     // start memcached daemon
     Serverstack::startDaemon('memcached');
     //echo 'Memcached enabled.';
     header('Location: ' . WPNXM_WEBINTERFACE_ROOT . 'index.php?page=overview');
 }