Từng biết tìm hiểu Drupal 7 multisite

Từng biết tìm hiểu Drupal 7 multisite

I had a first site called FIRSTSITE.com.
I wanted to add another site called SECONDSITE.com.
I wanted the second site to render as a separate website, and I wanted the two sites to share my Drupal 7 installation.

I couldn’t find a guide for Drupal 7 multisite, so now that I’ve figured it out from a pastiche of advice, I’m documenting it.

This post is not about updating a multisite from Drupal 6 to Drupal 7. I am a Drupal noob with Drupal 7. It assumes Lunarpages VPS Hosting but that may not matter.

  1. Install Drupal 7 for FIRSTSITE.com. (I had already done that earlier.)
  2. Create a new MySQL database and user. They will be used for the new site SECONDSITE.com.
  3. Configure SECONDSITE.com to point to the FIRSTSITE.com servers. In my case, I did that with Network Solutions, and I documented it here The change can take a day or two to complete.
  4. Park SECONDSITE.com to FIRSTSITE.com. How to do it in Cpanel is here. I did it in LPCP (a control panel available when you have Lunarpages hosting.)
  5. Create a directory /sites/SECONDSITE.com/ inside your main Drupal folder.
  6. Copy the default.settings.php file (found in drupal/sites/default/) to /sites/SECONDSITE.com/ and rename it to settings.php
  7. Change its permissions to 666 (make it changeable by everyone)
  8. Make a new directory under /drupal/sites/SECONDSITE.com/ and name it “files”, then change permissions of it to 777.
  9. Navigate to http://SECONDSITE.com/install.php, and complete a new installation for SECONDSITE.com with the Mysql details from earlier.

Reference:
# cp drupal/sites/default/default.settings.php drupal/sites/SECONDSITE.php
# chmod 666 drupal/sites/SECONDSITE.com/settings.php
# mkdir drupal/sites/SECONDSITE.com/files
# chmod 777 drupal/sites/SECONDSITE.com/files

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Thủ tướng Đức Angela Merkel cảnh báo Covid-19 mới chỉ bắt đầu

Thủ tướng Đức Angela Merkel cảnh báo Covid-19 mới chỉ bắt đầu

Thủ tướng Đức Merkel cảnh báo cuộc chiến chống dịch bệnh Covid-19 mới ở giai đoạn đầu và đại dịch dường như sẽ thành một phần cuộc sống trong thời gian dài.

 eCommerce Store với Drupal

Các vấn đề cơ bản để xây dựng eCommerce Store với Drupal

In this article you will learn which steps to take to get your country specific e-Commerce store up and running in Drupal - in just 30 to 60 minutes of your time (even faster if you've done this before).

Có cần thiết lấy Acquia Certified Drupal Developer exam ?

Có cần thiết lấy Acquia Certified Drupal Developer exam ?

In the very recent period this new thing popped up in the Drupal community that has everybody talking: the Acquia certification for Drupal developers. I'm writing this article minutes after actually taking this exam to share with you my impressions.

Công ty diệt chuột T&C

 

Diet con trung