예제 #1
0
파일: XDebug.php 프로젝트: wpn-xm/software
 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');
 }