Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mrminit

    (@mrminit)

    God yeah!

    Another <Directory /var/www/> was hidden in /etc/apache2/sites-enabled/000-default! I just #-ed that single line, and then the permalinks worked like a charm. Should I comment everything of it? It looks like this right now:

    <Directory /var/www/>
                    Options Indexes FollowSymLinks MultiViews
    #               AllowOverride None
                    Order allow,deny
                    allow from all
                    # This directive allows us to have apache2's default start page
                    # in /apache2-default/, but still have / go to the right place
                    # RedirectMatch ^/$ /apache2-default/
            </Directory>

    Thank you very much for your time and effort!

    Thread Starter mrminit

    (@mrminit)

    > So you still see the default server 404 page?
    Yep, but after doing the ErrorDocument-thingy directly in httpd.conf it works just like you hope. So I imagine it only has problems to read the .htaccess-files?

    EDIT: The apache2.conf says AccessFileName .htaccess, so that should not be the problem.

    Thread Starter mrminit

    (@mrminit)

    Not even this is working. So, my .htaccess-file is not being read?

    everly:~# a2enmod rewrite
    This module is already enabled!
    everly:~#

    How could this be?

    Thread Starter mrminit

    (@mrminit)

    1) Yes, I’ve tried to restart Apache after every move I’ve made, without any affection. My httpd.conf still looks like this:

    <Directory /var/www>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    (Can you please double check if there is anything missing/typos/etc? I’ve edited this file myself. Or more correctly, pasted it from somewhere on Google.)

    2) No, actually not. Nothing of what you’ve told me to do has worked. Is this a symptom of a not working rewrite engine? As I mentioned in a previous post, I get an error if adding LoadModule rewrite_module modules/mod_rewrite.so to the httpd.conf file. The error message is this:

    everly:/var/www# /etc/init.d/apache2 restart
    Forcing reload of web server (apache2)...[Tue Jan 08 21:09:07 2008] [warn] module rewrite_module is already loaded, skipping
     waiting [Tue Jan 08 21:09:09 2008] [warn] module rewrite_module is already loaded, skipping
    .
    everly:/var/www#

    3) As you see in my httpd.conf shown above /var/www/ is specified. This is also where I keep my WordPress-installation, so yes, WordPress’ index.php is in the right directory. Because I have not bought a new domain yet, the “Blog Address” in General Options only shows my IP (with the https://). I guess there is no need for a domain to get this working? I’m most likely to buy it this week, though. I’m also sure the .htaccess file is located correctly (in /var/www/ – right?).

    Your last suggestion also failed. Nothing but the same error message were the output.

    Not Found
    
    The requested URL /test was not found on this server.

    Thank you so much for your time! I hope I can get this working soon.

    Thread Starter mrminit

    (@mrminit)

    This seems to work, so I can’t understand anything but the fact that the mod_rewrite module is active.

    Suggestions?

    Thread Starter mrminit

    (@mrminit)

    I’m not getting a server error after doing this (where was I supposed to see anything, by the way?), except from the “Not Found”-error mentioned above.

    This is my personal server which I got full root access to. It’s running Debian Etch, Apache2 and PHP5 – if that matters. ??

    Thread Starter mrminit

    (@mrminit)

    I see the server default “Not Found” page, like this:

    Not Found
    
    The requested URL /uncategorized/hello-world was not found on this server.
    Apache/2.2.3 (Debian) PHP/5.2.0-8+etch9 Server at xxx.xxx.xxx.xxx Port 80

    Yes, I chmod’ed the .htaccess-file so WordPress could edit the file. The file is now containing this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thank you very much for help. ??

Viewing 7 replies - 1 through 7 (of 7 total)