Hi I seem to have problems getting multi sites to work. On my home pc Fedora 16 I have latest Drupal 7 in /var/www/html In /sites I have example.com. In example.com I have settings.php and /files both a+w I have not installed the base drupal as I only wish installation of multisites.
/etc/hosts set to 127.0.0.1 example.com localhost.localdomain localhost NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot /var/www/html ServerName localhost </VirtualHost>
<Directory /var/www/html/example.com> Options +FollowSymLinks AllowOverride All order allow,deny allow from all </Directory>
Calling example.com gives error message :The Drupal installer requires that you create a settings file as part of the installation process. Copy the /./sites/default/default.settings.php/ file to /./sites/example.com/settings.php
/What could be wrong please, I 'm really stuck as I need to understand the process so that I can set up multisites on the centos shared server.
Help would be much appreciated thank you.
<snip> Hi I seem to have problems getting multi sites to work. On my home pc Fedora 16 I have latest Drupal 7 in /var/www/html In /sites I have example.com. In example.com I have settings.php and /files both a+w I have not installed the base drupal as I only wish installation of multisites. </snip>
Further to this problem posted earlier. I have found just now that the problem seems to be example.com which confuses the system. --I created 2 new folders in /sites example1.ab and example2.ab and copied default.settings.php to both, renamed and set files and settings.php to a+w. --Set /etc/hosts to 127.0.0.1 example1.ab and example2.ab --Created <Directory /var/www/html/example1.ab> and <Directory /var/www/html/example2.ab> in httpd.conf --Created 2 databases example1 and example2 Installed the multi sites as one would expect.
I have no knowledge of why example.com does not work, eliminating it seems to solve the problem I only hope the same technique works on the centos shared server thanks Roger
On 12/18/12 7:22 PM, Roger wrote:
<snip> Hi I seem to have problems getting multi sites to work. On my home pc Fedora 16 I have latest Drupal 7 in /var/www/html In /sites I have example.com. In example.com I have settings.php and /files both a+w I have not installed the base drupal as I only wish installation of multisites. </snip>
You say you "have not installed the base drupal" and then you say you have Drupal is /var/www/html, which is it?
Also, just to make sure, /sites should be /var/www/html/sites from your file system view, path for web sites are often described relative to Document Root.
Further to this problem posted earlier. I have found just now that the problem seems to be example.com which confuses the system. --I created 2 new folders in /sites example1.ab and example2.ab and copied default.settings.php to both, renamed and set files and settings.php to a+w. --Set /etc/hosts to 127.0.0.1 example1.ab and example2.ab --Created <Directory /var/www/html/example1.ab> and <Directory /var/www/html/example2.ab> in httpd.conf
If the two sites have different Document Roots, then you are not using multi-site (unless you have done something else unusual to make the sites point to the shared version of Drupal).
If Drupal is installed in /var/www/html then the Document root for the sites should be /var/www/html not /var/www/html/example1.ab Any custom files for a given domain (like settings.php) would then be in the directory /var/www/html/sites/domainname/ ...
--Created 2 databases example1 and example2 Installed the multi sites as one would expect.
I have no knowledge of why example.com does not work, eliminating it seems to solve the problem I only hope the same technique works on the centos shared server thanks Roger
"Multisite" means multiple sites installed on a single codebase. You have to have a base installation and that is where the VirtualHost will point.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Roger
I seem to have problems getting multi sites to work. On my home pc Fedora 16 I have latest Drupal 7 in /var/www/html In /sites I have example.com. In example.com I have settings.php and /files both a+w I have not installed the base drupal as I only wish installation of multisites.
/etc/hosts set to 127.0.0.1 example.com localhost.localdomain localhost NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot /var/www/html ServerName localhost
</VirtualHost>
<Directory /var/www/html/example.com> Options +FollowSymLinks AllowOverride All order allow,deny allow from all
</Directory>
Calling example.com gives error message :The Drupal installer requires that you create a settings file as part of the installation process. Copy the /./sites/default/default.settings.php/ file to /./sites/example.com/settings.php
/What could be wrong please, I 'm really stuck as I need to understand the process so that I can set up multisites on the centos shared server.