The MU forums have moved to WordPress.org

Wordpress Installation: cannot view blogs, posts (5 posts)

  1. subutai1248
    Member
    Posted 15 years ago #

    Hello All,

    I’m trying to get WPMU up and running on a linux box with apache, php, and mysql. I’m using subdirectories.

    I’m able to login, create new posts, and create new blogs. However, when I try to view a new post of blog, I get a 404 not found. I believe the database is set up correctly, as after creating a new post or blog, I see a new entry in the respective database table. E.g. an entry for Test Post 1 appears in table wp_1_posts. The main site page also updates, e.g. under site news there are now links to two posts: “Test Post 1” and “Hello World”. Again, clicking on either of these links brings me to a 404.

    Others on the forum seem to have encountered similar issues. Based on advice tended them, here is what I’ve already tried:
    1. verify that mod_rewrite is enabled
    In httpd.conf, I see the line

    Load Module rewrite_module modules/mod_rewrite.so

    2. Check .htaccess for errors
    I’m not entirely sure what I’m looking for here, but my .htaccess looks the same as the htaccess.dist included in the distribution.

    I would greatly appreciate any advice anyone has to offer.

    Nick

  2. VentureMaker
    Member
    Posted 15 years ago #

    It would definitely help if you check your error.log

    Maybe you forgot to uncomment AddModule mod_rewrite.c in httpd.conf

    If above won't help - show me what you have in .htaccess

  3. andrea_r
    Moderator
    Posted 15 years ago #

    Allow File Override in Apache too. Sounds like it's not set to use the htaccess file.

  4. subutai1248
    Member
    Posted 15 years ago #

    Hello VentureMaker and Andrea_r,

    Thank you both for taking the time to offer me suggestions. I’m grateful for the help.

    Andrea_r: you say “Allow File Override in Apache too. Sounds like it's not set to use the htaccess file.”

    In the README, I’m directed to look for “AllowOverride None” and change it to “AllowOverride FileInfo Options”. In my httpd.conf file, every “AllowOverride” line inside a “<Directory>” directive already specified “AllowOverride FileInfo Options”, and I correspondingly left them as they were. Please let me know if there’s something else I should be doing.

    VentureMaker: you say “Maybe you forgot to uncomment AddModule mod_rewrite.c in httpd.conf”

    Could you please be more specific? I don’t see a AddModule mod_rewrite in my httpd.conf to uncomment. As may already be evident, I know little about Apache, and I’m trying to learn by doing.

    Finally, here is a copy of my .htaccess file:

    vi ./var/www/html/.htaccess
    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,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]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Please let me know if anything seems out of order.

    Thanks,

    Nick

  5. andrea_r
    Moderator
    Posted 15 years ago #

    That htacess file is the default one. your problem is your server is not reading it. :)

About this Topic

  • Started 15 years ago by subutai1248
  • Latest reply from andrea_r