Fermé

Drupal Multisite Setup

I am trying to setup drupal multisite but cannot get it to work. I have following instructions on the Drupal website I have practically set everything up, however it must be something I am missing!

## Deliverables

I have spent over a day trying to get a multisite install to work and I think most of it is in place but I still cannot see the [url removed, login to view] when I visit [url removed, login to view]

I have a dedicated server running ubuntu, apache2 and latest mysql and php 5.

I have installed the latest Drupal codebase into

/home/d/r/drupal/web/public_html

I have have setup drupal database (called drupal) to and configured the codebase and all is working great and can view the drupal installation no problem on [url removed, login to view]

I next followed the instructions at: [[url removed, login to view]][1] and have setup up my apache conf almost exactly as described:

These are the contents of my various conf files:

**/etc/apache2/conf.d/[url removed, login to view]:**

#============================================================

# Toggle APC cache

#php_flag apc.cache_by_default 1

#This is already enabled in php

<Directory "/home/d/r/drupal/web/public_html">

# Yeah, better performance - no hits to the file system

# Loading Drupal's .htaccess into memory is much better

AllowOverride none

# Define your own file limitations on drupal files

<FilesMatch "([url removed, login to view]|[url removed, login to view]|[url removed, login to view]|\.txt)$">

Order deny,allow

# Include conf.d/[url removed, login to view]

# including the line above always caused an error when re-starting apache2 so I have hard coded the IPs below (these are not the ones I am usinb obviously!)

Allow from [url removed, login to view]

Allow from [url removed, login to view]

Deny from all

</FilesMatch>

# Read in Drupal default .htaccess file asif conf - easier CVS management

Include /home/d/r/drupal/web/public_html/.htaccess

# Offline mode for multisite setup - see file for more info

# Uncomment the line below to set sites offline

# Include conf.d/[url removed, login to view]

</Directory>

# Sorry, no svn peeking

<DirectoryMatch "\.svn">

# Currently pointing back to drupal

# High traffic sites might want custom

# error pages, no need to load drupal

ErrorDocument 403 /[url removed, login to view]

Order allow,deny

Deny from all

Satisfy All

</DirectoryMatch>

# Allow the .htacces files to be used in the sites folder where /files are stored

<Directory "/home/d/r/drupal/web/public_html/sites">

AllowOverride

</Directory>

# Block off access to admin and devel - just in case

<LocationMatch "/(admin|devel)">

Order deny,allow

# Include conf.d/[url removed, login to view]

# including the line above always caused an error when re-starting apache2 so I have hard coded the IPs below (these are not the ones I am usinb obviously!)

Allow from [url removed, login to view]

Allow from [url removed, login to view]

Deny from all

</LocationMatch>

#============================================================

**/etc/apache2/conf.d/[url removed, login to view]:**

#============================================================

#This file always caused a problem when repstarting apache so I hard coded the IP addresses

# into the [url removed, login to view] file. Would like to undersatand why this wont work! I am using the correct IP addresses, these are just for posting!

Allow from [url removed, login to view]

Allow from [url removed, login to view]

#============================================================

**/etc/apache2/[url removed, login to view]:**

#============================================================

# ..

# ..

# All the apache config and at the very bottom is these lines:

# Include the virtual host configurations:

Include /etc/apache2/sites-enabled/[^.#]*

#============================================================

**/etc/apache2/sites-available/[url removed, login to view]:**

#============================================================

# This is called from [url removed, login to view]

# Each vhost can be read in as its own file

Include vhosts/[url removed, login to view]

#============================================================

**/etc/apache2/vhosts/[url removed, login to view]:**

#============================================================

# This is called from /etc/apache2/sites-available/[url removed, login to view]

<VirtualHost [url removed, login to view]>

DocumentRoot /home/d/r/drupal/web/public_html

ServerName [url removed, login to view]

ServerAlias [url removed, login to view]

ErrorLog /var/log/apache2/sites/mywebsite.co.uk_error-log

CustomLog /var/log/apache2/sites/mywebsite.co.uk_access-log "combined"

# Rewrite the www

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.mywebsite\.[url removed, login to view]$ [NC]

RewriteRule ^(.*)$ [url removed, login to view]$1 [L,R=301]

# Read in the drupal configuration

Include conf.d/[url removed, login to view]

# Block access while developing

# Include conf.d/[url removed, login to view]

</VirtualHost>

#============================================================

**/etc/hosts:**

127.0.0.1 localhost server0

127.0.0.1 [url removed, login to view]

[url removed, login to view] [url removed, login to view]

The website root I have created is at:

/home/m/y/mysite/web/public_html

I have replaced the physical public_html directory with a symlink to

/home/d/r/drupal/web/public_html

I can view the text files such as [url removed, login to view] but when I try to view any php page (such as [url removed, login to view] or the root) I always get the following error:

"Internal Server Error, this is an error with your script, check your error log for more information."

I am at a loss as to what I need to do next and would appreciate any help or advice.

Thank you

[1]: [url removed, login to view]

Compétences : Services Web d'Amazon, Ingénierie, Linux, MySQL, PHP, Gestion de Projet, Architecture Logicielle, Tests de Logiciels

en voir plus : work from home nc, work from home in nc, work from home advice, work at home database, why work at home, why do you want to work from home, why do you want to work at home, what work can i do from home uk, root info, problem setup, get more website hits, get more hits to your website, get more hits on your website, get more hits on website, get hits to your website, get hits on my website, drupal web sites, drupal update server ip, developing your own website, case management work from home

Concernant l'employeur :
( 8 commentaires ) Poole, United Kingdom

Nº du projet : #2815368

6 freelance font une offre moyenne de $164 pour ce travail

ateeqlashari

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(268 Commentaires)
6.7
m4manas

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(18 Commentaires)
4.7
smackcodersvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(8 Commentaires)
4.3
Indianitpower

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(12 Commentaires)
3.4
jaguarrr

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(7 Commentaires)
2.5
vw7289716vw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(1 Évaluation)
1.3