Forums

All Links Point to Apache "It Works" or Are Broken (5 posts)

  1. andrewt522
    Member
    Posted 2 years ago #

    I installed WordPress 2.9.2 on a homemade Ubuntu Server 10.4 with Apache 2.2 and MySQL 5.1 using the 5-minute install instructions. The initial install to the root directory was flawless. I have no problems logging in or navigating the dashboard.

    The problem comes when I try to view the site. With default permalinks (ugly) selected, both "Visit Site" or "View Post" go directly to the Apache "It Works" homepage. With "Pretty" permalinks selected, "Visit Site" goes to the Apache "It Works" homepage and "View Post" ends in a broken link error.

    .htaccess is installed and reads:
    `# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    On the Apache end, mod_rewrite is enabled.

    What am I missing?

  2. Samuel B
    moderator
    Posted 2 years ago #

    find the file httpd.conf in Apache folder.
    Open that in a text editor. Use the search facility in the editor to find "rewrite". The line you need looks like this:

    #LoadModule rewrite_module modules/mod_rewrite.so

    You need to take away the hash sign so it looks like this

    LoadModule rewrite_module modules/mod_rewrite.so

    Now just save the file.

  3. andrewt522
    Member
    Posted 2 years ago #

    Sadly, the httpd.conf file was blank. I went ahead and added the line per your suggestion, and no joy. Same problem exists.

  4. andrewt522
    Member
    Posted 2 years ago #

    Here's a thought...

    While I was trying to set up the necessary directives for "pretty" permalinks, found here and it's possible I misunderstood the directions. I added this code to the httpd.conf file:

    <Directory /var/www>
         AllowOverride All
    </Directory>
    <Directory /var/www>
         Options Indexes FollowSymLinks
    </Directory>

    If I understand correctly, /var/www is my root folder, but it's quite possible I got the instruction wrong, or I'm referencing the wrong directory, or all of the above.

  5. Samuel B
    moderator
    Posted 2 years ago #

    here's mine - should work fine for you
    http://pastebin.com/hxPHY0BV

    this goes in the /apache/conf folder
    name it httpd.conf

Topic Closed

This topic has been closed to new replies.

About this Topic