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 [login to view URL] when I visit [login to view URL]
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 [login to view URL]
I next followed the instructions at: [[login to view URL]][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/[login to view URL]:**
#============================================================
# 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 "([login to view URL]|[login to view URL]|[login to view URL]|\.txt)$">
Order deny,allow
# Include conf.d/[login to view URL]
# 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 [login to view URL]
Allow from [login to view URL]
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/[login to view URL]
</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 /[login to view URL]
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/[login to view URL]
# 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 [login to view URL]
Allow from [login to view URL]
Deny from all
</LocationMatch>
#============================================================
**/etc/apache2/conf.d/[login to view URL]:**
#============================================================
#This file always caused a problem when repstarting apache so I hard coded the IP addresses
# into the [login to view URL] file. Would like to undersatand why this wont work! I am using the correct IP addresses, these are just for posting!
Allow from [login to view URL]
Allow from [login to view URL]
#============================================================
**/etc/apache2/[login to view URL]:**
#============================================================
# ..
# ..
# 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/[login to view URL]:**
#============================================================
# This is called from [login to view URL]
# Each vhost can be read in as its own file
Include vhosts/[login to view URL]
#============================================================
**/etc/apache2/vhosts/[login to view URL]:**
#============================================================
# This is called from /etc/apache2/sites-available/[login to view URL]
<VirtualHost [login to view URL]>
DocumentRoot /home/d/r/drupal/web/public_html
ServerName [login to view URL]
ServerAlias [login to view URL]
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\.[login to view URL]$ [NC]
RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301]
# Read in the drupal configuration
Include conf.d/[login to view URL]
# Block access while developing
# Include conf.d/[login to view URL]
</VirtualHost>
#============================================================
**/etc/hosts:**
[login to view URL] localhost server0
[login to view URL] [login to view URL]
[login to view URL] [login to view URL]
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 [login to view URL] but when I try to view any php page (such as [login to view URL] 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]: [login to view URL]