diff --git a/includes/Clamp/ApacheCommand.php b/includes/Clamp/ApacheCommand.php index 88c1113..3cc1a6b 100644 --- a/includes/Clamp/ApacheCommand.php +++ b/includes/Clamp/ApacheCommand.php @@ -14,6 +14,7 @@ public function executeStart(array $args = array(), array $options = array()) $this->preparePaths($options); exec($this->getConfig('$.apache.commands.httpd') . ' -f /dev/null ' . $this->buildParameters($options) . ' > /dev/null &'); $this->waitFor($this->getPath($options['pidfile'])); + exec('sudo chmod g+rwx ' . $this->getPath($options['pidfile'])); $this->writeln('Apache server started', ConsoleKit\Colors::GREEN); } else { @@ -32,4 +33,4 @@ public function executeStop(array $args = array(), array $options = array()) $this->writeln('Apache server is not running', ConsoleKit\Colors::YELLOW); } } -} \ No newline at end of file +}