user1858796
user1858796

Reputation: 319

Multisite in TYPO3 with individual databases

Is it possible to have multisite setup in Typo3 (i.e. only one typo3 instance with multiple sites inside it) with individual database for each of the sites?

Upvotes: 0

Views: 235

Answers (2)

Florian Rival
Florian Rival

Reputation: 726

No you can't, the multisites in the same TYPO3 instance have the same database.

But you can have several DB so that you can manage through TYPO3 tables from another DB, example of LocalConfiguration.php for that :

'DB' => [
    'Connections' => [
        'Default' => [
            'charset' => 'utf8',
            'dbname' => 'db-default',
            'driver' => 'mysqli',
            'host' => '127.0.0.1',
            'password' => 'xxxx',
            'port' => 3306,
            'user' => 'user-local',
        ],
        'theExternalDb' => [
            'charset' => 'utf8',
            'dbname' => 'db-ext',
            'driver' => 'mysqli',
            'host' => 'localhost',
            'password' => 'zzzzz',
            'port' => 3306,
            'user' => 'user-ext',
        ],
    ],
    'TableMapping' => [
        'Table1' => 'theExternalDb',
        'Table2' => 'theExternalDb'
    ],
]

Edit : a table can only be in one DB, it's the case for table pages which contains the pages for all sites.

Upvotes: 1

Wolffc
Wolffc

Reputation: 1250

Regarding your requirements as an University with "Multiple Sites" and Access Controll / Restrictions.

TYPO3 is able to Handle Multiple Sites and Restrict Frontend / Backend Users to Specific sites. out of the box.

You Might still Consider Multiple Deployments of the Same code Base to Different servers. so Every Department can Host/manage there own site. while using the Corperate Identy (Sitepackages) and Other Approved Extensions from the Central Authoritiy.

we run a Single codebase for around 20 Individual Deployments. without major problems. but at least for us we had to develop some code for content syncronizsation/distribution (like shared news on all systems). and more automisation. as every step has do be done on 20 deployments.

but over all we are quite happy with the resulting decoupeling.

but i would strongly advice do investigate if the regular TYPO3 multisite feature might be enough to solve your Requirements.

Upvotes: 0

Related Questions