Drupal 7 Multisite and Plesk

billp44ruby's picture

I've setup a multi-site environment with my current hosting provider, but I'm looking to move away from a shared-hosting environment to a dedicated cloud-based server. With the new provider, I'm using Plesk 10 on top of RedHat 6.3. Are there special considerations for implementing multisite via Plesk?

Previously, I've followed the following procedures to implement multisite on a subfolder (i.e., www.example.com/site-1) basis:

-- Setup MySQL database for the subsite.
-- Create a new directory in the sites directory (example.com.site-1)
-- Copy the settings.php file from the default directory into the new directory (making sure that both the sites folder and settings.php file are writable)
-- Create a symlink using SSH that points site-1 back to the web directory
-- From my browser, go to www.example.com/site-1/install.php and initiate the Drupal install process.

Any issues in going through this process in a Plesk environment?

Comments

Problems in Multi-site implementation

billp44ruby's picture

I've gone through the following steps so far to implement a subdirectory-based multisite (www.example.com/site-1):

-- In the sites directory, I've created a example.com.site-1 subdirectory.
-- In that directory, I've copied the default.settings.php file and renamed it settings.php. I've made the file writeable.
-- Also in that directory, I've added a "files" directory and made that writeable.
-- Using ssh, I've created a symlink for site-1 in the httpdocs folder using the following command line: ln -s /'present working directory'/httpdocs site-1
-- I've created a database: example-site-1 on localhost:3306
-- Within the settings.php file, I've added the following:

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'example-site-1',
      'username' => 'myusername',
      'password' => 'mypassword',
      'host' => 'localhost:3306',
      'port' => '',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);

From past experience in setting multisite up for subdirectories, that should be sufficient prep. However, when I go to www.example.com/site-1/install.php, I get the following message:

Drupal already installed
To start over, you must empty your existing database.
To install to a different database, edit the appropriate settings.php file in the sites folder.
To upgrade an existing installation, proceed to the update script.
View your existing site.

I've got to be missing something here, any help in troubleshooting available?

FYI, I'm moving from a shared hosting environment to a cloud-server. It is running RedHat 6.3, with Plesk 11.0.9.

As noted in a post above this one

billp44ruby's picture

For future reference of those reading this thread, the reason the standard approach wasn't working was that because my site was still under development and was accessible only via the IP address, the sites listed under my sites folder needed to be setup using the IP address instead of the domain name the site will ultimately get published under. So instead of using example.com.site1 in the sites folder, I needed to use 111.111.111.111.site1 prior to migrating the current production domain to this new site setup.

What do you get when you go

Garrett Albright's picture

What do you get when you go to index.php instead of install.php? Do you get some other site's content? Or a blank Drupal install's default front page?

I get the front page of example.com

billp44ruby's picture

Not sure whether that means there is an issue with the symlink or sites directory.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: