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

 

Nhật tố phần mềm Trung Quốc thu thập dữ liệu trái phép

Chính phủ Nhật Bản cảnh báo khoảng 140 tổ chức như các Bộ hay trường đại học, cơ sở nghiên cứu không sử dụng phần mềm nhập liệu tiếng Nhật do Baidu, hãng tìm kiếm Internet lớn nhất Trung Quốc phát triển.

Drupal developer - PHPUnit là gì?

Drupal developer - PHPUnit là gì?

Tham gia trong lĩnh vực phát triển phầm mềm mà riêng tôi đề cập ở đây là phát triển web, dù bạn ở khâu nào, developer hay tester bạn đều thấy rằng khi một fix một bug này lại nảy sinh một bug khác, thêm feature này lại ảnh hưởng hoặc gây bug cho feature khác, ngay cả khi muốn optimize và refactor code cũng làm bạn ngại vì sợ sẽ gây ra bug đến với những function trước đó

2 mẫu iPhone thế hệ kế tiếp đã được thiết kế và ra đời dưới thời Steve Jobs

2 mẫu iPhone thế hệ kế tiếp đã được thiết kế và ra đời dưới thời Steve Jobs

Một công tố viên ở San Francisco (Mỹ) khẳng định một nguồn tin nội bộ của Apple đã tiết lộ với ông rằng hai mẫu iPhone thế hệ kế tiếp đã được thiết kế hoàn chỉnh và chúng "ra đời trước thời Tim Cook".

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

 

Diet con trung