{"id":8768,"date":"2005-04-03T07:37:55","date_gmt":"2005-04-03T05:37:55","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/04\/03\/running-multiple-blogs-with-wordpress\/"},"modified":"2005-04-09T09:52:44","modified_gmt":"2005-04-09T06:52:44","slug":"running-multiple-blogs-with-wordpress","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/04\/03\/running-multiple-blogs-with-wordpress\/","title":{"rendered":"Running multiple blogs with WordPress"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>WordPress is an excellent blogging tool.  It has one shortcoming though.  It does support multiple blogs setup within a single installation.  Maybe there are some plugins to fix it, but I didn&#8217;t look for them yet.  The situation is easy to control to a certain degree.<\/p>\n<p>For one of my upcoming projects, I need to have two blogs &#8211; one in Russian language and another in English.  They will have separate posts, separate comments, separate configurations, and even different design.  But I want them to have the same users.  Here is how I solved the problem:<\/p>\n<ol>\n<li>Extract <code>latest.tar.gz<\/code> into the <code>\/english\/<\/code> directory for the first blog.<\/li>\n<li>Extract <code>latest.tar.gz<\/code> into the <code>\/russian\/<\/code><code> directory for the second blog.<\/code><\/li>\n<li>Modify file <code>\/english\/wp-config.php<\/code> to have &#8220;wp_eng_&#8221; as table prefix.<\/li>\n<li>Modify file <code>\/russian\/wp-config.php<\/code> to have &#8220;wp_rus_&#8221; as table prefix.<\/li>\n<li>Install both instanses using the same database information (database name, username, password, and host).<\/li>\n<li>Modify file <code>\/russian\/wp-settings.php<\/code> to use a different table for user information.  Change this line (approximately line number 43):\n<pre>$wpdb->users            = $table_prefix . 'users';<\/pre>\n<p>\tto look like:<\/p>\n<pre>$wpdb->users            = 'wp_eng_' . 'users';<\/pre>\n<\/li>\n<li>Optionally, <code>wp_rus_users<\/code> table can be dropped from the database.<\/li>\n<\/ol>\n<p>That&#8217;s all folks.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>WordPress is an excellent blogging tool. It has one shortcoming though. It does support multiple blogs setup within a single installation. Maybe there are some plugins to fix it, but I didn&#8217;t look for them yet. The situation is easy to control to a certain degree. For one of my upcoming projects, I need to &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/04\/03\/running-multiple-blogs-with-wordpress\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Running multiple blogs with WordPress<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,62],"tags":[29],"keyring_services":[],"class_list":["post-8768","post","type-post","status-publish","format-standard","hentry","category-general","category-technology","tag-blogging"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":16527,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/20\/wp-config-php-and-standalone-scripts\/","url_meta":{"origin":8768,"position":0},"title":"wp-config.php and standalone scripts","author":"Leonid Mamchenkov","date":"July 20, 2012","format":false,"excerpt":"WordPress plugin architecture is great and it provides developers with a lot of flexibility. \u00a0But once in a while one needs to write a standalone script that should use some of WordPress settings. \u00a0For example, a script that would have the same database credentials as a WordPress instance. \u00a0This sounds\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16526,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/20\/wp-config-php-and-git\/","url_meta":{"origin":8768,"position":1},"title":"wp-config.php and git","author":"Leonid Mamchenkov","date":"July 20, 2012","format":false,"excerpt":"If you are storing your WordPress changes in git and then deploy the project between different machines (local, test server, production environment, etc), then you are probably familiar with a problem of wp-config.php file. \u00a0WordPress uses it for things like database credentials, which vary from machine to machine. \u00a0But you\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16611,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/08\/07\/wordpress-codex-editing-wp-config-php\/","url_meta":{"origin":8768,"position":2},"title":"WordPress Codex : Editing wp-config.php","author":"Leonid Mamchenkov","date":"August 7, 2012","format":"link","excerpt":"WordPress Codex : Editing wp-config.php On this page, even experienced WordPress users and developers are likely to find something that they've never heard of or long forgotten about.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10348,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/08\/16\/on-multilingual-blogging\/","url_meta":{"origin":8768,"position":3},"title":"On multilingual blogging","author":"Leonid Mamchenkov","date":"August 16, 2006","format":false,"excerpt":"I cam across an interesting discussion on multilingual blogging via this BloggingPro post. The question is: what's the best way to do it? I've thought about it more than once. I've even had to make this decision more than once. You see, my native language is Russian. My written Russian\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8319,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/12\/10\/disappearing-files\/","url_meta":{"origin":8768,"position":4},"title":"Disappearing files","author":"Leonid Mamchenkov","date":"December 10, 2004","format":false,"excerpt":"Some known facts can use more reminders... Fedora Core Linux 2, as well as many other Linux and Unix machines, has a script (\/etc\/cron.daily\/tmpwatch) that is regularly executed by cron, which goes around your temporary directories and removes old files. This is a very useful utilty which helps to keep\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28431,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/03\/14\/updating-wordpress-with-composer-and-wp-cli\/","url_meta":{"origin":8768,"position":5},"title":"Updating WordPress with Composer and WP-CLI","author":"Leonid Mamchenkov","date":"March 14, 2018","format":false,"excerpt":"The other day I came across this blog post by\u00a0Mark Jaquith, who is one of the lead contributors to WordPress, in which he describes his process of updating WordPress plugins with WP-CLI and Git.\u00a0 I think a lot of people these days are trying to use Git for version control\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=8768"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8768\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=8768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=8768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=8768"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=8768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}