By kobudo on
I'm a drupal newbie, and I'm having trouble getting apache to read the drupal .htaccess file.
I've tried both Apache 2.0.43 and 1.3.26 running with PHP4.2.3 on a Win2K system.
I suspect the issue is how to properly configure "AllowOverride" within Apache's httpd.conf file. I've tried varients of "AllowOverride All" stuffed inside Drupal's <VirtualHost> entry without success.
<VirtualHost 127.0.0.1>
DocumentRoot "c:/www-projects/drupal-4.1.0/"
ServerName drupal41.mydomain.com
<VirtualHost>
Any suggestions on how to do this? Am I on the right track?
Thanks in advance for any assistance.
Cheers, John
Comments
Try this
Include this:
between VirtualHost beginning & end.
<Directory> AllowOverrides All </Directory>
David,
Thanks for the suggestion. This was one of my "varients"... and from my understanding of Apache.org's .htaccess documentation, it should have worked.
I made sure to fully shutdown and then restart Apache after modifying the httpd.conf file too...
I think you are correct in this suggestion, but I also think there is something "more" required....
Any other ideas. Cheers, John
Current Solution Model:
<VirtualHost 127.0.0.1>
DocumentRoot "c:/www-projects/drupal-4.1.0/"
ServerName drupal41.mydomain.com
<Directory "c:/www-projects/drupal-4.1.0/">
AllowOverride All
</Directory>
<VirtualHost>
Problem Solved:Apache CGI vs SAPI at issue
Well... since it appeared we were in agreement on how the .htaccess file should be activated, I decided to consider other options.
While some of my testing had been done on Apache 1.3.26 SAPI version, most of it had been done on Apache 2.0.43 CGI version.
After looking more closely at the .htaccess file, I saw that it was calling various MODULES (e.g. mod_php4 and mod_rewrite), which the CGI version of Apache lacked.
So, while my Apache 2.0.43 CGI platform is a bust, the DRUPAL .htaccess file works fine under Apache 1.3.26 SAPI.
Thanks for your help. Cheers, John