The MU forums have moved to WordPress.org

Subdir install (16 posts)

  1. XIII
    Member
    Posted 17 years ago #

    Just did a fresh install of R622 on Apache1.3 with php5.
    I installed it into /blog/ and this made things go wonky.
    The .htaccess is correct (Base is /blog/), wp_site is correct (also /blog/), same thing for wp_blogs. Whenever I click on someone else's blog or the default post it tries to go to /blog/blog/*.

  2. donncha
    Key Master
    Posted 17 years ago #

    Is it a vhost or subdir install? I installed WPMU into /blog/ and it seems to work fine using subdirs:

    http://dashdotslash.org/blog/
    http://dashdotslash.org/blog/donncha/

    (these urls will probably disappear within a few hours so don't worry if you don't see anything!)

    Can you try with PHP4? My install uses Apache 2.0 and PHP4.

  3. donncha
    Key Master
    Posted 17 years ago #

    ah, subdir, should have looked at the title!

  4. XIII
    Member
    Posted 17 years ago #

    Yup, and no, I can't test it with php4. I'm guessing it's something with the .htaccess not playing nice in the subdir because I have another domain on the same machine with the identical virtual host settings in Apache and the root install there works perfectly. No errors in the log btw.
    I'll try a clean install of RC2 when I get home to see if that automagically cures it, unless you have some other pointers. Thanks in advance.

  5. maggiespeople
    Member
    Posted 17 years ago #

    I am seeing the same problem as XIII when installing into subdir blog. Apache 1.3.36, PHP 4.4.2. Further, in table wp_1_options, URLs are munged for option_name siteurl, home, and fileupload_url (instead of
    http://domain.tld/blog it is showing http://tld/blog/domain). I tried fixing those entries but am not getting entirely correct behavior still.

  6. donncha
    Key Master
    Posted 17 years ago #

    Strange. You're not testing it on http://localhost/ are you?

  7. maggiespeople
    Member
    Posted 17 years ago #

    No, not localhost. I tested in root dir of another domain I use for testing and saw same problem with 2006-07-02 build, but 2006-07-03 build worked OK in root dir. Same build failed in subdir of original domain. Going to test today's build in subdir of test domain. FWIW, target domain has a .us tld, while test domain is a .com.

    UPDATE: Mostly OK in subdir of test domain. Internal links work OK, but going directly to http://domain.tld/blog redirects to http://domain.tld.

  8. donncha
    Key Master
    Posted 17 years ago #

    I pointed testdomain.us at my own server and installed wpmu in /blog/ on it and it worked fine, have you had any more luck?

  9. donncha
    Key Master
    Posted 17 years ago #

    maggiespeople - do you have "www" in your domain name? Not as in http://www.domain.tld, but like wwwdomain.tld ?

  10. XIII
    Member
    Posted 17 years ago #

    I just did a fresh install of RC2, same problem still.
    http://x111.com/wpmu/blog/2006/07/03/hello-world/

  11. maggiespeople
    Member
    Posted 17 years ago #

    No "www" in the domain name, and no luck. I have to turn to something else now but will come back to this tonight.

    donncha: When you say 'worked fine', do you mean install, register, create blog, go away, come back to http://testdomain.us/blog, and do stuff all works?

  12. donncha
    Key Master
    Posted 17 years ago #

    maggiespeople - I was able to install wpmu, create a new blog, log in to the main blog's admin page fine. I can't understand why yours doesn't work as well.

    XIII - that looks like mod_rewrite isn't working properly. It doesn't even get to execute any PHP!

  13. XIII
    Member
    Posted 17 years ago #

    Yeah, but here to make it even more fun, root install on a different domain:
    http://x111.org/blog/2006/07/02/hello-world/
    Same server, identical VirtualHost setting in httpd.conf.
    I don't get it. >.<

  14. XIII
    Member
    Posted 17 years ago #

    Woohoo. My problem was in the httpd.conf, just posting it for future reference in case someone else has the same problem.
    My Server's DocumentRoot was set to blabla/WebServer/Documents, my sites were subdirs each under WebServer.
    This made all the default options and settings work for everything in the Documents dir but not in the others, which made the .htaccess for some reason still work in the root of the sites, but nothing below that. So stripping the /Documents from the DocumentRoot setting cured all my problems.

    Back to fiddling with all the MU options, thanks!

  15. maggiespeople
    Member
    Posted 17 years ago #

    donncha: I have to table this for a while--more pressing obligations. If you are curious and want to play on my server, I can PM you login info for a test domain.

  16. maggiespeople
    Member
    Posted 17 years ago #

    Finally got a fully working install. Had to edit the table entries manually (see post from 2006-07-03 12:55:39) and use this in the .htaccess:

    RewriteEngine On
    RewriteBase /

    # Add trailing slash on directory request
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^/home/myaccount/public_html/(.*[^/])$ $1/ [R,L]

    # Remove 'www.' if present
    RewriteCond %{HTTP_HOST} ^www\.(.*)
    RewriteRule ^(.+) http://example.com/blog/$1 [R,L]

    #uploaded files
    RewriteRule ^(.*)?/?files/(.*) blog/wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) blog/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ blog/$2 [L]
    RewriteRule . blog/index.php [L]

About this Topic

  • Started 17 years ago by XIII
  • Latest reply from maggiespeople