The MU forums have moved to WordPress.org

404 errors on any blog (14 posts)

  1. novasource
    Member
    Posted 17 years ago #

    I have created a new WordPress MU blog site. Here's a quick summary of the problem: any URL that does not correspond to an actual file in the filesystem system just gives a 404.

    Here is the Directory directive:
    <Directory />
    Options FollowSymLinks
    AllowOverride FileInfo Options
    </Directory>

    Here's the Virtual Host directive:
    <VirtualHost *:80>
    ServerAdmin [a valid email address]
    DocumentRoot /srv/www/html
    ServerName blog.[valid TLD]
    ErrorLog logs/blog.[valid TLD]-error_log
    CustomLog logs/blog.[valid TLD]-access_log common
    ServerAlias *.blog.[valid TLD]
    AllowOverride FileInfo Options
    </VirtualHost>

    (Actual email and TLDs have been filtered out above.)

    Here's the .htaccess:
    RewriteEngine On
    RewriteBase /

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^www.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

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

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

    php_flag register_globals 0
    php_flag display_errors 0

    As for WPMU version, on the bottom of the admin pages, I see wordpress-mu-1.0.

    What am I missing?

  2. drmike
    Member
    Posted 17 years ago #

    I'm assuming that 'blog' where you have it in blog.[valid TLD] is the actual domain name, correct?

    Did you restart Apache and Bind after making those edits?

  3. novasource
    Member
    Posted 17 years ago #

    Yes. If my TLD was company.com, then the site would be blog.company.com, and all blogs would be at blog.company.com/[blogname]. (We need to do directories and not separate DNS names for the blogs--otherwise we would have a DNS nightmare.)

    I restarted apache with apachectl graceful.

    I did not restart bind. I am running WordPress with the rPath LAMP Appliance on VMWare on my local XP workstation. The blog.company.com name is assigned through the hosts file on my local workstation and is not a true DNS assignment.

    I am not sure how bind is the problem since it appears I can browse to all pages that correspond to actual files on the filesystem.

    How would you restart bind on this machine, anyway? I thought it would be named restart, but the named command doesn't seem to recognize that parameter.

  4. novasource
    Member
    Posted 17 years ago #

    By the way, I just upgraded to the 8-25 nightly build. It didn't make a difference, although I think the problem could be with apache and not WPMU.

  5. drmike
    Member
    Posted 17 years ago #

    Should be named restart unless you're running something besides bind.

    If you're using the subdirectories though, it's moot because you don't need the ServerAlias change in Apache nor the DNS wildcard in Bind.

    I'm assuming from your first post that the main page is coming up.

    You did choose the non-vhosts/ using subdirectories option when you did the setup, correct?

    Can you try it without the display errors flag to see if something comes up, please?

    Anything in Apache's error log or WPMU's?

  6. novasource
    Member
    Posted 17 years ago #

    I just fixed it. My apache httpd.conf had a <directory /> and <directory [filesystem path to root folder]> directives. I put the AllowOverride FileInfo Options in the directive for the filesystem root. That was the wrong place.

  7. drmike
    Member
    Posted 17 years ago #

    /drmike notices that the directions do say 'In the <Directory> directive of your virtual host'

    Sorry for missing that. I'll have to remember that one.

  8. peatmoss13
    Member
    Posted 16 years ago #

    I am having the same problem but AllowOverride is in the right place however I am not using subdomains. the only thing I can get to is the main site and wp-admin. All other pages come up with 404 error.
    I can get to my pages if I type in index.php example 'www.company.com/mu/index.php/about/' works
    the link 'www.company.com/mu/about/' doesn't
    Can't get to any additional blogs I create.

  9. drmike
    Member
    Posted 16 years ago #

    Is your .htaccess file populated with what needs to be in there? Anything in your webserver error logs?

  10. peatmoss13
    Member
    Posted 16 years ago #

    No just file does not exist error
    File does not exist: C:/Apache/htdocs/mu/page, referer: 'http://www.company.com/mu/'
    ('' are not actual in the log)

  11. car777
    Member
    Posted 16 years ago #

    I am new to mu blogs, and have the same 404 error on all posts or new blogs I create. Could anyone tell me what the <directory> tag must contain, and where it should be located. In the muwp installation chose the option to have subdirectories, do I need to have virtual host ( <VirtualHost ... > tag )configured in the apache http.conf?
    What else do I need in order to make it work.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    This is what I have in <Directory />:

    <Directory />
        Options FollowSymLinks
        AllowOverride FileInfo Options
        Order deny,allow
        Deny from all
        Satisfy all
    </Directory>

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    This is what I have in .htaccess:

    RewriteEngine On
    RewriteBase /blogs/
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Please help!

  12. SteveAtty
    Member
    Posted 16 years ago #

    If your apache server is supporting more than 1 domain then you need virtual host directives.

    I'm running in subdirectory mode

    On my dev box I have:

    <VirtualHost 192.168.0.1:80>
    ServerName blogsite.mmydomain.here
    DocumentRoot /webstuff/blogs
    DirectoryIndex index.php
    
    RewriteEngine on
    <directory /webstuff/blogs>
    RewriteEngine on
    AllowOverride FileInfo Options all
    </Directory>
    
    <directory /webstuff/blogs/forums>
     options FollowSymlinks -Multiviews +ExecCGI
     order Deny,Allow
     Allow from All
     AddHandler cgi-script cgi
    RewriteEngine Off
    AllowOverride FileInfo Options all
    </Directory>
    
    </VirtualHost>

    Playing round with Apache configurations is not something I'd recommend unless you feel really comfortable with it. WPMU isn't just an install and go product

  13. andrea_r
    Moderator
    Posted 16 years ago #

    Uh, if you did a subdirectory install, you shouldn't have to mess around with Apache at all.

    Installing in an add-on domain or in a subfolder may give that eorror though.

  14. SteveAtty
    Member
    Posted 16 years ago #

    I should have said that my test server is supporting several domains.... On a single domain, subdirectory install with WPMU installed in the apache server root directory you shouldn't need to play around with virtual hosts at all.

About this Topic

  • Started 17 years ago by novasource
  • Latest reply from SteveAtty