This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:cms:drupal [2014/12/16 10:29] procacci@tem-tsp.eu [conf apache] |
docpublic:systemes:cms:drupal [2014/12/16 10:57] (current) procacci@tem-tsp.eu [sites secondaires] |
||
---|---|---|---|
Line 21: | Line 21: | ||
[root@cms / | [root@cms / | ||
[root@cms / | [root@cms / | ||
+ | </ | ||
+ | |||
+ | ==== conf apache ==== | ||
+ | |||
+ | Preparation de la configuration apache + anticipation sur les < | ||
+ | |||
< | < | ||
+ | [root@cms ]# cat / | ||
+ | |||
+ | < | ||
+ | ServerName dup.tem-tsp.eu | ||
+ | ServerAlias dup.* | ||
+ | DocumentRoot / | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | |||
+ | < | ||
+ | ShibRequestSetting applicationId dup | ||
+ | </ | ||
+ | |||
+ | # | ||
+ | < | ||
+ | AuthType Shibboleth | ||
+ | ShibRequireSession Off | ||
+ | # the following single line is only valid for Shib2 | ||
+ | ShibUseHeaders On | ||
+ | require shibboleth | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | AuthType Shibboleth | ||
+ | ShibRequireSession Off | ||
+ | # the following single line is only valid for Shib2 | ||
+ | ShibUseHeaders On | ||
+ | require shibboleth | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | #idem pour https | ||
+ | < | ||
+ | ServerName dup.tem-tsp.eu | ||
+ | ServerAlias dup.* | ||
+ | DocumentRoot / | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | LogLevel warn | ||
+ | SSLEngine on | ||
+ | SSLCipherSuite ALL: | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | SSLCertificateChainFile / | ||
+ | SSLCACertificateFile / | ||
+ | < | ||
+ | ShibRequestSetting applicationId dup | ||
+ | </ | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== database ==== | ||
+ | |||
+ | sur le serveur mysql, preparer la database et les droits d' | ||
+ | |||
+ | < | ||
+ | mysql> create database drupal_mutual; | ||
+ | mysql> GRANT ALL PRIVILEGES ON drupal_mutual.* TO ' | ||
+ | </ | ||
+ | |||
+ | infromations a retenir quand on lancera l' | ||
+ | |||
+ | ==== site primaire ==== | ||
Creation du site primaire (ici dup.tem-tsp.eu) | Creation du site primaire (ici dup.tem-tsp.eu) | ||
preparation du fichier settings.php depuis une copie du default et création du repertoir files, le tout en acces provisoirement largement ouverts pour poursuivre l' | preparation du fichier settings.php depuis une copie du default et création du repertoir files, le tout en acces provisoirement largement ouverts pour poursuivre l' | ||
- | |||
- | | ||
< | < | ||
Line 40: | Line 109: | ||
aller sur http:// | aller sur http:// | ||
+ | |||
+ | |||
+ | |||
+ | ==== sites secondaires ==== | ||
+ | |||
+ | ici nous faisons usage d'une plateforme multisites en mode sous repertoires, | ||
+ | |||
+ | < | ||
+ | [root@cms sites]# mkdir dups.tem-tsp.eu.site1 | ||
+ | [root@cms sites]# cd dups.tem-tsp.eu.site1 | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | </ | ||
+ | |||
+ | === lien symbolique === | ||
+ | |||
+ | lien indispensable pour l' | ||
+ | |||
+ | < | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | </ | ||
+ | |||
+ | Installation du site secondaire via l'URL http:// | ||
+ | |||
+ | ensuite il faut retablir des droits d' | ||
+ | |||
+ | < | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | [root@cms dup.tem-tsp.eu.site1]# | ||
+ | total 52 | ||
+ | -rw-r--r-- 1 root root 23770 Dec 15 22:35 default.settings.php | ||
+ | drwxrwxr-x 3 root apache | ||
+ | -rw-r----- 1 root apache 24094 Dec 15 22:38 settings.php | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== shibboleth ===== | ||
+ | |||
+ | === ref === | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | nous faisons usage du module drupal shib_auth qui permet une authentification shibboleth, mais aussi une affectation de role basé sur attributs shibboleth . | ||
+ | |||
+ | < | ||
+ | [root@cms modules]# wget http:// | ||
+ | [root@cms modules]# tar xvfz shib_auth-7.x-4.0.tar.gz | ||
+ | </ | ||
+ | |||
+ | activation et parameterage du module via l' | ||
+ | |||
+ | |||