Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2008, 20:39
geareddesign geareddesign is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question How do I setup ISPConfig for secure drupal [multisite]?

I am setting up a Linode.com 360 server with Ubuntu 8.04 LTS Disk Image using the guide The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server). Since my primary use for this server is for Drupal I am using the guide a more secure drupal [multisite] install to build my server folder structure and Drupal multi-site configuration.

I thought I understood everything until I got to the discussion on the multi-site writeup about this script:

Code:
#!/bin/sh

if [ $# -lt 2 -o $# -gt 2 -o "$1" = "--help" ]; then
	echo 1>&2 Usage: $0 webname example.com
	exit 127
fi

# set up the site directory
#	(i have .htaccess, robots.txt, and all the php include files mentioned in
#	http://justinhileman.info/blog/2007/06/a-more-secure-drupal-multisite-install
#	saved in a folder called ~/drupal/base)
cp  /var/drupal/base/* /var/www/$1/web/

# make the file directory
mkdir /var/drupal/files/$1
chmod ug+w /var/drupal/files/$1

# set up some symlinks

ln -s /var/drupal/includes /var/www/$1/web/includes
ln -s /var/drupal/misc /var/www/$1/web/misc

ln -s /var/drupal/modules /var/www/$1/web/modules
ln -s /var/drupal/profiles /var/www/$1/web/profiles

ln -s /var/drupal/themes /var/www/$1/web/themes
ln -s /var/drupal/sites /var/www/$1/web/sites
ln -s /var/drupal/sites/all /var/www/$1/web/sites/all
ln -s /var/drupal/files/$1 /var/www/$1/web/files

# make the site file and edit it
mkdir /var/drupal/sites/$2
cp -r /var/drupal/sites/default/* /var/www/$1/web/sites/$2/

# append some stuff to the end of the new settings file
echo "\$conf = array('file_directory_path' => 'files/$1', 'file_directory_temp' => 'tmp');" >> /var/www/$1/web/sites/$2/settings.php

# i usually enter the db config by hand in vim. you could easily
# echo the db config to the end of the settings file kinda like above.
vim /var/www/$1/web/sites/$2/settings.php
How do I use/implement this? Where does it go?

I've been researching this for 3 weeks and I want to do everything right. This is the last piece of the puzzle. I would like to be able to automate the folder structure/creation for the Drupal sites without removing the ability to add html/php only sites, but it isn't a deal breaker.

If I can get this answered I am going to post my own write up merging all the tutorials into the configuration I implement. Many Druapl developers will benefit from this scenario. Thanks.

Last edited by geareddesign; 18th November 2008 at 07:27. Reason: making it a question
Reply With Quote
Sponsored Links
  #2  
Old 18th November 2008, 00:01
geareddesign geareddesign is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Post Found related topic

Site Skeletons
http://www.howtoforge.org/forums/showthread.php?p=50368
Reply With Quote
Reply

Bookmarks

Tags
drupal, ispconfig, linode, multisite, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal Multisite setup with CVS stkrzysiak HOWTO-Related Questions 4 10th May 2008 06:36
Installing ISPConfig on existing setup xris Installation/Configuration 1 9th September 2006 17:21
re:perfect setup ubuntu 6.06 - email setup when not using ispconfig caffine_fizz HOWTO-Related Questions 5 19th August 2006 20:05
drupal setup with several vhosts scherpenzeel Installation/Configuration 4 2nd June 2006 12:13
Which IP's to use for ISPConfig setup skeeta Installation/Configuration 3 4th September 2005 08:30


All times are GMT +2. The time now is 22:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.