Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: thowden on April 16, 2011, 08:59:55 AM
-
Hi
Has anyone got any recent experience with Wordpress 3.1.x (3.1.1 is latest, 3.1.0 is what I am using) on SME Server 8 (beta 6) ?
The old MU (multiuser) version in previous versions of WP is now referenced as WP Network or Multisite depending on where you look.
The point is that .htaccess rules are required to rewrite the wp-admin files/folders to allow access at the subsite level.
I keep getting 500 errors or 404 errors depending the changes that I make.
The live site works fine (on LAMP but not SME) and the site that fails is a copy to my SME dev server at home. All of which leads to me thinking the issue is with the Apache / .htaccess config.
I would note that the single user settings for the same site (if I turn off the Network options) works fine.
Pointers would be appreciated.
cheers
Tony
-
An update on the above:
My .htacess looks something like this:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_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
which is the recommended default settings for Wordpress 3.1 Network.
The SME Server /var/log/httpd/error_log reports
[Sat Apr 16 17:29:35 2011] [error] [client 192.168.x.x] File does not exist:
/home/e-smith/files/ibays/Primary/html/wp-admin, referer:
http://my.smeserver.local/wordpress/wp-admin/network/sites.php
Which suggests that the issue is that the rewrite rules for the ibay is being ignored and that the wordpress rewrite rule is taking precedence and using / as its root which is interpreted as the Primary ibay which does not have wordpress.
The Wordpress 3.1 Network option uses directory virtualisation to create the sub-directory blog sites and while the site works the admin area does not.
Magic Apache Rewrite voodoo is in play ?
cheers
Tony
-
Ok, this is now resolved.
Quite simple when you work through the Apache voodoo.
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritebase
The trick is that the default Wordpress setup for the .htaccess is written without reference to the existing virtualised directories.
From Wordpress
# BEGIN WordPress
RewriteEngine On
RewriteBase /
For SME iBay use the ibay root as the RewriteBase
# BEGIN WordPress
RewriteEngine On
RewriteBase /ibayname
Note that this is not the ibayname/html it is just the /ibayname
I also noted this at Tonys Tech Blog (http://howden.net.au/thowden/2011/04/wordpress-sme-server-8-ibay-htaccess-resolved/) for my own reference.
cheers
Tony
-
Thanks for the info, appreciated.
-
FYI there is an alternative to Wordpress for multiblogging - Quam Plures
I'm trialing it at the moment. This is their website: http://quamplures.net/ (http://quamplures.net/)
I am in no way affiliated to this product and wish only to inform that one can have many blogs from one core install with the absolute minimum of fuss.
Made a minor edit to grammar.
Cheers,