Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 12th May 2008, 18:17
SamTzu SamTzu is offline
HowtoForge Supporter
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu

Time to wake this thread...

Sami Mattila

Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links
Old 29th November 2008, 17:07
geareddesign geareddesign is offline
Junior Member
Join Date: May 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Can this be done with Apache Directives + Hostingplan?

I am attempting to set up an automated creation of sites from an existing install of Drupal. Would this work?

1) Make a directory /etc/apache/vhost_includes/
2) Make a text file cms.conf inside this directory which contains the rewrite rules you want to add to the vhost.
3) In the apache directives field in ISPConfig you insert: Include /etc/apache/vhost_includes/drupal.conf
4) Save as a Hostingplan Drupal

# web-N is the actual website

# Enable .htaccess on the website

<Directory "/var/www/web-N/web/">
    Options FollowSymLinks
    AllowOverride All

# set up the site directory
# copy needed files from ~/drupal/base)

cp /var/drupal/base/* /var/www/web-N/web/

# make the file directory

mkdir /var/drupal/files/web-N
chmod ug+w /var/drupal/files/web-N

# set up some symlinks

ln -s /var/drupal/includes /var/www/web-N/web/includes
ln -s /var/drupal/misc /var/www/web-N/web/misc

ln -s /var/drupal/modules /var/www/web-N/web/modules
ln -s /var/drupal/profiles /var/www/web-N/web/profiles

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

# make the site file and edit it

mkdir /var/drupal/sites/web-N
cp -r /var/drupal/sites/default/* /var/www/web-N/web/sites/web-N/

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


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
Shared IP error when adding new site amoswright Installation/Configuration 15 15th June 2006 16:04
host site at same domain as ISPConfig server? amoswright Installation/Configuration 2 13th January 2006 23:43
Removed site, but it is still there mromer General 2 21st December 2005 18:46
mx record not set up for new site + misc jmroth Installation/Configuration 8 25th September 2005 16:35
can't delete a site KenMcGinnis Installation/Configuration 2 14th August 2005 16:02

All times are GMT +2. The time now is 06:18.

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