I'm itrying to install Drupal on a Debain box, so far without success.

Current configuration:
* OS: Debian GNU/Linux "Sarge"
* Apache 2.0.54
* PHP 4.3.10

In my first attempt I installed the Drupal-packages from the Debian-distribubtion (packages "drupal", "drupal-theme-marvinclassic" und "drupal-theme-unconed"); this seemed to work somehow, e.g. I could create the first "admin account", but after logging in the first time, everything else failed completely; e.g. when loading http://domain/drupal/, the Drupal start page appeared without any theme, and when accessing a random feature like "administer", "recent posts" etc., it resulted in "Not Found: The requested URL /usr/share/drupal/index.php was not found on this server". The logfile /var/log/apache2/error.log explained: "File does not exist: /var/www/usr" .

Debian puts the Drupal-files in /usr/share/drupal and creates an alias in the Apache config:

Alias /drupal /usr/share/drupal


However, Apache seemed to look unsuccessfully for "usr" under /var/www (!) for some unknown reason. With some help from Google I found [1] which claimed, this would be Debian-specific. In uninstelled the packages ("aptitude remove drupal..."), purged the configuration files ("dpkg --purge drupal...") and got the tarball http://drupal.org/files/projects/drupal-4.6.3.tar.gz, which I now unpacked in /var/www/drupal; the Alias for Drupal in the Apache config (/etc/apache2/conf.d/drupal) was removed an the Apache httpd restarted.

For settung up the Drupal tarball, I followed the instructions from [2] with the one difference: I continued the existing MySQl database which was created from the Debian package and followed [3] as far as applicable since this should have been similar to an upgrade (the Debian package from "Stable" is Drupal 4.5.3, the tarball I installed later is Drupal 4.6.3), at least so far the database was concerned. Obviously this was wrong thinking.

Currently, I get the Drupal start page, again without any theme, and can't access any function like "register" or "password"; the server continues to nag me with something like "Not Found: The requested URL /drupal/user/register was not found on this server". The logfile /var/log/apache2/error.log says something like: "File does not exist: /var/www/drupal/user", where the not-found file seems always (!) to be "user", even if it should be "password" or "register" - and of course none of these files exist under the path where Apache is searching.

What might be im portant is an rewrite directive I need for a Mediawiki installaition on the same server ( Alias /index.php "/var/www/w/index.php"); this is needed to get "clean" URLs with Mediawiki; does this interfere somehow with the installation of Drupal in /var/www/drupal? (I commented the rewrited dirctive out an restarted the Apache httpd, but this didn't change Drupal's behaviour).

Any hints, what could have been going wrong, where I should look to get Drupal working or how I could fix the above rewrite dirctive for Mediawiki, if this is causing Drupal to fail?

Thanks! -asb

[1] http://drupal.org/node/8813
[2] http://drupal.org/node/260
[3] http://drupal.org/node/30699


For local testing on a Debian-SID box I edit the config-file '/etc/apache2/conf.d/drupal463.conf' witch includes:

<Directory /var/www/drupal463/>
    AllowOverride All

In Drupals .htaccess uncomment 'RewriteBase /drupal463'
Restart apache.

Thanks for the comment, akakoko; as I wrote I'm using the tarball and *not* the Debian package, so I had to make some minor modifications (I don't have an '/etc/apache2/conf.d/drupal463.conf' file which I could edit); hence I added a similar directive (matching my installation path) at the bottom of /etc/apache2/sites-available/default.

In /var/www/drupal/.htaccess, I uncommented 'RewriteBase /drupal' and restarted Apache, and now Drupal seems to work like a charm.

Some note to others: In the directive in Drupal's .htaccess, it is essential to set 'RewriteEngine on', even if Apache's rewrite engine is already turned on elsewhere (e.g. in the Apache config).

Thanks again, akakoko!
Regards -asb

Sorry! I forgot to mention that I created 'etc/apache2/conf.d/drupal463.conf' by myself.

Good luck!