Support » Fixing WordPress » Permalinks not working…

  • Hi there,

    I have been searching for this over a day now. I have tried every possible solutions I could find online but the permalinks are not working on my local debian machine with apache2.

    This is the configuration I have:
    Debian 5.0 (lenny) – installer build 20090123lenny6
    Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch

    I have tried WP 2.6 and 3.0.1 in either case the permalinks does not work. I have a blog hosted at Godaddy where permalinks work fine so I am sure there is probably a setting issue that I am misisng.

    I tried:

    • chaning httpd.conf file,
    • .htaccess file,
    • moving the wp to root and not in sub-folder.
    • I made sure the categories and tags fields are not blank as suggested in one of the post.
    • restarting apache after every change
    • manually adding rewrite_mod settings to the apache startup files etc.

    I am not sure what am I missing. My blog is simply hosted at http://localhost/, I always get a 404 error when using permalinks the default settings work fine.

    Regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • have you enabled mod_rewrite ?

    go to
    apache > Conf folder and find the file httpd.conf

    edit in notepad and find
    #LoadModule rewrite_module modules/mod_rewrite.so
    remove the hash
    LoadModule rewrite_module modules/mod_rewrite.so
    save
    should work now

    Thread Starter mir.solutions

    (@mirsolutions)

    @samuel: The httpd.conf is empty. I added the line earlier (and again after reading your post). It does not work, if I restart the apache server i get the warning that mod_rewrite is already loaded.
    PS: I changed the path to the module:
    LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

    Thank you for your reply, any other suggestions?

    will that work?
    I’ve done dozens of local installs and the httpd.conf is the file used to configure and load modules

    Thread Starter mir.solutions

    (@mirsolutions)

    Thank you for checking back in:

    Here is a paste from the console:

    debian64:/etc/apache2# cat httpd.conf
    LoadModule rewrite_module modules/mod_rewrite.so
    debian64:/etc/apache2# /etc/init.d/apache2 restart
    Restarting web server: apache2[Tue Aug 10 13:17:18 2010] [warn] module rewrite_module is already loaded, skipping
     ... waiting [Tue Aug 10 13:17:20 2010] [warn] module rewrite_module is already loaded, skipping
    .
    debian64:/etc/apache2#
    • Location of httpd.conf is /etc/apache2

    I am using debian 64-bit could that be the cause of the problem?

    I am going to fire up my 32-bit debian and test it there and see if there is any different option.

    keep us posted please

    Thread Starter mir.solutions

    (@mirsolutions)

    I have started the 32 bit machine installed mysql (fresh install), installed phpmyadmin and then installed wordpress 3.0.1 by simply unzipping the files in /var/www/wpsite folder.

    Without any further changes or additions I tried permalinks and got the same broken links result…

    Oh Boy!!!!!

    It must be something really simple and tiny I believe..

    I assume the htaccess is being written to correctly when setting up permalinks?

    I am having the same problem. I am on a 32-bit system and have recently upgraded to 3.0.1 and am on my localhost server.

    Any solutions?

    I have re-written my httpd.conf as follows:
    LoadModule rewrite_module modules/mod_rewrite.so

    and also changed AllowOverride None to All

    I can see that my .htaccess file is being re-written but Apache seems to be ignoring it. It’s weird, I can SEE the correct permalinks while in admin, but can’t get to the pages from the front end.It returns a 404.

    I am stuck using only the default permalinks while building out this site.

    Karen

    I seemed to be having the same issues as mir.solutions and grovesk.

    It seems to have been fixed by creating a soft link in /etc/apache2/mods-enabled to /etc/apache2/mods-available/rewrite.load and then restarting apache2. I tried that rather than the suggestion above of loading the module via the httpd.conf as that seemed to be how the other stuff was loaded, and it is working so far.

    Note I am also using 32-bit Debian, and had previously ensured that my .htaccess was writable (although it already contained the correct input) and enabled FollowSymLinks and AllowOverride.

    Looks to be too late for mir.solutions and grovesk, but I hope it helps somebody down the line.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalinks not working…’ is closed to new replies.