Having problems installing Drupal? See the Installation Guide for more information.

clean url's and multiple sites in subdirectories

I have 2 sites setup to running from same drupal (4.6.1) codebase, one of which is in a subdirectory.
www.example.com and www.example.com/site2

/etc/apache/conf/vhosts/vhosts.conf

<VirtualHost *>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com
#Setenv VLOG /var/log/apache2/example.com
<Directory /var/www/example.com>
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
Alias /site2 /var/www/example.com
</VirtualHost>

Important details from /var/www/example.com/sites/example.com/settings.php

$db_url = 'mysql://apache:*******@localhost/example';
$base_url = 'http://www.example.com';

Important details from /var/www/example.com/sites/example.com.site2/settings.php

$db_url = 'mysql://apache:*******@localhost/site2';
$base_url = 'http://www.example.com/site2';

I can enable clean urls in the first site www.example.com and it works just fine.
However if I try to enable clean urls for www.example.com/site2 I'm informed;

It appears your host is not configured correctly for Clean URLs. Please check for ModRewrite support with your administrator.

How do I fix this?

Reading http://drupal.org/node/9909 suggest to edit the .htaccess file and do;

# Modify the RewriteBase if you are using Drupal in a subdirectory and the
# rewrite rules are not working properly:

Can't access Drupal anymore due to mySQL error...

When i try to access my Drupal site, i get the following error message:

Fatal error: Duplicate entry '312c81b7c314a55a58338284caaa7888' for key 1 query: INSERT INTO sessions (sid, uid, hostname, timestamp) VALUES ('312c81b7c314a55a58338284caaa7888', 0, '85.124.151.115', 1118872637) in /srv/www/htdocs/web31/html/drupal/includes/database.mysql.inc on line 66

The last it worked, i was logged in, while someone registered for a new account... Since then, no chance to log into Drupal anymore - i only get to see the start-page after i clear my cache and cookies.

Problem moving 4.6.0 from local machine to real server

Hi there,

I tried to move a full installation of drupal from my home linux box to my server (also a linux box) by making a tarball of the drupal dir, backing up the database und untaring, importing the database on the server. After editing the site.conf, the site (kind of) shows up. But there are the following error messages at top of the screen:

warning: Cannot modify header information - headers already sent by (output started at /homepages/2/d34137888/htdocs/crischan/http/includes/menu.inc:1044) in /homepages/2/d34137888/htdocs/crischan/http/includes/common.inc on line 99.
warning: array_keys(): The first argument should be an array in /homepages/2/d34137888/htdocs/crischan/http/includes/menu.inc on line 916.
warning: Wrong parameter count for min() in /homepages/2/d34137888/htdocs/crischan/http/includes/menu.inc on line 916.
warning: array_key_exists(): The second argument should be either an array or an object in /homepages/2/d34137888/htdocs/crischan/http/includes/menu.inc on line 920.

what's the problem here? When accessing other nodes i do the errors plus either a access denied (i have some non-public pages, so this is ok) or for accessible pages a "page not found".
the value for cache in the variables table is s:1:"0"; for clean_url_ok i:0;

I have no trouble installing on the server box from scratch, but I would like to move my home installation at once.

images in rss feeds?

I've got two successful livejournal rss feeds into my drupal installation.

One of my feeds contains images which aren't showing up in Drupal - should they be?
How do I make them show up?

Any help appreciated :)

why are @import directives appearing at the browser?

I have recently installed drupal (4.5.3) on a Debian unstable system with Apache2 and PHP4. I am not
experienced in the ways of PHP or Apache.

I noticed that the front page does not show the drupal icon at the top left, and looking at the source
of the page it seems to be sending the @import directives to the browser rather than resolving
them at the server. It is also not serving the logo.png which is almost certainly an apache config
error.

These may be unrelated, but I would be grateful of any help anyone can provide.

Ta

donate module of the store

I just installed ecommerce to use the store and donate modules. (I have installed all of the modules that are part of ecommerce) After I add a product that is a donation (with a price of $0.00 per the install instructions) I try to use it in the store but the price always shows up as $0 (in the cart and at checkout) no matter what price I put in the donate field.

Is there something else I have to do?

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal