Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

WordPress multisites

Got problems with your B2 or B3? Share and get helped!
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

If I try to access www.mysite.nl/subsite/wp-admin/ (redirected to www.mysitye.nl/admin), I get the following
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /admin/] applying pattern '^(.*)$' to uri '/usr/share/web-admin/admin/'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (4) [perdir /admin/] RewriteCond: input='/usr/share/web-admin/admin/' pattern='!-f' => matched
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (4) [perdir /admin/] RewriteCond: input='/usr/share/web-admin/admin/' pattern='!-d' => not-matched
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (1) [perdir /admin/] pass through /usr/share/web-admin/admin/
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d9abb8/subreq] (3) [perdir /admin/] applying pattern '^(.*)$' to uri '/usr/share/web-admin/admin/index.php'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d9abb8/subreq] (4) [perdir /admin/] RewriteCond: input='/usr/share/web-admin/admin/index.php' pattern='!-f' => not-matched
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d9abb8/subreq] (1) [perdir /admin/] pass through /usr/share/web-admin/admin/index.php
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^index\.php$' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (4) [perdir /home/web/] RewriteCond: input='/home/web/favicon.ico' pattern='-f' => not-matched
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (4) [perdir /home/web/] RewriteCond: input='/home/web/favicon.ico' pattern='-d' => not-matched
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?(.*\.php)$' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/favicon.ico -> favicon.ico
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] applying pattern '.' to uri 'favicon.ico'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (2) [perdir /home/web/] rewrite 'favicon.ico' -> 'index.php'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (3) [perdir /home/web/] add per-dir prefix: index.php -> /home/web/index.php
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (2) [perdir /home/web/] trying to replace prefix /home/web/ with /
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (4) add subst prefix: index.php -> /index.php
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8e9c0/initial] (1) [perdir /home/web/] internal redirect with /index.php [INTERNAL REDIRECT]
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8cde8/initial/redir#1] (3) [perdir /home/web/] strip per-dir prefix: /home/web/index.php -> index.php
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8cde8/initial/redir#1] (3) [perdir /home/web/] applying pattern '^index\.php$' to uri 'index.php'
192.168.2.87 - - [05/Oct/2011:23:00:34 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8cde8/initial/redir#1] (1) [perdir /home/web/] pass through /home/web/index.php
If I try to reach www.mysite.nl/subsite/wp-admin/index.php, I get this result:
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add path info postfix: /home/web/aolol -> /home/web/aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/aolol/wp-admin/index.php -> aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] applying pattern '^index\.php$' to uri 'aolol/wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add path info postfix: /home/web/aolol -> /home/web/aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/aolol/wp-admin/index.php -> aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'aolol/wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add path info postfix: /home/web/aolol -> /home/web/aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/aolol/wp-admin/index.php -> aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'aolol/wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add path info postfix: /home/web/aolol -> /home/web/aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/aolol/wp-admin/index.php -> aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] applying pattern '^' to uri 'aolol/wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (4) [perdir /home/web/] RewriteCond: input='/home/web/aolol' pattern='-f' => not-matched
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (4) [perdir /home/web/] RewriteCond: input='/home/web/aolol' pattern='-d' => not-matched
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add path info postfix: /home/web/aolol -> /home/web/aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] strip per-dir prefix: /home/web/aolol/wp-admin/index.php -> aolol/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)' to uri 'aolol/wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (2) [perdir /home/web/] rewrite 'aolol/wp-admin/index.php' -> 'wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (3) [perdir /home/web/] add per-dir prefix: wp-admin/index.php -> /home/web/wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (2) [perdir /home/web/] trying to replace prefix /home/web/ with /
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (4) add subst prefix: wp-admin/index.php -> /wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#44029a08/initial] (1) [perdir /home/web/] internal redirect with /wp-admin/index.php [INTERNAL REDIRECT]
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] strip per-dir prefix: /home/web/wp-admin/index.php -> wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] applying pattern '^index\.php$' to uri 'wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] strip per-dir prefix: /home/web/wp-admin/index.php -> wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?files/(.+)' to uri 'wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] strip per-dir prefix: /home/web/wp-admin/index.php -> wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] applying pattern '^([_0-9a-zA-Z-]+/)?wp-admin$' to uri 'wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] strip per-dir prefix: /home/web/wp-admin/index.php -> wp-admin/index.php
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (3) [perdir /home/web/] applying pattern '^' to uri 'wp-admin/index.php'
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (4) [perdir /home/web/] RewriteCond: input='/home/web/wp-admin/index.php' pattern='-f' => matched
192.168.2.87 - - [05/Oct/2011:22:56:42 +0200] [www.mysite.nl/sid#413f94e8][rid#41d8d4e0/initial/redir#1] (1) [perdir /home/web/] pass through /home/web/wp-admin/index.php
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: WordPress multisites

Post by Ubi »

so.... you found the pattern offending in /etc/apache/* right?
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

I don't understand how these redirects work at all, but it seems to me that the input for this log-file (when acessing fails) has already been changed from /mysite/subsite/wp-admin to /mysite/admin
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: WordPress multisites

Post by Ubi »

I think the error is in WordPress itself, as I cannot reproduce

Could you go to MySQL and run:

Code: Select all

SELECT * FROM `wp_options` WHERE option_name = 'siteurl' OR option_name = 'home';
(http://wordpress.org/support/topic/absp ... rong-value)
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

The mysql query reports the following:
mysql> select * from wp_options where option_name = 'siteurl' or option_name = 'home';
+-----------+---------+-------------+-----------------------+----------+
| option_id | blog_id | option_name | option_value | autoload |
+-----------+---------+-------------+-----------------------+----------+
| 37 | 0 | home | http://www.mysite.nl | yes |
| 1 | 0 | siteurl | http://www.mysite.nl | yes |
+-----------+---------+-------------+-----------------------+----------+
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: WordPress multisites

Post by Ubi »

well that's wrong isn't it! Better replace that to http://www.mysite.nl/subsite.

(I guess UPDATE wp_options SET option_value = 'http://www.mysite.nl/subsite' WHERE option_name = 'siteurl' or option_name = 'home' LIMIT 2;)
Or better just use phpMyAdmin or so
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

problem is that its a multisite homepage: i've got a normal site www.mysite.nl and www.mysite.nl/subsite both run from the same wordpress install I guess if i change these values I cannot reacht my normal site anymore.
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

Something very strange happened today:
I didn't change anything to the site overnight, but suddenly the link works!
I did do some things to the .htaccess file yesterday, like chown-ing the file to www-data and having Wordpress change the permalink structure and changin git back again. This didn't have any effect yesterday though. Today suddenly everything works!

Thanks Ubi for all the help!
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: WordPress multisites

Post by Ubi »

hang on, you're mixing two wp sites with the SAME sql backend? That sounds like a recipe for disaster...
Why not put the other site into another database, or at LEAST another prefix.
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: WordPress multisites

Post by Binkem »

Actually it's a feature of WordpPress.

http://codex.wordpress.org/Create_A_Network

And it's easier if you don't have to update two seperate WordPress installs but just have to keep the one install up to date.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: WordPress multisites

Post by Ubi »

ah, indeed. I didnt know 3.0 was out.
But I am surprised that you only have a single option for siteurl when you effectively have two sites. I guess that is where the blog_id is for right?
WHy aren't there two records for siteurl with different blog_ids?
Post Reply