|
NOTE: Solving our "problems' in WP Multisites remains a challenge! Bitnami Support reinstalled WordPress Multisites on our EC2 Server and now we can select a specific theme for a WP domain website. Installed WP Plug-ins should be installed via the WP network administration dashboard where they can subsequently be 'activated for the entire network'. Very important: before installing additional WP plugins check that the suitability or WordPress Multisites and your version of WordPress ! We are still trying to determine whether certain WP plug-ins are functional in the so-called WP 'child' sites as they do not appear in the dashboard of that WP 'child' site.... In view of the 'complexity' of WordPress Multisites we shall also be looking into the alternative of 'several' separate WordPress installations as suggested by Beltran. To easily manage separate these WP sites / blogs we could consider using ManageWP (a WP plugin and "cloud hosted WP dashboard' at www.managewp.com). For more details turn to my answer to this post at the bottom of this page A comprehensive Ebook on WP Multisites can be downloaded for free or a voluntary donation at: http://halfelf.org/ebooks/wordpress-multisite-101/ In WordPress Multisite on Bitnami Cloud Hosting set up under domainname jkk.com we added a second WP site with domain www.hijk.com with the instructions from: http://wiki.bitnami.org/Applications/BitNami_WordPress_Multisite#How_to_add_several_WordPress_Multisite_blogs_with_different_domains.3f We 'updated' the WordPress database, checked the ownership of files and temporarily 'raised' file permissions in the process. **As a rule installed WP Multisite compatible plugins can be networkwide or per site activated. In some cases these plugins do not appear in the 'child' domainsite e.g. hijk.com whilst this exists in jkk.com (the 'main' or 'parent site' domain). Whether the plug-in is (not) functional in the second 'child' WordPress site is then not so apparent. In the WP Dashboard (Leftside menu: Dashboard to Settings) of www.hijk.com several options are 'missing' or not displayed:
In the WP-Dashboard of jkk.com however all (installed/available) Themes, (installed/available) Plugins can be seen and various configuration options under 'Settings tab'. Curiously in Network Admin > Sites 'Add new' under Domain only the jkk.com website is listed!! In the 'My Sites' drop down menu with 'Network Admin' and below that domains are listed: 'Wordpress jkk.com' and 'Wordpress hijk.com' are displayed. Why hijk.com does not appear under 'Sites" remains strange .. ? A very good series of articles on WP Multisites - network setup, plugins etc - can be found at: http://fourblogger.com/wordpress-multisite-plugins-management-and-installation/ We created a blogs.dir directory at: bitnami/apps/wordpress/htdocs/wp-content/blogs.dir/opt and after the WordPress re-install now see that a new (sub) folder for domain www.hijk.com ""/2/"" was automatically created in the blogs.dir directory for our 'child' domainsite hijk.com. In the Wordpress database "unique prefixes" ( number! ) for the main and (second) domainname(s) and blogs are automatically created. You can check this through logging in via phpmyadmin. We can read this in the opt/bitnami/apps/wp/conf/wp-config.php file:
------------------------------------end of quote------------------------------------------ In the wp_site table in our WordPress database we see: (site) id: 1 - domain: jkk.com (site) id: 2 - domain: hijk.com In the wp_blogs table of that WP database we see: blog_id: 1 - site_id: 1 - domain: jkk.com - path: / blog_id: 2 - site_id: 2 - domain: hijk.com - path: / We started off by adding the following lines to our /etc/host (file) for our (new WP) domains: 127.0.0.1 jkk.com 127.0.0.1 hijk.com As we are also using Drupal in a Multisites on our EC2 server instance we needed to create two VirtualHosts for jkk.com and hijk.com for which we used Webmin controlpanel on our server: ----------------------------------------------quote ----------------------------------- ServerAdmin xyz@gmail.com /opt/bitnami/apps/wordpress/conf/wordpress.conf (5) DocumentRoot /opt/bitnami/apps/wor .. /opt/bitnami/apps/wordpress/conf/wordpress.conf (6) ServerName jkk.com /opt/bitnami/apps/wordpress/conf/wordpress.conf (7) ServerAlias www.jkk.com /opt/bitnami/apps/wordpress/conf/wordpress.conf (8) <directory "="" opt="" bitnami="" apps="" wordpress="" htdocs"=""> Options Indexes MultiViews +Foll .. /opt/bitnami/apps/wordpress/conf/wordpress.conf (11) AllowOverride all /opt/bitnami/apps/wordpress/conf/wordpress.conf (12) Order allow,deny /opt/bitnami/apps/wordpress/conf/wordpress.conf (13) Allow from all /opt/bitnami/apps/wordpress/conf/wordpress.conf (14) RewriteEngine On /opt/bitnami/apps/wordpress/conf/wordpress.conf (16) RewriteBase / /opt/bitnami/apps/wordpress/conf/wordpress.conf (17) RewriteRule ^index\.php$ - [L] /opt/bitnami/apps/wordpress/conf/wordpress.conf (18) RewriteRule ^files/(.+) wp-inclu .. /opt/bitnami/apps/wordpress/conf/wordpress.conf (21) RewriteCond %{REQUEST_FILENAME} .. /opt/bitnami/apps/wordpress/conf/wordpress.conf (23) RewriteCond %{REQUEST_FILENAME} .. /opt/bitnami/apps/wordpress/conf/wordpress.conf (24) RewriteRule ^ - [L] /opt/bitnami/apps/wordpress/conf/wordpress.conf (25) RewriteRule . index.php [L] /opt/bitnami/apps/wordpress/conf/wordpress.conf (26) </directory> Our .htaccess file in /opt/bitnami/apps/wordpress/htdocs/.htaccess looks like: <files wp-config.php=""> order allow,deny deny from all </files> <files .htaccess=""> order allow,deny deny from all </files> Note: Our .htaccess file look very different from the .htaccess file information (and quoted information below!) at weblink: http://wiki.bitnami.org/Applications/BitNami_WordPress_Multisite To see our wp-config.conf file in: /opt/bitnami/apps/wp/conf/wp-config please use following weblink and look at end of the post whereby we 'copied" the jkk.com entry for hijk.com but amended the specific details for hijk.com: The following instructions about the .htaccess file and the wp-config.php (Note: PHP and not .conf!: http://wiki.bitnami.org/Applications/BitNami_WordPress_Multisite ---(quote from above weblink)-------------------------------------------------------(quote) Make a directory called blogs.dir inside /installdir/apps/wordpress/htdocs/wp-content/ mkdir /installdir/apps/wordpress/htdocs/wp-content/blogs.dir Next, edit /installdir/apps/wordpress/htdocs/wp-config.php, locate the line / That’s all, stop editing! Happy blogging. / and paste the first big block of code above it. The result should be similar to this, except for your server address which will likely be different: define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); $base = '/wordpress/'; define( 'DOMAIN_CURRENT_SITE', '127.0.0.1' ); define( 'PATH_CURRENT_SITE', '/wordpress/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 ); / That’s all, stop editing! Happy blogging. / Edit /installdir/apps/wordpress/htdocs/.htaccess and replace whatever is between #BEGIN WordPress and #END WordPress with the second big block of code. Again, the result should be similar to this: BEGIN WordPressRewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] uploaded filesRewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] add a trailing slash to /wp-adminRewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.\.php)$ $1 [L] RewriteRule . index.php [L] END WordPress------------------------(end of quote) ------------------------------------------------------ Question: Isn't this suggested information to be added in the .htaccess file not already given in our with Webmin created Virtualhost file meaning we don't need to change our .htaccess file ? We wondered whether we should add to our party quoted (below) wp-config.php file some lines (read: copy the lines for jkk.com and change info to hijk.com) about our second (child) domain hijk.com but after checking our (new) wp-config.php file after the Bitnami Support WordPress re-install that is not necessary ! -------( partly quoted wp-config.php) ----------------------------------------------------------- / That's all, stop editing! Happy blogging. / define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'jkk.com' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 ); with: sudo chown -R bitnami.daemon we changed the ownership of various folders/files form bitnami bitnami: /opt/bitnami/wordpress/ : folder/file ownership + file permissions: wordpress/conf/ folder: 'bitnami root' (755) for file: wordpress.conf file: 'root root' (644) wordpress/htdocs/ folder: 'bitnami daemon' (750) wordpress/htdocs/wp-admin 'bitnami daemon' (755) wordpress/htdocs/wp-content 'bitnami daemon' (775) wordpress/htdocs/wp-includes 'bitnami daemon' (755 .htaccess 'bitnami daemon' (644) wp-config.php 'bitnami daemon' (750) wp-settings.php 'bitnami daemon' (644) wordpress/htdocs/wp-admin/network/ 'bitnami daemon' (755) wordpress/htdocs/wp-admin/user/ 'bitnami daemon' (755) wordpress/htdocs/wp-admin/ 'bitnami daemon' file: customize.php 'bitnami bitnami' (644) !! file: install.php 'bitnami bitnami' (644) !! wordpress/htdocs/wp-content/ |
|
Following the pointer from Beltran we will now investigate the route of 'several' (separate) WordPress installations in Bitnami Cloud Hosting as WordPress Multisites creates problems 'managing plugins' per site. To easily and efficiently manage all these separate WordPress installations, blogs and websites we plan to use ManageWP (www.managewp.com) a paid 'WordPress dashboard in the cloud' including a wordpress plugin for updating, backing-up, importing/exporting/cloning sites and managing plug-ins etc. More info at: http://managewp.com/managewp-compared-to-multisite We found this solution at: http://wpmu.org/beginners-introduction-to-multisite/ WordPress Multisite was primarily designed for creating and managing a network of related blogs or websites and not for a group of unrelated - and separated (!) - WordPress websites. WP Multisites can be problematic under various circumstances. For example for a website with specific upgrade requirements, or that needs to be ported (in the future e.g.) to alternative hosting. Both scenarios would raise major issues with WP Multisites, hence our preference for 'several' WP installations. Another alternative you could look into is the WordPress 'wpremote' plugin: https://wpremote.com/ |
|
Hi, WordPress Multisite plugins have additional flexibility, depending upon their implementation across the network. All plugins are installed on the network dashboard's plugin page, and can be activated per-site or for the entire network. Could you try to install a plugin in your main site and enable it to be used by the child sites? You can find more info at http://codex.wordpress.org/Multisite_Network_Administration |
Hi, sorry about that. We try to help you with WordPress Multisite but it is not an easy application to configure and set up. It is also necessary to configure properly your domain provider. Is it possible to find a different option to host your blogs? Maybe several regular WordPress installations work for you.
Hi, I tried to reproduce it and I can enable any plugin or theme for the site itself:
Thkx Beltran. Jkk.com has all menu's and functionalities (theme/plug-in selection) working. But hijk.com not, whatever we (re)try. One theme only: "Twenty Eleven", no plugin menu button nor under settings button a settings choice for a plugin. A problem with the SuperUser settings? In hijk.com user list only admin (no SuperAdmin/user) What else could be wrong with our set-up ...?? Do we need the Wordpress Domain Mapping Plugin installed? Nothing (no sub folders) in blog.dir folder. Two Virtualhosts created for 2 domains. One plugin folder: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins