WordPress 3.0 MultiSite Features

6,106 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,106
On SlideShare
0
From Embeds
0
Number of Embeds
197
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

WordPress 3.0 MultiSite Features

  1. 1. WordPress 3.0 Multi Site Features Pete Mall WordCamp Orange County April 24, 2010
  2. 2. <ul><li>Pete Mall </li></ul><ul><li>WordPress Consultant </li></ul><ul><li>Joint Forces Technology Solutions </li></ul><ul><li>@petemall </li></ul><ul><li>[email_address] </li></ul><ul><li>developersmind.com </li></ul>
  3. 3. WordPress 3.0 MultiSite Features <ul><li>Powers wordpress.com </li></ul><ul><li>Unlimited users and sites (blogs) </li></ul><ul><li>Independent permission, themes and plugins </li></ul><ul><li>Single Install = Easy to Manage </li></ul>
  4. 4. Requirements <ul><li>PHP version 4.3 or greater </li></ul><ul><li>MySQL version 4.1.2 </li></ul><ul><li>Apache mod_rewrite (Linux Hosting Recommended) </li></ul><ul><li>Wildcard CNAME record for subdomains </li></ul><ul><li>Avoid Shared Hosting </li></ul>
  5. 5. WordPress 3.0 Terminology <ul><li>WP + MU = WP (with multisite) </li></ul><ul><li>Blogs in MU = Sites in WP 3.0 </li></ul><ul><li>Site in MU = Network in WP 3.0 </li></ul><ul><li>MultiSite in MU = MultiNetwork in WP 3.0 </li></ul>
  6. 6. Installation <ul><li>Download WordPress 3.0 (beta http://j.mp/wp3b1) </li></ul><ul><li>Unzip and Install </li></ul>
  7. 7. Activate MultiSite <ul><li>Edit wp-config.php </li></ul><ul><li>Add: define( ‘WP_ALLOW_MULTISITE’, true ); </li></ul><ul><li>Tools >> Network </li></ul><ul><li>Sub-domains vs Sub-directories </li></ul><ul><ul><li>site1.domain.com vs domain.com/site </li></ul></ul><ul><li>Create directory wp-content/blogs.dir </li></ul><ul><li>Edit wp-config.php and .htaccess </li></ul>
  8. 8. Sub-domains <ul><li>DNS Wildcard Record </li></ul><ul><li>*.domain.com. 14400 IN A 76.74.254.126 </li></ul><ul><li>Add the following to httpd.conf under <VirtualHost> </li></ul><ul><li>ServerAlias *.domain.com </li></ul>
  9. 9. Upgrading <ul><li>Upgrading from WordPress 2.9.2 </li></ul><ul><ul><li>Automatic Upgrade </li></ul></ul><ul><ul><li>Manual Upgrade </li></ul></ul><ul><ul><li>Enable MultiSite </li></ul></ul><ul><li>Upgrading from WordPress MU 2.9.2 </li></ul><ul><ul><li>Automatic Upgrade </li></ul></ul><ul><ul><li>Manual Upgrade </li></ul></ul><ul><ul><li>Edit .htaccess </li></ul></ul>
  10. 10. Upgrading 2.9.2 MU to 3.0 beta <ul><li>Download WordPress 3.0 beta1 (http://j.mp/wp3b1) </li></ul><ul><li>Extract and copy everything except wp-content </li></ul><ul><li>Delete wp-content/blogs.php </li></ul>
  11. 11. Upgrading 2.9.2 MU to 3.0 beta <ul><li>Update .htaccess to use wp-includes/ms-files.php </li></ul><ul><li>Remove: </li></ul><ul><ul><ul><li>RewriteRule ^(.*/)?files/$ index.php [L] </li></ul></ul></ul><ul><ul><ul><li>RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* </li></ul></ul></ul><ul><ul><ul><li>RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] </li></ul></ul></ul><ul><ul><ul><li>RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] </li></ul></ul></ul><ul><li>Add: </li></ul><ul><ul><ul><li>RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] </li></ul></ul></ul><ul><ul><ul><li>RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] </li></ul></ul></ul><ul><li>Update Network </li></ul>
  12. 12. WordPress 3.0 MultiNetwork <ul><li>WP Multi Network Plugin </li></ul><ul><ul><li>http://j.mp/jjjwpmn </li></ul></ul><ul><li>WPMU Tutorials MultiSite Plugin  Network </li></ul><ul><ul><li>http://wpmututorials.com </li></ul></ul>John James Jacoby Ron & Andrea Rennick
  13. 13. Domain Mapping <ul><li>WordPress MU Domain Mapping </li></ul><ul><ul><li>http://j.mp/dmnmp </li></ul></ul><ul><li>WPMU Tutorials Domain Mapping </li></ul><ul><ul><li>http://wpmututorials.com </li></ul></ul>Donncha O Caoimh Ron & Andrea Rennick
  14. 14. Deprecated Functions <ul><li>get_alloptions() </li></ul><ul><li>get_profile()  get_the_author_meta() </li></ul><ul><li>trackback_rdf() </li></ul><ul><li>add_option_update_handler  register_setting() </li></ul><ul><li>remove_option_update_handler  remove_setting() </li></ul>
  15. 15. Deprecated Functions <ul><li>automatic_feed_link()  add_theme_support( ‘automatic-feed-links’ ) </li></ul><ul><li>set_current_user()  wp_set_current_user() </li></ul><ul><li>clean_url()  esc_url() and esc_url_raw() </li></ul><ul><li>get_usernumposts()  count_user_posts() </li></ul><ul><li>*_usermeta()  *_user_meta() </li></ul>
  16. 16. Code Backup <ul><li>backup: tar czf backup_html_$(date +%Y_%m_%d-%H_%M).tar.gz <public_html>/ </li></ul><ul><li>chmod 700 backup </li></ul><ul><li>exec $(./backup) </li></ul><ul><li>backup_html_2010_04_24-08_54.tar.gz </li></ul>
  17. 17. Database Backup <ul><li>backupdb: mysqldump -h <hostname> -qp --all-databases | gzip > all-databases_$(date +%Y_%m_%d-%H_%M).sql.gz </li></ul><ul><li>chmod 700 backupdb </li></ul><ul><li>exec $(./backupdb) </li></ul><ul><li>all-databases_2009_10_10-11_45.sql.gz </li></ul>
  18. 18. Questions? <ul><li>Pete Mall </li></ul><ul><li>[email_address] </li></ul><ul><li>developersmind.com </li></ul><ul><li>twitter: @petemall </li></ul>

×