Attempting to instal a multisite of Drupal 6, but keep failing at the last hurdle. Help would be so greatly appreciated. This is the second time I've come this far and I don't want to give up again!
my root directory is c:/wamp/www [I'm using Wampserver 2.0, under windows XP]
my main drupal6 instal is in c:/wamp/www/drupal6/
the secondary 'multisite/ I'm attempting to set up is in c:/wamp/www/drupal6/site/drupalX2/
Note: using wampserver, I access drupal6 via: http://localhost/drupal6/
And for example, I access moodel, via: http://localhost/moodle/
I've gone through all the steps and instructions in these three or four nodes:
Therefore, I've
- altered my windows host file to include: 127.0.0.1 drupalX2
- removed the # from apache http.conf file to include httpd-vhosts.conf
- I've appended httpd-vhosts.conf with the following:
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/drupal6/"
ServerName drupalX2
</VirtualHost>
If I browse to http://localhost/drupal6/ or http://localhost/moodle/ everything works fine and I can access and utilise those installs as expected
But if I browse to http://localhost/drupalX2/ or http://localhost/drupalX2/install.php expecting to open another drupal website up,,, I receive the message:
The requested URL /drupalX2/install.php was not found on this server.If I browse to http://drupalX2/ directly, it simply takes me to my main Drupal6 installed website.
There is nothing of the instructions which I haven't followed. I really need to get a Drupal multisite up and working because I potentially have my first commercial commission this month!
Can anyone point me in the correct direction? I've completely run out of ideas.
Comments
Virtual hosts
Assuming WAMP doesn't add any extra wrinkles that plain old Apache doesn't...
Note: your url should be http://drupal/X2 - that is what all your configuration (eg hosts entries, virtual host servernames etc) so far has been setting you up for.
Both your virtual hosts should be using the same DocumentRoot. Ideally it wouldn't be a subdirectory of the standard webroot either.
I would recommend not using localhost or sites/default at all. Make all your multisites follow the same configuration rules - eg all of them get a hostname entry in your hosts file, give all of them a virtual host, and all of them use /sites/sitename (don't use sites/default).
Don't forget Drupal is always multisite - it is just using the catchall fallback site by default. If you don't use the catchall default site, you know something has gone wrong when it appears. ie you can tell the difference between a site match and the fallback condition.
So create a drupalX1 host entry and virtual host for your original site, plus make a /sites/drupalX1 directory with your original configuration fie in there.
--
Cheers
Anton
--
Cheers
Anton
just as I prepared to bang my head against my office wall...
it began to work...
the final step which caused frustration was that the default.settings.php had been removed from the sites/default folder; only when this was replaced did the installation routine work for the X1 and X2 sites which I had set up as you advised.
I could not understand why you suggested it would be better if the the DocumentRoot wasn't a subdirectory of the standard webroot...indeed, I tried moving the drupal code to another location, changing the address within the apache vhosts file, but it wouldn't connect. I believe the error was something like not having permissions for the folder? I did have a similar setup previously using apache aliases, so I could attempt to get that working again, if I understood the advantage.
Thanks v. much, for your assist.
shalom!
John
shalom from wales!
John
I have bang ny head in the wall because of this Multisite
I have straggle with this Multisite and I have the same problem. I think am stupid. Why is it so difficult to understand the instruction of Multisite? It is lot of them and I am confusing about it.
Wampserver 2.0, under windows XP
Drupal6 instal is in c:\wamp\www\drupal6 (works fine in http://localhost/drupal6)
Next site in c:\wamp\www\drupal6\site\testit
in \test
settings.php:
$db_url = 'mysqli://root:@localhost/testdb';
$base_url = 'http://testit'; // NO trailing slash!
in http.conf
NameVirtualHost *:80
VirtualHost *:80
DocumentRoot "c:/wamp/www/"
ServerName localhost
/VirtualHost
VirtualHost *:80
DocumentRoot "c:/wamp/www/"
ServerName testit
/VirtualHost
in host
127.0.0.1 localhost
127.0.0.1 testit
Is anything wrong? Have I miss something? Do Í need to make a softlink as I have been reading about with junction.exe?
I can NOT run http://testit/install.php Do I need to copy install.php to somewhere? ( I should NOT. No instruction of this)
http://testit/ works like http://localhost/, I get the WAMP server homepage where I can see and run Drupal6
I have only create the database "testdb" and I thought I will be creating the table with the install.php. Do I need to create the tables in PHPAdmin?
Please help me. I will give up soon if I can't get further.
Svard: Try going to
Svard: Try going to http://testit/drupal6 .
...Though, I think (I'm not 100% sure) that Drupal only tries to fire up multisite if the domain looks more like a domain - in this case, with a dot. In my case, if I'm building a site which is going to be up at example.com, I create an entry in my /etc/hosts as example.test. So try maybe renaming the subsite directory as testit.test or something like that and editing your hosts file to match.
The Boise Drupal Guy!
testit.tst
I have change it to testit.tst and the DocumentRoot "c:/wamp/www/" to "c:wamp/www/testit.tst and know it works fine. I am not sure if it was the dot in the sitename or the DocumenRoot, maybe both. This should be more specific explain in the documentation of multi site.
Thank you anyway.