Skip to main content

Nieuw Cohort

1. Pas de file subdomain.php aan:

<?php

function subDomain() {
    $subDomain = "www";

    if ( isset($_SERVER['SERVER_NAME'])) {
        $subDomain = explode('.', $_SERVER['SERVER_NAME'])[0];
    }


    if ( $subDomain == 'c22'...') {
        $DB='canvas-c22'......';
    } elseif ( $subDomain == 'c21'...') {
        $DB='canvas-c21'......';
    } elseif ( $subDomain == 'c20'...') {
        $DB='canvas-c20'......';
    } else {
        $DB='canvas'...';
    }

    # $DB='canvas';

    return $DB;
}

?>

2. Maak de nieuwe database aan.

3. /etc/apache2/sites-enabled/......conf server alias toevoegen,

4. Maak gebruikers in database aan

5.