The MU forums have moved to WordPress.org

Unable to accees any page expect main page (9 posts)

  1. shabda
    Member
    Posted 16 years ago #

    I just installed WPMU(at http://www.shabda.name ) and am trying to test it out. I created a blog for testing purposes(http://fool.shabda.name). Now I can access my blog page at the main subdomain, however none of the subpages seem to work. For example fool.shabda.name/about doesnot work and gives 404 error.
    Things I have tried,
    1. Confirmed that mod_rewrite is installed, my httpd.conf has the line
    LoadModule rewrite_module modules/mod_rewrite.so
    2. Confirmed that modules/mod_rewrite.so exists on my machine.
    3. Confirmed that .htaccess file is present in my server root as
    vi /var/www/html/.htaccess
    gets me this file

    RewriteEngine On
    RewriteBase /
    
    #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]

    SO what other places should I look?

  2. drmiketemp
    Member
    Posted 16 years ago #

    I'm glad you did all that checking but you missed the most important thing, checking the error logs. Please get it the habit of doing so.

    Also did you setup the wildcard within your dns and apache?

    Did you install mu as http://www.shabda.name or shabda.name? As per the instructions, it should be installed as shabda.name.

    Your posts don't work either.

  3. shabda
    Member
    Posted 16 years ago #

    Hi drmiketemp, thanks for help. To answer your questions
    <i> 1. I'm glad you did all that checking but you missed the most important thing, checking the error logs.
    Umm, what is the mu error log location. Or do you mean the apache error logs?
    <i> 2. Also did you setup the wildcard within your dns and apache?</i>
    Yes. fool.shabda.name is accesible, so I guess we can be sure that DNS is not the issue here.
    <i>2. Did you install mu as http://www.shabda.name or shabda.name? As per the instructions, it should be installed as shabda.name.</i>
    I have the mu files copied to the root of my apache htdocs /var/www/html. But from my DNS server(BIND9) I have both wildcard as well as a www set as a A type DNS record. So both http://www.shabda.name as well as shabda.name would be the same thing. I did this this because I want http://www.shabda.name and shabda.name to point to the same page. But I am pretty sure this can not be the issue here, as shabda.name points to the correct place.
    So if you point me to

  4. shabda
    Member
    Posted 16 years ago #

    I read through the apache error logs, but cant find any thing of value. If you want to read the eroor logs they are accesible at http://shabda.name/logs/error_log.1

  5. drmiketemp
    Member
    Posted 16 years ago #

    It really looks like to me that mod_rewrite is not coming into play here for some reason since the the page urls are not working. One thing you can try though is permalink dance though to see if that helps. Restarting the apache server may help as well.

    Also double check that you made the other required modifications in the readme.txt file with apache.

  6. shabda
    Member
    Posted 16 years ago #

    Checkin through all things needed to be done from README.txt
    1. Install: all steps done correctly.
    2. Apache:

    2.1. Make sure a line like the following appears in your httpd.conf
    LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
    Yes, its there.

    2.2. "AllowOverride None"
    and change it to
    "AllowOverride FileInfo Options"

    I do not have a <virualHosts> section in httpd.conf as I want to run only one site on this box.

    2.3 In the <VirtualHost> section of the config file for your host there
    will be a line defining the hostname. You need to add the following
    if you want virtual hosts to work properly:
    "ServerAlias *.domain.tld"

    NO virtualhosts section so do not need to do this.

    3. DNS: Wildcard dns records set and working correctly.

    But following the link you provided I can see that for some reason mod_rewrite is acting up.

    I created a directory test and created a .httaccess with the lines
    RewriteRule ^check\.php$ /phpinfo.php [L]
    created a phpinfo.php in my document root. But I am unable to access this pages as http://www.shabda.name/test/check.php
    But accessing the page http://www.shabda.name/phpinfo.php
    works.
    Also following along the examples on that page, I can not find this line in my httpd.conf file
    RewriteEngine on
    Does this entry need to be present?

  7. shabda
    Member
    Posted 16 years ago #

    [EDIT] Last post got posted thrice. Bad, bad connection.

  8. shabda
    Member
    Posted 16 years ago #

    [EDIT] Last post got posted thrice. Bad, bad connection.

  9. shabda
    Member
    Posted 16 years ago #

    My problem is solved. The problem was that in my httpd.conf
    I had made the chenges

    <Directory />
        Options FollowSymLinks Indexes
        AllowOverride  FileInfo Options
    </Directory>
    
    But later in the httpd.conf I had given the configuration option as

    <directory "/var/www/html">
    ....
    AllowOverride None

    Changed to allowoverride all, and its all working.
    ....

About this Topic