азы мультисайтинга

Embed Size (px)

Citation preview

  • 1.

2.

3. robots.txt 4. 5.

  • ,

6. , 7. , 8. , 9. ,

  • filters filter_formats .

10. locales_* . 11. role . 12. permission , . 13. users . 14. users_roles . 15. ,

  • access IP, , e-mail.

16. authmap (LDAP, OpenID). 17. flood . 18. system . 19. sessions . 20. ,

  • comments .

21. files file_revisions . 22. node node_* . 23. term_* . 24. view_* . 25. vocabulary vocabulary_node_types . 26. , (1)

  • blocks .

27. blocks_roles . 28. boxes () . 29. cache cache_* . 30. history (Drupal 5). 31. menu (Drupal 5). 32. , (2)

  • sequences , , .

33. url_aliasurl_alias_extra , , . 34. variable . 35. watchdog . 36.

37. 38. 39. () 40. 41.

42. 43. (1)

  • :

44. : site1_system shared_users 45. (2) settings.php: $db_prefix = array( 'default'=> 'site1_', 'users'=> 'shared_', 'sessions'=> 'shared_', // ... 'role'=> 'shared_', ); 46. (1) settings.php : $db_url = 'mysqli://user:password@localhost/site1'; $db_prefix = ''; 47. (2) : $db_url = 'mysqli://user:password@localhost/site1'; $db_prefix = array( 'default' => '', 'authmap' => 'shared.', // ... 'users' => 'shared.', ); 48.

49. 50. 51. () 52. 53. (1) :

  • users

54. sessions 55. authmap profile - :

  • profile_fields

56. profile_values 57. (2) , :

  • users

58. users_roles 59. role 60. permission 61. sessions 62. url_alias 63. url_alias_extra 64.

65. 66. 67. () 68. 69. ()

  • Shared Sign-On (http://drupal.org/project/singlesignon)

70. settings.php: ini_set('session.name', 'mysite_PHPSESSID'); 71.

72. 73. 74. () 75. 76. :

  • comments

77. files 78. file_revisions 79. history 80. node 81. node_*

  • term_*

82. view_* 83. vocabulary 84. vocabulary_node_types 85.

86. 87. 88. () 89. ! 90. (1)

  • http://www.razgonka.ru/multisiting

91. http://drupal.ru/node/6226 ! 92. http://drupalcookbook.ru/node/335 93. http://webdevgeeks.com/schemaspy/index.html Drupal 5 94. (2)

  • http://drupal.org/node/132361#comment-222070Pretty much what you had

95. http://groups.drupal.org/node/11795 D5 Shared database - sharing all but theming/layout/navigation 96. http://devbee.com/user_sequence_gotcha user sequence gotcha 97. http://drupal.org/node/291373 Multi-site with single codebase, different content databases, shared user database, shared sign-on