In attempting to resolve my issue, I have read just about every relevant post on clean url's that I can find, but I'm still stuck...
I am using drupal 4.4.2 on a shared host and clean url's works fine.
However, I still have an installation on my pc, which I want to use for development purposes,
I would really like to use clean url's on this local installation of drupal, so that I can occassionally import the mysqldump from the net hosted installation.
This local instal runs on
Apache 2..039
PHP 4.2.2
I have modified httpd.conf to include
allow overide All
and even included that setting with the default directory (which I'm not sure about)
And I've modified .htaccess to include
IfModule sapi_apache2.c
rather than
IfModule mod_php4.c
which I'm also not sure about, but I've tried both combinations to no different effect
And of course, I've changed my rewrite base to /drupal
With clean url's on the following happens:
Say I select Admin / Configuration, I get a dialogue box offering me to
open "system" which is a: application /x-httpd-php
from http://localhost/drupal/admin
which suggests a fundamental problem within the httpd conf file?
Can anyone explain what else is missing in this local setup that might be causing me to fail. I've tried this over and over and haven't been able to get it to work yet!
Comments
I have Apache2 and clean URLs
I have Apache 2 and clean URLs at home, and everything works fine.
I saw the comment about using sapi_apache2, but I left it as mod_php4, and everything works fine.
The dialog box you see seems to point to an inability to parse .php files as a server side script, and the attempt to download the file instead.
Make sure you have:
AddType application/x-httpd-php .php
Somewhere in httpd2.conf (or wherever the other AddType are)
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
clean url's still not working on pc
thank you.
My httpd.conf (is that different to httpd2.conf, in anything other than name? I don't have one of those!) includes
AddType application/x-httpd-php .php .php3
should that do it? why the '.php3' on the end?
Clean url's still not working though. I know there must be a way. I did read about someone needing to change common.inc, but that was a very particular case and i'm reluctant to start messing about there without more specific advice regarding my own setup.
Windows problem
I finally solved my clean URL issue under windows. Mainly its because my .htaccess file doesn't work with windows like it should as in linux.
To make it work, I have to tweak the httpd.conf Read this article and you will get the idea.
Oh yeah, make sure the apache mod_rewrite is enabled.