• Resolved AJhosting

    (@ajhosting)


    Hi there,

    I’m running wordpress 3.3.1 on Debian 5.0 lenny 32bit.

    I’m facing the following problem:
    When my permalink is set on default, no problems appear. But when i change the permalink to one of the other options, it says:

    Not Found
    
    The requested URL /appleby-architects/ was not found on this server.
    
    Apache/2.2.9 (Debian) PHP/5.2.17-0.dotdeb.0 with Suhosin-Patch Server at www.appleby-architects.com Port 80

    I’ve viewed some other posts here and i found out that my .htacces wasn’t writable so i changed in my apache config the # before AllowOverride:

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

    After that i could see that my .htaccess was writeable, but i’m still facing the problem with the permalinks.
    I really need to fix this and i hope someone has the correct solution for this.

    Thanks in advance,

    AJ

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is mod_rewrite running?

    Setting “AllowOverride” to “All” and uncommenting it should fix it. Setting it to none or disabling it causes Apache to completely ignore it. I also (just incase) set “AccessFileName .htaccess” too under the VirtualHost settings, but I think in general it’ll work without this.

    Oh also: If Apache doesn’t start back up after making that change, as above, you’ll need to enable mod_rewrite. Dive back in to your httpd.conf file, PageDown a couple of times until you hit the cloud of lines starting “LoadModule” and uncomment:

    LoadModule rewrite_module modules/mod_rewrite.so

    You might need to change the last bit to whichever directory contains your modules, and it’s reletive to whatever you set “ServerRoot” is set to.

    Other OSes might require you to do a “a2enmod mod_rewrite”; I think Debian needs this, and possibly Ubuntu.

    Thread Starter AJhosting

    (@ajhosting)

    @esmi:
    Not quite sure, if i check the httpd.conf it is empty.
    I have my files for the sites located in:
    /etc/apache2/sites-available/
    and the file is named default

    @wardlr
    I now have restarted the apache server with the following:
    [45 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Thread Starter AJhosting

    (@ajhosting)

    @esmi
    Thanks for the tip. I have it working now.

    For all of those who have problems:

    Start Rewrite mod with the command:
    
    a2enmod rewrite
    
    Restart Apache 2 by running the command
    
    /etc/init.d/apache2 restart

    That’s it. Now it works.

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

The topic ‘Permalinks 404 error .htaccess writable’ is closed to new replies.