When I try to install Drupal 7 on a shared hosting environment where I have a properly working D6 install I get a 500 Internal Server Error. I do not get this error in my dev environment on a local Ubuntu machine.
When I check the logs, I see htaccess: regex could not be compiled.
I am installing the D7 in the same location as the D6.
If I comment out the FilesMatch section or replace it with the corresponding D6 FilesMatch in the htaccess file, I do not get this error. But I cannot imagine that this will not cause some other problem.
The D7 FilesMatch is:
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(|~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
Order allow,deny
</FilesMatch>The D6 FilesMatch is:
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
Order allow,deny
</FilesMatch>If I just put the htaccess file in the root -- without the rest of the drupal install or anything else -- I get the same results. An error with the D7 htaccess and no error with the D6.
Update:
My host provider informed me that they're still on Apache 1.3.x. So, what would need to be changed in the D7 htaccess to work with 1.3.x?
Looks like this is being addressed here: http://drupal.org/node/1962780
Comments
=-=
you could pull the .htaccess file out of the -dev version and test. It includes the patch that was committed in the issue you linked. I'd envision other issues down the line though as a version of Apache that old, likely isn't the only old software on the server.
You can try to use this line
You can try to use this line from D7.19 installation:
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$">or from 7.x-dev installation:
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">Yep, that did it. I'm
Yep, that did it. I'm assuming that's the same .htaccess from this issue post.