The MU forums have moved to WordPress.org

404 configuration error (6 posts)

  1. tecstream
    Member
    Posted 15 years ago #

    I have installed WordPress mu on CentOS 5 x64 it is using the ldap plugin. I can log in via users in my LDAP directory and create new blogs. I can edit anything but when I go to Hello World, comments, or any new pages I create. I get a 404 error. I am sure I did something simple and dumb but I can not seem to find it.

    http://jtesto.demo.snakehill.net/

    Examples to be found on this page try any of the links most do not work.
    I thought permissions but went back checkked and wp-content and below is set to 0777

    Any ideas appreciated.

    .htaccess =

    RewriteEngine On
    RewriteBase /

    #php globals
    php_flag_register_globals 0
    php_flag display_errors 0

    #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]

  2. tdjcbe
    Member
    Posted 15 years ago #

    - Make sure the server in question has mod_rewrite turned on.

    - Also please review your webserver's error logs.

    - Make sure you've reviewed all of the steps within the readme file included with your download:

    http://trac.mu.wordpress.org/browser/trunk/README.txt

    - Also please review the debugging page linked to from the readme file. If you've posting content of a file here and not looked at your error logs, you may not have:

    http://codex.wordpress.org/Debugging_WPMU

  3. tecstream
    Member
    Posted 15 years ago #

    Thanks for replying,

    I was not getting the errors in the correct place. Errors are "files do not exist" of course. I assume this means I either have to create them or they were to be created and did not due to some other issue I will look at this in more detail later. Thanks for your assistance.

    MMC

    [Mon Jun 09 16:30:02 2008] [error] File does not exist: /var/www/html/category, referer: http://jtesto.demo.snakehill.net/

    I also set up php errors and have none there either. I do have the mod_rewrite turned on and my vhost settings are:

    <VirtualHost *:80>
    ServerAdmin support@snakehill.net
    DocumentRoot /var/www/html/
    ServerAlias *.demo.snakehill.net
    ServerName demo.snakehill.net
    ErrorLog /logs/wordpress
    LogLevel debug
    </VirtualHost>

    my dns has the appropriate wildcard and that part works correctly. As a matter of fact almost most items work and I am sure since I am new to this that it is just that a simple mistake but I did read the Readme file and went to the debugging site. I should have entered more information so in that vain.

    This is a vps on slicehost and I have full access I also have a LDAP centos 5 directory server running on this server and the word press does validate against it correctly.

    The site I listed above is a site created that is accessible as a subdomain but everything below that sld is not accessible.

    Thanks any help is appreciated.

    [h1] jtesto’s blog
    [h2] Testo testing
    [h2] Hello world!
    [h2] Pages
    [h2] Archives
    [h2] Categories
    [h2] Blogroll
    [h2] Meta

    LoadModule rewrite_module modules/mod_rewrite.so

    /usr/lib64/httpd/modules/mod_rewrite.so

  4. lunabyte
    Member
    Posted 15 years ago #

    http://trac.mu.wordpress.org/browser/trunk/README.txt#L21

    You don't have a directory directive in your vhost.

    Also, you may not have an htaccess file. If you do, and it was successfully created on install, apache isn't configured to accept it.

  5. tecstream
    Member
    Posted 15 years ago #

    lunabyte,

    Thank you I know it was something stupid and of course it was not enough attention to detail, for the benefit of others in case they make the same simple error I will post what I did wrong.

    Though I had made the changes in the right place I forgot it is listed in more than one area.

    <Directory />
    Options FollowSymLinks
    AllowOverride FileInfo Options
    </Directory>

    That is correct but!!!!

    The second Directory entry

    <Directory "/var/www/html">

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None <<<<<<<<<<<<<<<<< Not Changed here

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

    </Directory>

    Thanks for your patience and time

    MMC

  6. kedmond
    Member
    Posted 15 years ago #

    MMC! You're the man. Thank you so much for posting your solution to this. I had installed Wordpress MU, and followed the Read Me so exactly, but I kept getting the 404 Error for the Hello World posting. And new users couldn't post new articles either. I hadn't realized that you had to enter the AllowOverride twice in httpd.conf. So you really helped out. Thanks again.

    -kedmond

About this Topic

  • Started 15 years ago by tecstream
  • Latest reply from kedmond