private function installUpdateComposer()
    {
        if (!is_file(dirname($this->documentRoot) . '/composer.phar')) {
            // Download composer to the DOCUMENT_ROOT's parent directory.
            if (file_put_contents(
                dirname($this->documentRoot) . '/composer.phar',
                fopen("https://getcomposer.org/download/1.7.1/composer.phar", 'r')
            )) {
                echo $this->logEntry("Composer downloaded successfully. Making composer.phar executable...");
                // CD into DOCUMENT_ROOT parent and make composer.phar executable
                exec("cd " . dirname($this->documentRoot) . " && chmod +x composer.phar");
            } else {
                echo $this->logEntry("Could not get Composer working.  Please check your settings and try again.");
            }
        } else {
            // Check that composer is working
            $check_composer = shell_exec(dirname($this->documentRoot) . "/composer.phar" . ' --version 2>&1');
            echo $this->logEntry($check_composer);
            if (strpos($check_composer, 'omposer version')) {
                // Check for Composer updates
                $update_composer = shell_exec(dirname($this->documentRoot) . "/composer.phar self-update 2>&1");
                echo $this->logEntry("Checking For Composer Update...");
                echo $this->logEntry($update_composer);
            }
        }
    }