The MU forums have moved to WordPress.org

.htaccess: RewriteEngine not allowed here (7 posts)

  1. jehanproc
    Member
    Posted 17 years ago #

    I just installed wpmu-2006-05-29 on a fedora core 4 with apache 2.0.54.
    appart from the fact That I never received the email with login/password annonce by the "congrats last step install page" :-(
    now when I go to http://localhost/wpmu I get "Internal Server Error", apache error log says: "/var/www/html/wpmu/.htaccess: RewriteEngine not allowed here"
    I did put in apache main conf file (httpd.conf) :

    DocumentRoot "/var/www/html/wpmu"

    <Directory />
    Options +Includes +FollowSymlinks -Indexes
    AllowOverride All
    </Directory>

    what's wrong ?

  2. drmike
    Member
    Posted 17 years ago #

    Ask your host to turn on mod_rewrite

  3. jehanproc
    Member
    Posted 17 years ago #

    indeed, it wasn't "on" by default (silly of me !)

    now I supposed it is turned on as I put :
    DocumentRoot "/var/www/html/wpmu"
    <Directory />
    Options +Includes +FollowSymlinks -Indexes
    AllowOverride All
    RewriteEngine On
    </Directory>

    I still get 500 internal server error :-(

    [Fri Jun 02 19:34:00 2006] [alert] [client 127.0.0.1] /var/www/html/wpmu/.htaccess: RewriteEngine not allowed here

    am I still missing a silly thing ?
    thanks .

  4. drmike
    Member
    Posted 17 years ago #

    Restart Apache :)

    Sorry I didn't state that. In my neck of the words, that's a given any time a change is made like that.

    You may want to double check stuff with this page

  5. jehanproc
    Member
    Posted 17 years ago #

    Tht was silly of me not to check if rewriteEngine was on, but I knew that I had to restart apache as soon as I change httpd.conf !
    So I confirme, I did restarted apache .

    the fact is that .htaccess in /wpmu start with:
    #php_flag register_globals 0
    #php_flag display_errors 0
    RewriteEngine On
    RewriteBase /

    So actually "RewriteEngine On" was already there.
    Now I added it to the directory directive in httpd.conf, and it looks ok at least for that directive, now if I comment it in .htaccess , that's the second directive in .htacces (RewriteBase) which is refused :

    [Tue Jun 06 10:12:04 2006] [alert] [client 157.159.50.197] /var/www/html/wpmu/.htaccess: RewriteBase not allowed here

    apparently, apache doesn't accept any rewrite module directives in a .htaccess. However I did put allowOverride all in the / directory wich is my DocumentRoot !

    DocumentRoot "/var/www/html/wpmu"
    <Directory />
    Options +Includes +FollowSymlinks -Indexes
    AllowOverride All
    RewriteEngine On
    </Directory>

    What am I doing wrong ? is there any installation doc somewhere, appart from http://mu.wordpress.org/download/ which is very minimal ! reading it, I though that unzipping the wpmu.zip and starting the web browser would be enough. I first had the email that never appeared (after the "congratulations etc ...") , so I got inside the mysql database to reset the admin password as I nerver got it from mail, and now I'am stuch with that rewriteengine error?

    Please help, thanks .

    PS: I've read http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/, but don't really see a relation to my problem !?

  6. jehanproc
    Member
    Posted 17 years ago #

    OK I reinstall the whole thing. I put wpmu in the document root as it is mention:
    DocumentRoot "/var/www/wpmu/"
    <Directory "/var/www/wpmu">
    Options Indexes FollowSymLinks
    AllowOverride AuthConfig Limit FileInfo Options
    Order allow,deny
    Allow from all
    </Directory>

    now that works fine until the "congrats ! you will be emailed you login/password etc ..." then nothing is emailed :-( .
    A least rewriteEngine seems to work as apache doesn't complain about the .htacces set in:
    [root@calaz /var/www/wpmu]

    I don't knwo what was wrong before, probably a problem in httpd.conf .
    But now what should I do ?

  7. soundevolution
    Member
    Posted 16 years ago #

    Here's what I discovered: I needed to

    AllowOptions all

    in the server config for the directory where the wordpress .htaccess file is. This is added to my

    /etc/httpd/myname.conf

    apache config file (Mac OS X). Then restart web sharing, and it works.

    <Directory "/Users/myname/Sites/wordpress/">
    AllowOverride all
    </Directory>

    This was also a very useful page:

    http://deheus.net/petrik/blog/post/33/

About this Topic

  • Started 17 years ago by jehanproc
  • Latest reply from soundevolution